024645b7 by 田浩浩
2 parents 41e3b99e 3e205e24
1 export default { 1 export default {
2 SERVERAPI: '/service-bdcdj9' 2 SERVERAPI: '/service-bdcdj9',
3 SERVERCAI: 'service-cai'
3 } 4 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -64,3 +64,12 @@ export function saveGZBatchData(data) { ...@@ -64,3 +64,12 @@ export function saveGZBatchData(data) {
64 data 64 data
65 }) 65 })
66 } 66 }
67 // 更正/变更登记提交
68 export function saveBHZData(data) {
69 return request({
70 url: SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/saveBHZData",
71 method: 'post',
72 data
73 })
74 }
75
......
1 import request from '@/utils/request' 1 import request from '@/utils/request'
2 import SERVER from './config' 2 import SERVER from './config'
3 // export function getMenuInfo () {
4 // return request({
5 // url: SERVER.SERVERAPI + '/rest/user/getUserMenus',
6 // method: 'get',
7 // })
8 // }
3 export function getMenuInfo () { 9 export function getMenuInfo () {
4 return request({ 10 return request({
5 url: SERVER.SERVERAPI + '/rest/user/getUserMenus', 11 url: SERVER.SERVERCAI + '/rest/user/getUserAuthorizationMenus',
6 method: 'get', 12 method: 'get',
7 }) 13 })
8 } 14 }
...\ No newline at end of file ...\ No newline at end of file
......
1 <template> 1 <template>
2 <div v-if="!item.hidden"> 2 <div v-if="!item.hidden">
3 <template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)"> 3 <template
4 v-if="hasOneShowingChild(item.children, item) && (!onlyOneChild.children || onlyOneChild.noShowingChildren)">
4 <app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)"> 5 <app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)">
5 <el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}"> 6 <el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{ 'submenu-title-noDropdown': !isNest }">
6 <item :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" 7 <item :icon="onlyOneChild.meta.icon || (item.meta && item.meta.icon)" :title="onlyOneChild.meta.title"
7 class="menu-icon" /> 8 class="menu-icon" />
8 </el-menu-item> 9 </el-menu-item>
9 </app-link> 10 </app-link>
......
1 <template> 1 <template>
2 <div> 2 <div>
3 <el-scrollbar wrap-class="scrollbar-wrapper"> 3 <el-scrollbar wrap-class="scrollbar-wrapper">
4 <el-menu :default-active="activeMenu" :background-color="variables.menuBg" :text-color="variables.menuText" 4 <el-menu router :default-active="activeMenu" :background-color="variables.menuBg" :text-color="variables.menuText"
5 :unique-opened="true" :active-text-color="variables.menuActiveText" :collapse-transition="false" 5 :unique-opened="true" @open="handleOpen" :active-text-color="variables.menuActiveText"
6 mode="vertical"> 6 :collapse-transition="false" mode="vertical">
7 <!-- 权限菜单 --> 7 <!-- 权限菜单 -->
8 <sidebar-item v-for="route in permission_routes" :key="route.path" :item="route" :base-path="route.path" /> 8 <sidebar-item v-for="route in permission_routes" :key="route.path" :item="route" :base-path="route.path" />
9 <!-- 菜单全部展示 --> 9 <!-- 菜单全部展示 -->
...@@ -26,7 +26,6 @@ export default { ...@@ -26,7 +26,6 @@ export default {
26 activeMenu () { 26 activeMenu () {
27 const route = this.$route 27 const route = this.$route
28 const { meta, path } = route 28 const { meta, path } = route
29 // if set path, the sidebar will highlight the path you set
30 if (meta.activeMenu) { 29 if (meta.activeMenu) {
31 return meta.activeMenu 30 return meta.activeMenu
32 } 31 }
...@@ -39,5 +38,15 @@ export default { ...@@ -39,5 +38,15 @@ export default {
39 return asyncRoutes 38 return asyncRoutes
40 }, 39 },
41 }, 40 },
41 methods: {
42 handleOpen (key, keyPath) {
43 let that = this
44 this.permission_routes.forEach(element => {
45 if (element.path == key) {
46 that.$router.push({ path: element.redirect })
47 }
48 })
49 }
50 },
42 } 51 }
43 </script> 52 </script>
......
...@@ -21,6 +21,7 @@ router.beforeEach(async (to, from, next) => { ...@@ -21,6 +21,7 @@ router.beforeEach(async (to, from, next) => {
21 } else { 21 } else {
22 const { result: getMenuData } = await getMenuInfo() 22 const { result: getMenuData } = await getMenuInfo()
23 const accessRoutes = await store.dispatch('permission/generateRoutes', getMenuData) 23 const accessRoutes = await store.dispatch('permission/generateRoutes', getMenuData)
24 console.log(accessRoutes);
24 router.addRoutes(accessRoutes) 25 router.addRoutes(accessRoutes)
25 next({ ...to, replace: true }) 26 next({ ...to, replace: true })
26 } 27 }
......
...@@ -40,9 +40,13 @@ export const constantRoutes = [ ...@@ -40,9 +40,13 @@ export const constantRoutes = [
40 name: 'workFrameView', 40 name: 'workFrameView',
41 hidden: true, 41 hidden: true,
42 meta: { title: '发起申请' } 42 meta: { title: '发起申请' }
43 } 43 },
44 {
45 path: '*',
46 component: () => import('@/views/error-page/404'),
47 hidden: true
48 },
44 ] 49 ]
45
46 /** 50 /**
47 * asyncRoutes 51 * asyncRoutes
48 * the routes that need to be dynamically loaded based on user roles 52 * the routes that need to be dynamically loaded based on user roles
...@@ -68,8 +72,7 @@ export const asyncRoutes = [ ...@@ -68,8 +72,7 @@ export const asyncRoutes = [
68 parentId: null, 72 parentId: null,
69 component: Layout, 73 component: Layout,
70 meta: { title: '业务办理', icon: 'ywbl' }, 74 meta: { title: '业务办理', icon: 'ywbl' },
71 redirect: '/ywbl/ywsq/ywsq', 75 redirect: '/ywbl/ywsq',
72 alwaysShow: true,
73 name: 'ywbl', 76 name: 'ywbl',
74 children: [ 77 children: [
75 { 78 {
......
...@@ -3,16 +3,24 @@ export default function filterAsyncRouter (routers) { ...@@ -3,16 +3,24 @@ export default function filterAsyncRouter (routers) {
3 routers.forEach(item => { 3 routers.forEach(item => {
4 if (!item.children) { 4 if (!item.children) {
5 delete item.children 5 delete item.children
6 delete item.redirect
7 } 6 }
7 item.path = JSON.parse(item.metadata).path
8 if (!item.parentId) { 8 if (!item.parentId) {
9 item.component = Layout 9 item.component = Layout
10 } else { 10 } else {
11 item.component = loadView(item.uri) 11 item.component = loadView(item.uri)
12 } 12 }
13 item.meta.icon = item.icon 13 item.meta = {
14 title: item.name,
15 icon: item.icon
16 }
14 if (item.children) { 17 if (item.children) {
15 item.children = filterAsyncRouter(item.children) 18 item.children = filterAsyncRouter(item.children)
19 if (item.path !== '/') {
20 item.redirect = item.path + '/' + item.children[0].path
21 } else {
22 item.redirect = '/' + item.children[0].path
23 }
16 } 24 }
17 }) 25 })
18 return routers 26 return routers
......
...@@ -23,6 +23,9 @@ export function getForm(tabName, djywbm) { ...@@ -23,6 +23,9 @@ export function getForm(tabName, djywbm) {
23 case "fwsyqslxx400": 23 case "fwsyqslxx400":
24 form = require("@/views/ywbl/fdcq2/slxx400.vue"); 24 form = require("@/views/ywbl/fdcq2/slxx400.vue");
25 break; 25 break;
26 case "fwsyqslxx900":
27 form = require("@/views/ywbl/fdcq2/slxx900.vue");
28 break;
26 case "tdslxxCfdj": 29 case "tdslxxCfdj":
27 form = require("@/views/ywbl/cfdj/tdslxx.vue"); 30 form = require("@/views/ywbl/cfdj/tdslxx.vue");
28 break; 31 break;
......
...@@ -258,7 +258,7 @@ export default { ...@@ -258,7 +258,7 @@ export default {
258 this.$popup({ 258 this.$popup({
259 titleStyle: "left", 259 titleStyle: "left",
260 title: "登记簿详情", // 弹窗标题 260 title: "登记簿详情", // 弹窗标题
261 editItem: "ywbl/fdcq2/slxx900", // 弹窗内容 261 editItem: "ywbl/fdcq2/slxxCompareDetai", // 弹窗内容
262 formData: { 262 formData: {
263 bsmSlsq: this.propsParam.bsmSldy, 263 bsmSlsq: this.propsParam.bsmSldy,
264 qllx: this.propsParam.qllx 264 qllx: this.propsParam.qllx
......
...@@ -261,7 +261,7 @@ export default { ...@@ -261,7 +261,7 @@ export default {
261 this.$popup({ 261 this.$popup({
262 titleStyle: "left", 262 titleStyle: "left",
263 title: "登记簿详情", // 弹窗标题 263 title: "登记簿详情", // 弹窗标题
264 editItem: "ywbl/fdcq2/slxx900", // 弹窗内容 264 editItem: "ywbl/fdcq2/slxxCompareDetai;", // 弹窗内容
265 formData: { 265 formData: {
266 bsmSlsq: this.propsParam.bsmSldy, 266 bsmSlsq: this.propsParam.bsmSldy,
267 qllx: this.propsParam.qllx 267 qllx: this.propsParam.qllx
......
1 <template> 1 <template>
2 <div class="djxxTable" :style="{'max-height': this.timeLineHeight + 'px' }" 2 <!-- 受理信息 -->
3 style="overflow-y:scroll;"> 3 <div class="slxx">
4 <div class="tableBox" > 4 <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" :inline="flag"
5 <div class="title"> 5 label-width="120px">
6 <span v-if="this.propsParam.formData.qllx=='A04' || this.propsParam.formData.qllx=='A06' || this.propsParam.formData.qllx=='A08'">{{ title }}</span> 6 <div class="slxx_con">
7 <span v-if="this.propsParam.formData.qllx=='A03' || this.propsParam.formData.qllx=='A05' || this.propsParam.formData.qllx=='A07'">{{ ydTitile }}</span> 7 <div class="slxx_title title-block">
8 </div> 8 受理信息
9 <div class="xxTableBox"> 9 <div class="triangle"></div>
10 <table class="xxTable"> 10 </div>
11 <tr> 11 <el-row :gutter="10" v-if="ruleForm.slywxx">
12 <td></td> 12 <el-col :span="8">
13 <td>变更前</td> 13 <el-form-item :class="flag ? 'marginBot0' : ''" label="业务号:">
14 <td>变更后</td> 14 <el-input disabled v-model="ruleForm.slywxx.ywh"></el-input>
15 </tr> 15 </el-form-item>
16 <tr v-if="this.propsParam.formData.qllx=='A04' || this.propsParam.formData.qllx=='A06' || this.propsParam.formData.qllx=='A08'" v-for="(item, colindex) in columns" :key="colindex"> 16 </el-col>
17 <td> 17 <el-col :span="8">
18 {{ item.label }} 18 <el-form-item :class="flag ? 'marginBot0' : ''" label="受理人员:">
19 </td> 19 <el-input disabled v-model="ruleForm.slywxx.slry"></el-input>
20 <td 20 </el-form-item>
21 v-for="(row, index) in tableData" 21 </el-col>
22 :key="index" 22 <el-col :span="8">
23 :class="[ 23 <el-form-item :class="flag ? 'marginBot0' : ''" label="受理时间:">
24 row.qszt == '2' ? 'lishi' : '', 24 <el-input disabled v-model="ruleForm.slywxx.slsj"></el-input>
25 row.qszt == '0' ? 'linshi' : '', 25 </el-form-item>
26 item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', 26 </el-col>
27 ]" 27 </el-row>
28 > 28 <el-row :gutter="10" v-if="ruleForm.slywxx">
29 <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> 29 <el-col :span="8">
30 正在办理 30 <el-form-item :class="flag ? 'marginBot0' : ''" label="权利类型:">
31 </div> 31 <el-input disabled v-model="ruleForm.slywxx.qllxmc"></el-input>
32 <span v-if="item.prop == 'qszt'"> 32 </el-form-item>
33 {{ getQsztName(row[item.prop]) }} 33 </el-col>
34 </span> 34 <el-col :span="8">
35 35 <el-form-item :class="flag ? 'marginBot0' : ''" label="登记类型:">
36 <span v-else> {{ row[item.prop] }}</span> 36 <el-input disabled v-model="ruleForm.slywxx.djlxmc"></el-input>
37 </td> 37 </el-form-item>
38 </tr> 38 </el-col>
39 <tr v-if="this.propsParam.formData.qllx=='A03' || this.propsParam.formData.qllx=='A05' || this.propsParam.formData.qllx=='A07'" v-for="(item, colindex) in tdColumns" :key="colindex"> 39 <el-col :span="8">
40 <td> 40 <el-form-item :class="flag ? 'marginBot0' : ''" label="登记情形:">
41 {{ item.label }} 41 <el-input disabled v-model="ruleForm.slywxx.djqxmc"></el-input>
42 </td> 42 </el-form-item>
43 <td 43 </el-col>
44 v-for="(row, index) in tableData" 44 </el-row>
45 :key="index" 45 <div class="slxx_title title-block">
46 :class="[ 46 不动产单元情况
47 row.qszt == '2' ? 'lishi' : '', 47 <div class="triangle"></div>
48 row.qszt == '0' ? 'linshi' : '', 48 </div>
49 item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', 49 <el-row :gutter="10" v-if="ruleForm.qlxx">
50 ]" 50 <el-col :span="8">
51 > 51 <el-form-item :class="flag ? 'marginBot0' : ''" label="不动产单元号:">
52 <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> 52 <el-input disabled v-model="ruleForm.qlxx.bdcdyh"></el-input>
53 正在办理 53 </el-form-item>
54 </div> 54 </el-col>
55 <span v-if="item.prop == 'qszt'"> 55 <el-col :span="16">
56 {{ getQsztName(row[item.prop]) }} 56 <el-form-item :class="flag ? 'marginBot0' : ''" label="坐落:">
57 </span> 57 <el-input disabled v-model="ruleForm.qlxx.zl"></el-input>
58 </el-form-item>
59 </el-col>
60 </el-row>
61 <el-row :gutter="10" v-if="ruleForm.fdcq2">
62 <el-col :span="8">
63 <el-form-item :class="flag ? 'marginBot0' : ''" label="土地用途:">
64 <el-input disabled v-model="ruleForm.fdcq2.yt"></el-input>
65 </el-form-item>
66 </el-col>
67 <el-col :span="8">
68 <el-form-item :class="flag ? 'marginBot0' : ''" label="土地使用起止时间:">
69 <el-input disabled v-model="ruleForm.fdcq2.tdsyqzsj"></el-input>
70 </el-form-item>
71 </el-col>
72 <el-col :span="8">
73 <el-form-item :class="flag ? 'marginBot0' : ''" label="土地使用期限:">
74 <el-input disabled v-model="ruleForm.fdcq2.tdsyqx"></el-input>
75 </el-form-item>
76 </el-col>
77 </el-row>
78 <el-row :gutter="10" v-if="ruleForm.qlxx">
79 <el-col :span="8">
80 <el-form-item :class="flag ? 'marginBot0' : ''" label="房屋用途:">
81 <el-input disabled v-model="ruleForm.qlxx.ytmc"></el-input>
82 </el-form-item>
83 </el-col>
84 <el-col :span="8">
85 <el-form-item :class="flag ? 'marginBot0' : ''" label="房屋性质:">
86 <el-input disabled v-model="ruleForm.fdcq2.fwxzmc"></el-input>
87 </el-form-item>
88 </el-col>
89 <el-col :span="8">
90 <el-form-item :class="flag ? 'marginBot0' : ''" label="房屋结构:">
91 <el-input disabled v-model="ruleForm.fdcq2.fwjgmc"></el-input>
92 </el-form-item>
93 </el-col>
94 </el-row>
95 <el-row :gutter="10" v-if="ruleForm.fdcq2">
96 <el-col :span="8">
97 <el-form-item :class="flag ? 'marginBot0' : ''" label="所在层:">
98 <el-input disabled v-model="ruleForm.fdcq2.szc"></el-input>
99 </el-form-item>
100 </el-col>
101 <el-col :span="8">
102 <el-form-item :class="flag ? 'marginBot0' : ''" label="总层数:">
103 <el-input disabled v-model="ruleForm.fdcq2.zcs"></el-input>
104 </el-form-item>
105 </el-col>
106 <el-col :span="8">
107 <el-form-item :class="flag ? 'marginBot0' : ''" label="竣工时间:">
108 <el-input disabled v-model="ruleForm.fdcq2.jgsj"></el-input>
109 </el-form-item>
110 </el-col>
111 </el-row>
112 <el-row :gutter="10" v-if="ruleForm.qlxx">
113 <el-col :span="8">
114 <el-form-item :class="flag ? 'marginBot0' : ''" label="建筑面积:">
115 <el-input disabled v-model="ruleForm.qlxx.mj"></el-input>
116 </el-form-item>
117 </el-col>
118 <el-col :span="8">
119 <el-form-item :class="flag ? 'marginBot0' : ''" label="专有建筑面积:">
120 <el-input disabled v-model="ruleForm.fdcq2.zyjzmj"></el-input>
121 </el-form-item>
122 </el-col>
123 <el-col :span="8">
124 <el-form-item :class="flag ? 'marginBot0' : ''" label="分摊建筑面积:">
125 <el-input disabled v-model="ruleForm.fdcq2.ftjzmj"></el-input>
126 </el-form-item>
127 </el-col>
128 </el-row>
129 <div class="slxx_title title-block">
130 权利人信息
131 <div class="triangle"></div>
132 </div>
133 <el-row :gutter="10">
134 <el-col :span="14" v-if="ruleForm.qlxx">
135 <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
136 <el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.slywxx.gyfs">
137 <el-radio label="1">单独所有</el-radio>
138 <el-radio label="2">共同共有</el-radio>
139 <el-radio label="3">按份所有</el-radio>
140 </el-radio-group>
141 </el-form-item>
142 </el-col>
143 <el-col :span="5" v-show="ruleForm.qlxx&&ruleForm.qlxx.gyfs == '2'">
144 <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:">
145 <el-radio-group v-model="ruleForm.sffbcz">
146 <el-radio label="1"></el-radio>
147 <el-radio label="0"></el-radio>
148 </el-radio-group>
149 </el-form-item>
150 </el-col>
151 <el-col :span="5" v-show="ruleForm.qlxx&&ruleForm.qlxx.gyfs == '2'">
152 <el-form-item :class="flag ? 'marginBot0' : ''" label="持证人:">
153 <el-select v-model="ruleForm.czr" placeholder="持证人">
154 <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value">
155 </el-option>
156 </el-select>
157 </el-form-item>
158 </el-col>
159 </el-row>
160 <InformationTable v-if="ruleForm.qlxx" @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList"
161 :gyfs="ruleForm.qlxx.gyfs" />
58 162
59 <span v-else> {{ row[item.prop] }}</span> 163 <div class="slxx_title title-block">
60 </td> 164 登记原因
61 </tr> 165 <div class="triangle"></div>
62 </table> 166 </div>
167 <el-row :gutter="10">
168 <el-col>
169 <el-form-item v-if="ruleForm.fdcq2" :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="djyy">
170 <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype==1"
171 v-model="ruleForm.fdcq2.djyy">
172 </el-input>
173 </el-form-item>
174 </el-col>
175 </el-row>
63 </div> 176 </div>
64 </div> 177 <el-row class="btn" v-if="!$route.query.viewtype">
178 <el-form-item :class="flag ? 'marginBot0' : ''">
179 <el-button type="primary" @click="onSubmit">保存</el-button>
180 </el-form-item>
181 </el-row>
182 </el-form>
65 </div> 183 </div>
66 </template> 184 </template>
67
68 <script> 185 <script>
69 import {getFdcqLSInfo} from "@/api/registerBook.js"; 186 import InformationTable from "@/views/workflow/components/InformationTable";
70 import { datas } from "@/views/registerBook/qlxxFormData.js"; 187 import {Init, saveBHZData} from "@/api/fwsyqFlow.js";
188 import { mapGetters } from "vuex";
71 export default { 189 export default {
72 data() { 190 async created () {
191 //this.propsParam = this.$attrs;
192 var formdata = new FormData();
193 formdata.append("bsmSldy", this.propsParam.bsmSldy);
194 formdata.append("djlx", this.propsParam.djlx);
195 Init(formdata).then(res => {
196 if (res.code === 200 && res.result) {
197 // this.ruleForm = {
198 // ...res.result.slywxx,
199 // ...res.result.zdjbxx,
200 // ...res.result.qlxx,
201 // ...res.result.fdcq2,
202 // };
203 this.ruleForm = res.result;
204 }
205 })
206 },
207 components: { InformationTable },
208 computed: {
209 ...mapGetters(["dictData", "flag"]),
210 },
211 data () {
73 return { 212 return {
74 title: "房地产权登记信息(独幢、层、套、间房屋)", 213 disabled: true,
75 ydTitile: "土地使用权登记信息", 214 tdytOption: [],
76 qsztList: datas.columns().qsztList, 215 czrOptions: [],
77 checkList: datas.columns().checkList, 216 ruleForm: {},
78 //传递参数 217 //传递参数
79 propsParam: this.$attrs, 218 propsParam: this.$attrs,
80 //列表数据 219 rules: {},
81 tableData: [],
82 //空列值个数
83 emptycolNum: 1,
84 //列名称对象
85 columns: datas.columns().FDCQ2,
86 tdColumns: datas.columns().JSYDSYQ
87
88 };
89 },
90 created() {
91 this.loadData();
92 },
93 mounted() {
94 this.timeLineHeight = document.documentElement.clientHeight - 210;
95 window.onresize = () => {
96 this.timeLineHeight = document.documentElement.clientHeight - 210;
97 }; 220 };
98 }, 221 },
99 methods: { 222 methods: {
100 loadData() { 223 // 更新权利人信息
101 getFdcqLSInfo(this.propsParam.formData).then((res) => { 224 upDateQlrxxList (val) {
102 if (res.code === 200) { 225 this.ruleForm.qlrList = _.cloneDeep(val);
103 this.tableData = res.result; 226 },
104 if (this.tableData.length < datas.columns().emptycolNum) { 227 // 更新权利人信息
105 this.emptycolNum = 228 upDateYwrxxList (val) {
106 datas.columns().emptycolNum - this.tableData.length; 229 this.ruleForm.ywrList = _.cloneDeep(val);
107 } else { 230 },
108 this.emptycolNum = 0; 231 list (bsmSldy) {
109 } 232 var formdata = new FormData();
233 formdata.append("bsmSldy", bsmSldy);
234 Init(formdata).then((res) => {
235 if (res.code === 200 && res.result) {
236 this.ruleForm = {
237 ...res.result,
238 ...res.result.zdjbxxdatas,
239 ...res.result.qlxxdatas,
240 ...res.result.jsydsyqdatas,
241 };
110 } 242 }
111 }); 243 });
112 }, 244 },
113 checkChange() { 245 onSubmit () {
114 if (this.checkList.length === 0) { 246 saveBHZData(this.ruleForm).then((res) => {
115 this.tableData = []; 247 console.log(this.ruleForm);
116 this.emptycolNum = datas.columns().emptycolNum; 248 if (res.code === 200 && res.result) {
117 } else { 249 console.log(res);
118 this.loadData(); 250 //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas }
119 }
120 },
121 getQsztName(code) {
122 let name = "";
123 for (let item of this.qsztList) {
124 if (item.value == code) {
125 name = item.label;
126 break;
127 } 251 }
128 } 252 });
129 return name;
130 }, 253 },
131 }, 254 },
132 }; 255 };
133 </script> 256 </script>
257 <style scoped lang='scss'>
258 @import "~@/styles/public.scss";
259
260 /deep/.el-form {
261 display: flex;
262 flex-direction: column;
263 height: calc(100vh - 130px);
264 background-color: aqua;
265 }
266
267 /deep/.el-form-item__label {
268 padding: 0;
269 }
270
271 /deep/.el-radio {
272 margin-right: 10px;
273 }
274
275 /deep/.el-select {
276 width: 100%;
277 }
278
279 /deep/.el-form-item {
280 margin-bottom: 8px;
281 }
282
283 .marginBot0 {
284 margin-bottom: 0 !important;
285 }
286
287 .slxx {
288 box-sizing: border-box;
289 }
290
291 .slxx_con {
292 flex: 1;
293 height: 100%;
294 background-color: #ffffff;
295 overflow-y: auto;
296 padding-right: 3px;
297 overflow-x: hidden;
298 }
299
300 .submit_btn {
301 height: 50px;
302 }
303
304 .slxx_title {
305 border-bottom: 1px solid $borderColor;
306 padding-left: 10px;
307 padding-bottom: 5px;
308 margin-bottom: 10px;
309 margin-top: 5px;
310 font-size: 16px;
311 font-weight: 500;
312 color: #4a4a4a;
313 }
314
315 .btn {
316 text-align: center;
317 padding-top: 10px;
318 height: 36px;
319 background-color: #ffffff;
320 padding: 5px 0;
321 }
322
323 .textArea {
324 /deep/.el-textarea__inner {
325 min-height: 90px !important;
326 }
327 }
134 328
135 <style lang="scss" scoped> 329 /deep/.el-form-item__label {
136 @import "~@/views/registerBook/qlxxCommon.scss"; 330 padding-bottom: 0px;
331 }
137 </style> 332 </style>
......
1 <template>
2 <div class="djxxTable" :style="{'max-height': this.timeLineHeight + 'px' }"
3 style="overflow-y:scroll;">
4 <div class="tableBox" >
5 <div class="title">
6 <span v-if="this.propsParam.formData.qllx=='A04' || this.propsParam.formData.qllx=='A06' || this.propsParam.formData.qllx=='A08'">{{ title }}</span>
7 <span v-if="this.propsParam.formData.qllx=='A03' || this.propsParam.formData.qllx=='A05' || this.propsParam.formData.qllx=='A07'">{{ ydTitile }}</span>
8 </div>
9 <div class="xxTableBox">
10 <table class="xxTable">
11 <tr>
12 <td></td>
13 <td>变更前</td>
14 <td>变更后</td>
15 </tr>
16 <tr v-if="this.propsParam.formData.qllx=='A04' || this.propsParam.formData.qllx=='A06' || this.propsParam.formData.qllx=='A08'" v-for="(item, colindex) in columns" :key="colindex">
17 <td>
18 {{ item.label }}
19 </td>
20 <td
21 v-for="(row, index) in tableData"
22 :key="index"
23 :class="[
24 row.qszt == '2' ? 'lishi' : '',
25 row.qszt == '0' ? 'linshi' : '',
26 item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '',
27 ]"
28 >
29 <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'">
30 正在办理
31 </div>
32 <span v-if="item.prop == 'qszt'">
33 {{ getQsztName(row[item.prop]) }}
34 </span>
35
36 <span v-else> {{ row[item.prop] }}</span>
37 </td>
38 </tr>
39 <tr v-if="this.propsParam.formData.qllx=='A03' || this.propsParam.formData.qllx=='A05' || this.propsParam.formData.qllx=='A07'" v-for="(item, colindex) in tdColumns" :key="colindex">
40 <td>
41 {{ item.label }}
42 </td>
43 <td
44 v-for="(row, index) in tableData"
45 :key="index"
46 :class="[
47 row.qszt == '2' ? 'lishi' : '',
48 row.qszt == '0' ? 'linshi' : '',
49 item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '',
50 ]"
51 >
52 <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'">
53 正在办理
54 </div>
55 <span v-if="item.prop == 'qszt'">
56 {{ getQsztName(row[item.prop]) }}
57 </span>
58
59 <span v-else> {{ row[item.prop] }}</span>
60 </td>
61 </tr>
62 </table>
63 </div>
64 </div>
65 </div>
66 </template>
67
68 <script>
69 import {getFdcqLSInfo} from "@/api/registerBook.js";
70 import { datas } from "@/views/registerBook/qlxxFormData.js";
71 export default {
72 data() {
73 return {
74 title: "房地产权登记信息(独幢、层、套、间房屋)",
75 ydTitile: "土地使用权登记信息",
76 qsztList: datas.columns().qsztList,
77 checkList: datas.columns().checkList,
78 //传递参数
79 propsParam: this.$attrs,
80 //列表数据
81 tableData: [],
82 //空列值个数
83 emptycolNum: 1,
84 //列名称对象
85 columns: datas.columns().FDCQ2,
86 tdColumns: datas.columns().JSYDSYQ
87
88 };
89 },
90 created() {
91 this.loadData();
92 },
93 mounted() {
94 this.timeLineHeight = document.documentElement.clientHeight - 210;
95 window.onresize = () => {
96 this.timeLineHeight = document.documentElement.clientHeight - 210;
97 };
98 },
99 methods: {
100 loadData() {
101 getFdcqLSInfo(this.propsParam.formData).then((res) => {
102 if (res.code === 200) {
103 this.tableData = res.result;
104 if (this.tableData.length < datas.columns().emptycolNum) {
105 this.emptycolNum =
106 datas.columns().emptycolNum - this.tableData.length;
107 } else {
108 this.emptycolNum = 0;
109 }
110 }
111 });
112 },
113 checkChange() {
114 if (this.checkList.length === 0) {
115 this.tableData = [];
116 this.emptycolNum = datas.columns().emptycolNum;
117 } else {
118 this.loadData();
119 }
120 },
121 getQsztName(code) {
122 let name = "";
123 for (let item of this.qsztList) {
124 if (item.value == code) {
125 name = item.label;
126 break;
127 }
128 }
129 return name;
130 },
131 },
132 };
133 </script>
134
135 <style lang="scss" scoped>
136 @import "~@/views/registerBook/qlxxCommon.scss";
137 </style>
...@@ -45,14 +45,7 @@ module.exports = { ...@@ -45,14 +45,7 @@ module.exports = {
45 '^/api': '' 45 '^/api': ''
46 } 46 }
47 } 47 }
48 // '': { 48 }
49 // target: process.env.VUE_APP_API_BASE_URL,
50 // changeOrigin: true,
51 // pathRewrite: {
52 // '^': ''
53 // }
54 // }
55 },
56 }, 49 },
57 css: { 50 css: {
58 extract: false, // 是否使用css分离插件 ExtractTextPlugin 51 extract: false, // 是否使用css分离插件 ExtractTextPlugin
......