style:在建工程抵押
Showing
4 changed files
with
203 additions
and
5 deletions
| ... | @@ -168,7 +168,16 @@ export const asyncRoutes = [ | ... | @@ -168,7 +168,16 @@ export const asyncRoutes = [ |
| 168 | component: () => import('@/views/zhcx/zslqcx/zslqcx.vue'), | 168 | component: () => import('@/views/zhcx/zslqcx/zslqcx.vue'), |
| 169 | name: 'zslqcx', | 169 | name: 'zslqcx', |
| 170 | meta: { title: '证书领取查询' } | 170 | meta: { title: '证书领取查询' } |
| 171 | } | 171 | }, |
| 172 | // 在建工程抵押查询 | ||
| 173 | { | ||
| 174 | path: 'zxgcdycx', | ||
| 175 | id: '46', | ||
| 176 | parentId: '4', | ||
| 177 | component: () => import('@/views/zhcx/zxgcdycx/zxgcdycx.vue'), | ||
| 178 | name: 'zxgcdycx', | ||
| 179 | meta: { title: '在建工程抵押' } | ||
| 180 | }, | ||
| 172 | ] | 181 | ] |
| 173 | }, | 182 | }, |
| 174 | { | 183 | { |
| ... | @@ -204,7 +213,7 @@ export const asyncRoutes = [ | ... | @@ -204,7 +213,7 @@ export const asyncRoutes = [ |
| 204 | component: () => import('@/views/zsgl/zssyjl/zssyjl.vue'), | 213 | component: () => import('@/views/zsgl/zssyjl/zssyjl.vue'), |
| 205 | name: 'zssyjl', | 214 | name: 'zssyjl', |
| 206 | meta: { title: '证书使用记录' } | 215 | meta: { title: '证书使用记录' } |
| 207 | } | 216 | }, |
| 208 | ] | 217 | ] |
| 209 | }, | 218 | }, |
| 210 | { | 219 | { | ... | ... |
| 1 | const state = { | 1 | const state = { |
| 2 | visitedViews: [], | 2 | visitedViews: [], |
| 3 | cachedViews: ['leaseDetails'] | ||
| 3 | } | 4 | } |
| 4 | 5 | ||
| 5 | const mutations = { | 6 | const mutations = { |
| ... | @@ -11,6 +12,7 @@ const mutations = { | ... | @@ -11,6 +12,7 @@ const mutations = { |
| 11 | }) | 12 | }) |
| 12 | ) | 13 | ) |
| 13 | }, | 14 | }, |
| 15 | |||
| 14 | DEL_VISITED_VIEW: (state, view) => { | 16 | DEL_VISITED_VIEW: (state, view) => { |
| 15 | for (const [i, v] of state.visitedViews.entries()) { | 17 | for (const [i, v] of state.visitedViews.entries()) { |
| 16 | if (v.path === view.path) { | 18 | if (v.path === view.path) { |
| ... | @@ -25,12 +27,12 @@ const mutations = { | ... | @@ -25,12 +27,12 @@ const mutations = { |
| 25 | return v.meta.affix || v.path === view.path | 27 | return v.meta.affix || v.path === view.path |
| 26 | }) | 28 | }) |
| 27 | }, | 29 | }, |
| 28 | |||
| 29 | DEL_ALL_VISITED_VIEWS: state => { | 30 | DEL_ALL_VISITED_VIEWS: state => { |
| 30 | // keep affix tags | 31 | // keep affix tags |
| 31 | const affixTags = state.visitedViews.filter(tag => tag.meta.affix) | 32 | const affixTags = state.visitedViews.filter(tag => tag.meta.affix) |
| 32 | state.visitedViews = affixTags | 33 | state.visitedViews = affixTags |
| 33 | }, | 34 | }, |
| 35 | |||
| 34 | UPDATE_VISITED_VIEW: (state, view) => { | 36 | UPDATE_VISITED_VIEW: (state, view) => { |
| 35 | for (let v of state.visitedViews) { | 37 | for (let v of state.visitedViews) { |
| 36 | if (v.path === view.path) { | 38 | if (v.path === view.path) { |
| ... | @@ -44,31 +46,59 @@ const mutations = { | ... | @@ -44,31 +46,59 @@ const mutations = { |
| 44 | const actions = { | 46 | const actions = { |
| 45 | addView ({ dispatch }, view) { | 47 | addView ({ dispatch }, view) { |
| 46 | dispatch('addVisitedView', view) | 48 | dispatch('addVisitedView', view) |
| 49 | dispatch('addCachedView', view) | ||
| 47 | }, | 50 | }, |
| 48 | addVisitedView ({ commit }, view) { | 51 | addVisitedView ({ commit }, view) { |
| 49 | commit('ADD_VISITED_VIEW', view) | 52 | commit('ADD_VISITED_VIEW', view) |
| 50 | }, | 53 | }, |
| 54 | addCachedView ({ commit }, view) { | ||
| 55 | commit('ADD_CACHED_VIEW', view) | ||
| 56 | }, | ||
| 51 | 57 | ||
| 58 | delView ({ dispatch, state }, view) { | ||
| 59 | return new Promise(resolve => { | ||
| 60 | dispatch('delVisitedView', view) | ||
| 61 | dispatch('delCachedView', view) | ||
| 62 | resolve({ | ||
| 63 | visitedViews: [...state.visitedViews], | ||
| 64 | }) | ||
| 65 | }) | ||
| 66 | }, | ||
| 52 | delVisitedView ({ commit, state }, view) { | 67 | delVisitedView ({ commit, state }, view) { |
| 53 | return new Promise(resolve => { | 68 | return new Promise(resolve => { |
| 54 | commit('DEL_VISITED_VIEW', view) | 69 | commit('DEL_VISITED_VIEW', view) |
| 55 | resolve([...state.visitedViews]) | 70 | resolve([...state.visitedViews]) |
| 56 | }) | 71 | }) |
| 57 | }, | 72 | }, |
| 58 | 73 | delOthersViews ({ dispatch, state }, view) { | |
| 74 | return new Promise(resolve => { | ||
| 75 | dispatch('delOthersVisitedViews', view) | ||
| 76 | resolve({ | ||
| 77 | visitedViews: [...state.visitedViews], | ||
| 78 | }) | ||
| 79 | }) | ||
| 80 | }, | ||
| 59 | delOthersVisitedViews ({ commit, state }, view) { | 81 | delOthersVisitedViews ({ commit, state }, view) { |
| 60 | return new Promise(resolve => { | 82 | return new Promise(resolve => { |
| 61 | commit('DEL_OTHERS_VISITED_VIEWS', view) | 83 | commit('DEL_OTHERS_VISITED_VIEWS', view) |
| 62 | resolve([...state.visitedViews]) | 84 | resolve([...state.visitedViews]) |
| 63 | }) | 85 | }) |
| 64 | }, | 86 | }, |
| 87 | |||
| 88 | delAllViews ({ dispatch, state }, view) { | ||
| 89 | return new Promise(resolve => { | ||
| 90 | dispatch('delAllVisitedViews', view) | ||
| 91 | resolve({ | ||
| 92 | visitedViews: [...state.visitedViews], | ||
| 93 | }) | ||
| 94 | }) | ||
| 95 | }, | ||
| 65 | delAllVisitedViews ({ commit, state }) { | 96 | delAllVisitedViews ({ commit, state }) { |
| 66 | return new Promise(resolve => { | 97 | return new Promise(resolve => { |
| 67 | commit('DEL_ALL_VISITED_VIEWS') | 98 | commit('DEL_ALL_VISITED_VIEWS') |
| 68 | resolve([...state.visitedViews]) | 99 | resolve([...state.visitedViews]) |
| 69 | }) | 100 | }) |
| 70 | }, | 101 | }, |
| 71 | |||
| 72 | updateVisitedView ({ commit }, view) { | 102 | updateVisitedView ({ commit }, view) { |
| 73 | commit('UPDATE_VISITED_VIEW', view) | 103 | commit('UPDATE_VISITED_VIEW', view) |
| 74 | } | 104 | } | ... | ... |
src/views/zhcx/zxgcdycx/zxgcdycx.js
0 → 100644
| 1 | import filter from '@/utils/filter.js' | ||
| 2 | let vm = null | ||
| 3 | |||
| 4 | const sendThis = (_this) => { | ||
| 5 | vm = _this | ||
| 6 | } | ||
| 7 | class data extends filter { | ||
| 8 | constructor() { | ||
| 9 | super() | ||
| 10 | } | ||
| 11 | columns () { | ||
| 12 | return [ | ||
| 13 | { | ||
| 14 | label: '序号', | ||
| 15 | type: 'index', | ||
| 16 | width: '50', | ||
| 17 | render: (h, scope) => { | ||
| 18 | return ( | ||
| 19 | <div> | ||
| 20 | {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1} | ||
| 21 | </div> | ||
| 22 | ) | ||
| 23 | } | ||
| 24 | }, | ||
| 25 | { | ||
| 26 | prop: "qymc", | ||
| 27 | label: "企业名称", | ||
| 28 | }, | ||
| 29 | { | ||
| 30 | prop: "xmmc", | ||
| 31 | label: "项目名称", | ||
| 32 | }, | ||
| 33 | { | ||
| 34 | prop: "jzwmc", | ||
| 35 | label: "建筑物名称", | ||
| 36 | }, | ||
| 37 | { | ||
| 38 | prop: "zrzh", | ||
| 39 | label: "自然幢号", | ||
| 40 | }, | ||
| 41 | { | ||
| 42 | prop: "zl", | ||
| 43 | label: "坐落" | ||
| 44 | }, | ||
| 45 | { | ||
| 46 | prop: "yt", | ||
| 47 | label: "用途" | ||
| 48 | }, | ||
| 49 | { | ||
| 50 | prop: "mj", | ||
| 51 | label: "面积(㎡)" | ||
| 52 | }, | ||
| 53 | { | ||
| 54 | prop: "zts", | ||
| 55 | label: "总套数" | ||
| 56 | }, | ||
| 57 | { | ||
| 58 | prop: "zcs", | ||
| 59 | label: "总层数" | ||
| 60 | }, | ||
| 61 | { | ||
| 62 | label: '操作', | ||
| 63 | width: '90', | ||
| 64 | align: 'center', | ||
| 65 | fixed: 'right', | ||
| 66 | render: (h, scope) => { | ||
| 67 | return <el-button type="text" icon="el-icon-film" onClick={() => { vm.openDialog(scope) }}>楼盘表</el-button> | ||
| 68 | } | ||
| 69 | } | ||
| 70 | ] | ||
| 71 | } | ||
| 72 | } | ||
| 73 | let datas = new data() | ||
| 74 | export { | ||
| 75 | datas, | ||
| 76 | sendThis | ||
| 77 | } |
src/views/zhcx/zxgcdycx/zxgcdycx.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div class="from-clues"> | ||
| 3 | <!-- 表单部分 --> | ||
| 4 | <div class="from-clues-header"> | ||
| 5 | <el-form :model="queryForm" ref="queryForm"> | ||
| 6 | <el-row> | ||
| 7 | <el-col :span="5"> | ||
| 8 | <el-form-item label="项目名称"> | ||
| 9 | <el-input placeholder="请输入项目名称" v-model="queryForm.xmmc"> | ||
| 10 | </el-input> | ||
| 11 | </el-form-item> | ||
| 12 | </el-col> | ||
| 13 | <el-col :span="5"> | ||
| 14 | <el-form-item label="项目编号"> | ||
| 15 | <el-input placeholder="请输入项目编号" v-model="queryForm.xmbh"> | ||
| 16 | </el-input> | ||
| 17 | </el-form-item> | ||
| 18 | </el-col> | ||
| 19 | <el-col :span="5"> | ||
| 20 | <el-form-item label="自然幢号"> | ||
| 21 | <el-input placeholder="请输入自然幢号" v-model="queryForm.zrzh"> | ||
| 22 | </el-input> | ||
| 23 | </el-form-item> | ||
| 24 | </el-col> | ||
| 25 | <el-col :span="5"> | ||
| 26 | <el-form-item label="宗地代码"> | ||
| 27 | <el-input placeholder="请输入宗地代码" v-model="queryForm.zddm"> | ||
| 28 | </el-input> | ||
| 29 | </el-form-item> | ||
| 30 | </el-col> | ||
| 31 | |||
| 32 | <el-col :span="4" class="btnCol"> | ||
| 33 | <el-form-item> | ||
| 34 | <el-button type="primary" icon="el-icon-search" @click="fetchData">查询</el-button> | ||
| 35 | <el-button @click="moreQueryClick()">高级查询</el-button> | ||
| 36 | </el-form-item> | ||
| 37 | </el-col> | ||
| 38 | </el-row> | ||
| 39 | </el-form> | ||
| 40 | </div> | ||
| 41 | <!-- 表格 --> | ||
| 42 | <div class="from-clues-content"> | ||
| 43 | <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total" | ||
| 44 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | ||
| 45 | :data="tableData.data"> | ||
| 46 | </lb-table> | ||
| 47 | </div> | ||
| 48 | </div> | ||
| 49 | </template> | ||
| 50 | <script> | ||
| 51 | import table from "@/utils/mixin/table"; | ||
| 52 | import { datas, sendThis } from "./zxgcdycx"; | ||
| 53 | export default { | ||
| 54 | components: {}, | ||
| 55 | mixins: [table], | ||
| 56 | mounted () { | ||
| 57 | sendThis(this); | ||
| 58 | }, | ||
| 59 | data () { | ||
| 60 | return { | ||
| 61 | queryForm: { | ||
| 62 | xmmc: '', | ||
| 63 | xmbh: '', | ||
| 64 | zrzh: '', | ||
| 65 | zddm: '' | ||
| 66 | }, | ||
| 67 | tableData: { | ||
| 68 | columns: datas.columns(), | ||
| 69 | data: [ | ||
| 70 | ] | ||
| 71 | } | ||
| 72 | } | ||
| 73 | }, | ||
| 74 | methods: { | ||
| 75 | // 初始化数据 | ||
| 76 | fetchData () { }, | ||
| 77 | } | ||
| 78 | } | ||
| 79 | </script> | ||
| 80 | <style scoped lang="scss"> | ||
| 81 | @import "~@/styles/public.scss"; | ||
| 82 | </style> |
-
Please register or sign in to post a comment