0a6df8d7 by “miaofang

--no commit message

1 parent 3c245569
...@@ -81,7 +81,18 @@ export function getBdcqljqtsx (data) { ...@@ -81,7 +81,18 @@ export function getBdcqljqtsx (data) {
81 params: data 81 params: data
82 }) 82 })
83 } 83 }
84 84 /**
85 * @description: 获取不动产权利及其他事项Bdcdyh
86 * @param {*} data
87 * @author: renchao
88 */
89 export function getBdcqljqtsxBdcdyh (data) {
90 return request({
91 url: SERVER.SERVERAPI + '/rest/djbDetail/getBdcqljqtsxBdcdyh',
92 method: 'get',
93 params: data
94 })
95 }
85 /** 96 /**
86 * @description: 获取土地所有权 97 * @description: 获取土地所有权
87 * @param {*} data 98 * @param {*} data
......
1 import { log } from 'bpmn-js-token-simulation';
2 import { mapGetters } from 'vuex' 1 import { mapGetters } from 'vuex'
3 import { defaultParameters } from "../../views/ywbl/ywsq/javascript/publicDefaultPar"; 2 import { defaultParameters } from "../../views/ywbl/ywsq/javascript/publicDefaultPar";
4 export default { 3 export default {
...@@ -28,7 +27,6 @@ export default { ...@@ -28,7 +27,6 @@ export default {
28 */ 27 */
29 handkeyCode(e) { 28 handkeyCode(e) {
30 if(e.keyCode === 13){ 29 if(e.keyCode === 13){
31 console.log("安");
32 this.handleSearch() 30 this.handleSearch()
33 } 31 }
34 }, 32 },
......
1
1 /* 2 /*
2 * @Description: 3 * @Description:
3 * @Autor: renchao 4 * @Autor: renchao
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
14 :default-expand-all="true" 14 :default-expand-all="true"
15 :expand-on-click-node="false" 15 :expand-on-click-node="false"
16 node-key="id" 16 node-key="id"
17 :default-checked-keys="[showTab]"> 17 :default-checked-keys="[showTab]"
18 >
18 </el-tree> 19 </el-tree>
19 <el-collapse v-model="activeName" accordion> 20 <el-collapse v-model="activeName" accordion>
20 <el-collapse-item 21 <el-collapse-item
...@@ -22,7 +23,8 @@ ...@@ -22,7 +23,8 @@
22 ref="sfq" 23 ref="sfq"
23 v-for="(item, index) in sfqdata" 24 v-for="(item, index) in sfqdata"
24 :key="index" 25 :key="index"
25 :name="index"> 26 :name="index"
27 >
26 <template slot="title"> 28 <template slot="title">
27 <span class="text" @click="tap(item)"> 29 <span class="text" @click="tap(item)">
28 <span> 30 <span>
...@@ -35,7 +37,8 @@ ...@@ -35,7 +37,8 @@
35 :re="item" 37 :re="item"
36 :key="index" 38 :key="index"
37 :class="[isActive == index ? activeCls : '', errorCls]" 39 :class="[isActive == index ? activeCls : '', errorCls]"
38 @click="taplist(item, index)"> 40 @click="taplist(item, index)"
41 >
39 <span> 42 <span>
40 {{ item.label }} 43 {{ item.label }}
41 </span> 44 </span>
...@@ -50,17 +53,18 @@ ...@@ -50,17 +53,18 @@
50 <component 53 <component
51 :is="componentTag" 54 :is="componentTag"
52 @getBdcdyh="getBdcdyh" 55 @getBdcdyh="getBdcdyh"
53 v-bind="currentSelectProps" /> 56 v-bind="currentSelectProps"
57 />
54 </div> 58 </div>
55 </div> 59 </div>
56 </template> 60 </template>
57 <script> 61 <script>
58 import { getBdcqljqtsx } from "@/api/djbDetail.js"; 62 import { getBdcqljqtsx, getBdcqljqtsxBdcdyh } from "@/api/djbDetail.js";
59 import { loadTreeData, loadsfqData, getNode } from "./djbFrameData.js"; 63 import { loadTreeData, loadsfqData, getNode } from "./djbFrameData.js";
60 import { searchTaskToDo } from "@/api/workflow/search.js"; 64 import { searchTaskToDo } from "@/api/workflow/search.js";
61 import { leftMenu } from "@/api/workFlow.js"; 65 import { leftMenu } from "@/api/workFlow.js";
62 export default { 66 export default {
63 data () { 67 data() {
64 return { 68 return {
65 //接收参数 69 //接收参数
66 // propsParam: this.$attrs, 70 // propsParam: this.$attrs,
...@@ -91,8 +95,8 @@ ...@@ -91,8 +95,8 @@
91 showTab: "bdcqldjml", // 选中状态,根据表格中权利类型判断 95 showTab: "bdcqldjml", // 选中状态,根据表格中权利类型判断
92 }; 96 };
93 }, 97 },
94 mounted () { 98 mounted() {
95 this.getdata(); 99 this.loadData(this.getCaption(window.location.href));
96 }, 100 },
97 methods: { 101 methods: {
98 // 截取字符的方法 102 // 截取字符的方法
...@@ -101,7 +105,7 @@ ...@@ -101,7 +105,7 @@
101 * @param {*} obj 105 * @param {*} obj
102 * @author: renchao 106 * @author: renchao
103 */ 107 */
104 getCaption (obj) { 108 getCaption(obj) {
105 let index = obj.lastIndexOf("="); 109 let index = obj.lastIndexOf("=");
106 obj = obj.substring(index + 1, obj.length); 110 obj = obj.substring(index + 1, obj.length);
107 return obj; 111 return obj;
...@@ -111,30 +115,30 @@ ...@@ -111,30 +115,30 @@
111 * @description: 通过不动产业务号获取参数 115 * @description: 通过不动产业务号获取参数
112 * @author: renchao 116 * @author: renchao
113 */ 117 */
114 getdata () { 118 // getdata () {
115 this.queryForm = { 119 // this.queryForm = {
116 bdcdyh: this.getCaption(window.location.href), 120 // bdcdyh: this.getCaption(window.location.href),
117 currentPage: 1, 121 // currentPage: 1,
118 djlx: "", 122 // djlx: "",
119 pageSize: 10, 123 // pageSize: 10,
120 qllx: "", 124 // qllx: "",
121 ywh: "", 125 // ywh: "",
122 ywly: "", 126 // ywly: "",
123 }; 127 // };
124 if (this.queryForm) { 128 // if (this.queryForm) {
125 this.$startLoading(); 129 // this.$startLoading();
126 searchTaskToDo({ 130 // searchTaskToDo({
127 ...this.queryForm, 131 // ...this.queryForm,
128 }).then((res) => { 132 // }).then((res) => {
129 if (res.code === 200) { 133 // if (res.code === 200) {
130 let { records } = res.result; 134 // let { records } = res.result;
131 135
132 this.loadBdcdylist(records[0].bsmSlsq, records[0].bestepid); 136 // this.loadBdcdylist(records[0].bsmSlsq, records[0].bestepid);
133 this.$endLoading(); 137 // this.$endLoading();
134 } 138 // }
135 }); 139 // });
136 } 140 // }
137 }, 141 // },
138 142
139 // 获取不动产信息 143 // 获取不动产信息
140 /** 144 /**
...@@ -143,33 +147,33 @@ ...@@ -143,33 +147,33 @@
143 * @param {*} b 147 * @param {*} b
144 * @author: renchao 148 * @author: renchao
145 */ 149 */
146 loadBdcdylist (a, b) { 150 // loadBdcdylist (a, b) {
147 var formdata = new FormData(); 151 // var formdata = new FormData();
148 formdata.append("bsmSlsq", a); 152 // formdata.append("bsmSlsq", a);
149 formdata.append("bestepid", b); 153 // formdata.append("bestepid", b);
150 leftMenu(formdata).then((res) => { 154 // leftMenu(formdata).then((res) => {
151 if (res.code === 200) { 155 // if (res.code === 200) {
152 if (res.result) { 156 // if (res.result) {
153 this.currentSelectProps = res.result[0]; 157 // this.currentSelectProps = res.result[0];
154 this.loadData(this.currentSelectProps.bdcdyh); 158 // this.loadData(this.currentSelectProps.bdcdyh);
155 } 159 // }
156 } 160 // }
157 }); 161 // });
158 }, 162 // },
159 163
160 /** 164 /**
161 * @description: getBdcdyh 165 * @description: getBdcdyh
162 * @author: miaofang 166 * @author: miaofang
163 * 点击不动产单元号事件 167 * 点击不动产单元号事件
164 */ 168 */
165 getBdcdyh (val) { 169 getBdcdyh(val) {
166 this.addloadData(val); 170 this.addloadData(val);
167 }, 171 },
168 /** 172 /**
169 * @description: addloadData 173 * @description: addloadData
170 * @author: miaofang 174 * @author: miaofang
171 */ 175 */
172 addloadData (val) { 176 addloadData(val) {
173 getBdcqljqtsx({ 177 getBdcqljqtsx({
174 bdcdyid: val.bdcdyid, 178 bdcdyid: val.bdcdyid,
175 bdcdyh: val.bdcdyh, 179 bdcdyh: val.bdcdyh,
...@@ -179,7 +183,7 @@ ...@@ -179,7 +183,7 @@
179 let index = this.sfqdata.findIndex((item) => { 183 let index = this.sfqdata.findIndex((item) => {
180 return item.bdcdyid == val.bdcdyid; 184 return item.bdcdyid == val.bdcdyid;
181 }); 185 });
182 this.activeName = index 186 this.activeName = index;
183 } else { 187 } else {
184 this.sfqdata.push(loadsfqData(res.result, val.bdcdyh, val.bdcdyid)); 188 this.sfqdata.push(loadsfqData(res.result, val.bdcdyh, val.bdcdyid));
185 this.activeName = this.sfqdata.length - 1; 189 this.activeName = this.sfqdata.length - 1;
...@@ -197,19 +201,16 @@ ...@@ -197,19 +201,16 @@
197 * @description: loadData 201 * @description: loadData
198 * @author: renchao 202 * @author: renchao
199 */ 203 */
200 loadData (val) { 204 loadData(val) {
201 getBdcqljqtsx({ 205 getBdcqljqtsxBdcdyh({
202 bdcdyid: this.currentSelectProps.bdcdyid,
203 bdcdyh: val, 206 bdcdyh: val,
204 }).then((res) => { 207 }).then((res) => {
205 if (res.code === 200) { 208 if (res.code === 200) {
206 this.treedata = loadTreeData(val); 209 this.treedata = loadTreeData(val);
207 this.sfqdata.push( 210 this.sfqdata.push(loadsfqData(res.result, val, res.result.bdcdyid));
208 loadsfqData(res.result, val, this.currentSelectProps.bdcdyid)
209 );
210 this.$nextTick(function () { 211 this.$nextTick(function () {
211 this.defaultNode = getNode( 212 this.defaultNode = getNode(
212 this.currentSelectProps.qllx, 213 res.result.ztqllx,
213 { linShi: 0, xianShi: 0, liShi: 0 }, 214 { linShi: 0, xianShi: 0, liShi: 0 },
214 res.result.bdcdylx || "" 215 res.result.bdcdylx || ""
215 ); 216 );
...@@ -218,22 +219,20 @@ ...@@ -218,22 +219,20 @@
218 this.loadComponent(item.form); 219 this.loadComponent(item.form);
219 this.isActive = index; 220 this.isActive = index;
220 } 221 }
221 }) 222 });
223 this.currentSelectProps = {
224 bdcdyid: res.result.bdcdyid,
225 bdcdyh: val,
226 qllx: res.result.qllx,
227 bsmQlxx: this.currentSelectProps.bsmQlxx,
228 };
222 // this.$refs.tree.setCurrentKey(this.defaultNode.id); //data[0].id为默认选中的节点 229 // this.$refs.tree.setCurrentKey(this.defaultNode.id); //data[0].id为默认选中的节点
223 // this.loadComponent(this.defaultNode.form); 230 // this.loadComponent(this.defaultNode.form);
224 231
225 // this.setstyle(0, 0, this.iskey); 232 // this.setstyle(0, 0, this.iskey);
226
227
228 }); 233 });
229 } 234 }
230 }); 235 });
231 this.currentSelectProps = {
232 bdcdyid: this.currentSelectProps.bdcdyid,
233 bdcdyh: this.currentSelectProps.bdcdyh,
234 qllx: this.currentSelectProps.qllx,
235 bsmQlxx: this.currentSelectProps.bsmQlxx,
236 };
237 }, 236 },
238 /* 237 /*
239 点击登记簿菜单 238 点击登记簿菜单
...@@ -243,16 +242,16 @@ ...@@ -243,16 +242,16 @@
243 * @param {*} data 242 * @param {*} data
244 * @author: renchao 243 * @author: renchao
245 */ 244 */
246 handleNodeClick (data) { 245 handleNodeClick(data) {
247 this.loadComponent(data.form); 246 this.loadComponent(data.form);
248 }, 247 },
249 248
250 /** 249 /**
251 * @description: setstyle 250 * @description: setstyle
252 * @param {*} data 251 * @param {*} data
253 * @author: renchao 252 * @author: renchao
254 * 设置样式和点击定位到当前功能 253 * 设置样式和点击定位到当前功能
255 */ 254 */
256 // setstyle (newindex, index, key) { 255 // setstyle (newindex, index, key) {
257 // if (key != undefined || this.keyy == index) { 256 // if (key != undefined || this.keyy == index) {
258 // if (key != undefined) { 257 // if (key != undefined) {
...@@ -276,7 +275,7 @@ ...@@ -276,7 +275,7 @@
276 * @author: renchao 275 * @author: renchao
277 * 新增列表功能 276 * 新增列表功能
278 */ 277 */
279 tap (data, index) { 278 tap(data, index) {
280 this.loadComponent(data.form); 279 this.loadComponent(data.form);
281 }, 280 },
282 /** 281 /**
...@@ -285,7 +284,7 @@ ...@@ -285,7 +284,7 @@
285 * @author: renchao 284 * @author: renchao
286 * 新增列表功能 285 * 新增列表功能
287 */ 286 */
288 taplist (data, index) { 287 taplist(data, index) {
289 this.loadComponent(data.form); 288 this.loadComponent(data.form);
290 this.isActive = index; 289 this.isActive = index;
291 }, 290 },
...@@ -294,19 +293,19 @@ ...@@ -294,19 +293,19 @@
294 * @param {*} form 293 * @param {*} form
295 * @author: renchao 294 * @author: renchao
296 */ 295 */
297 loadComponent (form) { 296 loadComponent(form) {
298 this.componentTag = (r) => 297 this.componentTag = (r) =>
299 require.ensure([], () => r(require("@/views/registerBook/" + form))); 298 require.ensure([], () => r(require("@/views/registerBook/" + form)));
300 }, 299 },
301 }, 300 },
302 }; 301 };
303 </script> 302 </script>
304 <style scoped lang="scss"> 303 <style scoped lang="scss">
305 /deep/.rollTable { 304 /deep/.rollTable {
306 height: calc(120vh - 254px) !important; 305 height: calc(120vh - 254px) !important;
307 } 306 }
308 307
309 .content { 308 .content {
310 width: 100%; 309 width: 100%;
311 height: 100%; 310 height: 100%;
312 display: flex; 311 display: flex;
...@@ -327,34 +326,34 @@ ...@@ -327,34 +326,34 @@
327 background-color: #f5f5f5; 326 background-color: #f5f5f5;
328 border: 1px solid rgb(228, 228, 228); 327 border: 1px solid rgb(228, 228, 228);
329 } 328 }
330 } 329 }
331 330
332 /deep/ .expanded.el-tree-node__expand-icon, 331 /deep/ .expanded.el-tree-node__expand-icon,
333 /deep/ .el-tree-node__expand-icon { 332 /deep/ .el-tree-node__expand-icon {
334 visibility: hidden; 333 visibility: hidden;
335 } 334 }
336 335
337 /deep/ .el-tree-node__content { 336 /deep/ .el-tree-node__content {
338 border: 1px solid rgb(228, 228, 228); 337 border: 1px solid rgb(228, 228, 228);
339 height: 45px; 338 height: 45px;
340 } 339 }
341 340
342 /deep/ .el-tree-node:focus > .el-tree-node__content { 341 /deep/ .el-tree-node:focus > .el-tree-node__content {
343 // background-color: #f5f5f5; 342 // background-color: #f5f5f5;
344 // color: #0079fe; 343 // color: #0079fe;
345 // border-right: 4px solid #0079fe; 344 // border-right: 4px solid #0079fe;
346 } 345 }
347 346
348 /deep/.el-tree-node { 347 /deep/.el-tree-node {
349 white-space: pre-wrap; 348 white-space: pre-wrap;
350 } 349 }
351 350
352 /deep/ .is-current > .el-tree-node__content { 351 /deep/ .is-current > .el-tree-node__content {
353 // background-color: #f5f5f5; 352 // background-color: #f5f5f5;
354 // color: #0079fe; 353 // color: #0079fe;
355 // border-right: 4px solid #0079fe; 354 // border-right: 4px solid #0079fe;
356 } 355 }
357 /deep/.el-collapse-item__header { 356 /deep/.el-collapse-item__header {
358 width: 100%; 357 width: 100%;
359 cursor: pointer; 358 cursor: pointer;
360 position: relative; 359 position: relative;
...@@ -379,11 +378,11 @@ ...@@ -379,11 +378,11 @@
379 display: inline-block; 378 display: inline-block;
380 line-height: 45px; 379 line-height: 45px;
381 border: 1px solid rgb(228, 228, 228); 380 border: 1px solid rgb(228, 228, 228);
382 } 381 }
383 /deep/.el-collapse-item__content { 382 /deep/.el-collapse-item__content {
384 padding-bottom: 5px; 383 padding-bottom: 5px;
385 } 384 }
386 /deep/.unselected { 385 /deep/.unselected {
387 // white-space: wrap; 386 // white-space: wrap;
388 border: none; 387 border: none;
389 cursor: pointer; 388 cursor: pointer;
...@@ -400,9 +399,9 @@ ...@@ -400,9 +399,9 @@
400 justify-content: center; 399 justify-content: center;
401 align-items: center; 400 align-items: center;
402 } 401 }
403 } 402 }
404 403
405 .select { 404 .select {
406 border: none; 405 border: none;
407 cursor: pointer; 406 cursor: pointer;
408 width: 250px; 407 width: 250px;
...@@ -419,5 +418,5 @@ ...@@ -419,5 +418,5 @@
419 justify-content: center; 418 justify-content: center;
420 align-items: center; 419 align-items: center;
421 } 420 }
422 } 421 }
423 </style> 422 </style>
......