style:登记簿详情
Showing
3 changed files
with
38 additions
and
27 deletions
1 | import { log } from "bpmn-js-token-simulation"; | 1 | /* |
2 | 2 | * @Description: | |
3 | 3 | * @Autor: renchao | |
4 | * @LastEditTime: 2023-08-15 11:02:38 | ||
5 | */ | ||
4 | var qlxxPage = [ | 6 | var qlxxPage = [ |
5 | { qllx: "A01", id: "tdsyq", form: "tdsyq.vue", label: "集体土地所有权" }, | 7 | { qllx: "A01", id: "tdsyq", form: "tdsyq.vue", label: "集体土地所有权" }, |
6 | { qllx: "A02", id: "tdsyq", form: "tdsyq.vue", label: "国家土地所有权" }, | 8 | { qllx: "A02", id: "tdsyq", form: "tdsyq.vue", label: "国家土地所有权" }, |
... | @@ -41,7 +43,7 @@ var qlxxPage = [ | ... | @@ -41,7 +43,7 @@ var qlxxPage = [ |
41 | ]; | 43 | ]; |
42 | 44 | ||
43 | //组装登记簿树形结构 | 45 | //组装登记簿树形结构 |
44 | export function loadTreeData(qlxxData) { | 46 | export function loadTreeData (qlxxData, index) { |
45 | let treedata = []; | 47 | let treedata = []; |
46 | //加载封面 | 48 | //加载封面 |
47 | treedata.push({ id: "djbfm", form: "djbfm.vue", label: "登记簿封面" }); | 49 | treedata.push({ id: "djbfm", form: "djbfm.vue", label: "登记簿封面" }); |
... | @@ -74,19 +76,19 @@ export function loadTreeData(qlxxData) { | ... | @@ -74,19 +76,19 @@ export function loadTreeData(qlxxData) { |
74 | * @param {*} bdcdylx | 76 | * @param {*} bdcdylx |
75 | * @author: renchao | 77 | * @author: renchao |
76 | */ | 78 | */ |
77 | export function getNode(qllx, qlxx, bdcdylx) { | 79 | export function getNode (qllx, qlxx, bdcdylx) { |
78 | let node; | 80 | let node; |
79 | for (var i = 0; i < qlxxPage.length; i++) { | 81 | for (var i = 0; i < qlxxPage.length; i++) { |
80 | if (qlxxPage[i].qllx == qllx) { | 82 | if (qlxxPage[i].qllx == qllx) { |
81 | if (qllx == "A04" || qllx == "A06" || qllx == "A08") { | 83 | if (qllx == "A04" || qllx == "A06" || qllx == "A08") { |
82 | if (bdcdylx == "4") { | 84 | if (bdcdylx == "4") { |
83 | node = { id: "fdcq1", form: "fdcq1.vue", label: qlxxPage[i].label}; | 85 | node = { id: "fdcq1", form: "fdcq1.vue", label: qlxxPage[i].label }; |
84 | } else { | 86 | } else { |
85 | 87 | ||
86 | node = { id: "fdcq2", form: "fdcq2.vue", label: qlxxPage[i].label}; | 88 | node = { id: "fdcq2", form: "fdcq2.vue", label: qlxxPage[i].label }; |
87 | } | 89 | } |
88 | } else { | 90 | } else { |
89 | node = { id: qlxxPage[i].id, form: qlxxPage[i].form, label: qlxxPage[i].label}; | 91 | node = { id: qlxxPage[i].id, form: qlxxPage[i].form, label: qlxxPage[i].label }; |
90 | } | 92 | } |
91 | break; | 93 | break; |
92 | } | 94 | } | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-19 09:51:37 | 4 | * @LastEditTime: 2023-08-15 10:39:19 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="bdcqldjml"> | 7 | <div class="bdcqldjml"> |
... | @@ -18,7 +18,7 @@ | ... | @@ -18,7 +18,7 @@ |
18 | </tr> | 18 | </tr> |
19 | <tr v-for="(item, index) in bdcqlml" :key="index"> | 19 | <tr v-for="(item, index) in bdcqlml" :key="index"> |
20 | <td>{{ index + 1 }}</td> | 20 | <td>{{ index + 1 }}</td> |
21 | <td>{{ item.bdcdyh }}</td> | 21 | <td><el-link type="primary" @click="handleSelectBdcdyh(item.bdcdyh)" :underline="false">{{ item.bdcdyh }} </el-link></td> |
22 | <td>{{ item.bdclx }}</td> | 22 | <td>{{ item.bdclx }}</td> |
23 | <td>{{ item.szbs }}</td> | 23 | <td>{{ item.szbs }}</td> |
24 | <td>{{ item.bz }}</td> | 24 | <td>{{ item.bz }}</td> |
... | @@ -30,19 +30,25 @@ | ... | @@ -30,19 +30,25 @@ |
30 | <script> | 30 | <script> |
31 | import { getBdcqldjmlByBdcdyid } from "@/api/djbDetail.js"; | 31 | import { getBdcqldjmlByBdcdyid } from "@/api/djbDetail.js"; |
32 | export default { | 32 | export default { |
33 | props: ["formData"], | ||
33 | data () { | 34 | data () { |
34 | return { | 35 | return { |
35 | bdcqlml: [], | 36 | bdcqlml: [], |
36 | propsParam: this.$attrs, | 37 | propsParam: this.$attrs |
37 | }; | 38 | } |
38 | }, | 39 | }, |
39 | mounted () { | 40 | mounted () { |
40 | getBdcqldjmlByBdcdyid({ bdcdyid: this.propsParam.bdcdyid }).then((res) => { | 41 | getBdcqldjmlByBdcdyid({ bdcdyid: this.propsParam.bdcdyid }).then((res) => { |
41 | if (res.code === 200) { | 42 | if (res.code === 200) { |
42 | this.bdcqlml = res.result; | 43 | this.bdcqlml = res.result; |
43 | } | 44 | } |
44 | }); | 45 | }) |
45 | }, | 46 | }, |
47 | methods: { | ||
48 | handleSelectBdcdyh (val) { | ||
49 | this.$emit('getBdcdyh', val); | ||
50 | } | ||
51 | } | ||
46 | }; | 52 | }; |
47 | </script> | 53 | </script> |
48 | 54 | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-10 16:28:55 | 4 | * @LastEditTime: 2023-08-15 10:57:30 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="content"> | 7 | <div class="content"> |
... | @@ -11,7 +11,7 @@ | ... | @@ -11,7 +11,7 @@ |
11 | </el-tree> | 11 | </el-tree> |
12 | </div> | 12 | </div> |
13 | <div class="right"> | 13 | <div class="right"> |
14 | <component :is="componentTag" v-bind="currentSelectProps" /> | 14 | <component :is="componentTag" @getBdcdyh="getBdcdyh" v-bind="currentSelectProps" /> |
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | </template> | 17 | </template> |
... | @@ -42,17 +42,21 @@ | ... | @@ -42,17 +42,21 @@ |
42 | }, | 42 | }, |
43 | props: ["formData"], | 43 | props: ["formData"], |
44 | mounted () { | 44 | mounted () { |
45 | this.loadData(); | 45 | this.loadData(this.formData.bdcdyh); |
46 | }, | 46 | }, |
47 | methods: { | 47 | methods: { |
48 | getBdcdyh (val) { | ||
49 | console.log(val, ';222222222222'); | ||
50 | // this.loadData(val); | ||
51 | }, | ||
48 | /** | 52 | /** |
49 | * @description: loadData | 53 | * @description: loadData |
50 | * @author: renchao | 54 | * @author: renchao |
51 | */ | 55 | */ |
52 | loadData () { | 56 | loadData (val) { |
53 | getBdcqljqtsx({ | 57 | getBdcqljqtsx({ |
54 | bdcdyid: this.formData.bdcdyid, | 58 | bdcdyid: this.formData.bdcdyid, |
55 | bdcdyh: this.formData.bdcdyh, | 59 | bdcdyh: val, |
56 | }).then((res) => { | 60 | }).then((res) => { |
57 | if (res.code === 200) { | 61 | if (res.code === 200) { |
58 | this.treedata = loadTreeData(res.result, this.formData.bdcdyh); | 62 | this.treedata = loadTreeData(res.result, this.formData.bdcdyh); |
... | @@ -60,15 +64,15 @@ | ... | @@ -60,15 +64,15 @@ |
60 | this.defaultNode = getNode(this.formData.qllx, { linShi: 0, xianShi: 0, liShi: 0 }, this.formData.bdcdylx || ""); | 64 | this.defaultNode = getNode(this.formData.qllx, { linShi: 0, xianShi: 0, liShi: 0 }, this.formData.bdcdylx || ""); |
61 | this.$refs.tree.setCurrentKey(this.defaultNode.id); //data[0].id为默认选中的节点 | 65 | this.$refs.tree.setCurrentKey(this.defaultNode.id); //data[0].id为默认选中的节点 |
62 | this.loadComponent(this.defaultNode.form); | 66 | this.loadComponent(this.defaultNode.form); |
63 | }); | 67 | }) |
64 | } | 68 | } |
65 | }); | 69 | }) |
66 | this.currentSelectProps = { | 70 | this.currentSelectProps = { |
67 | bdcdyid: this.formData.bdcdyid, | 71 | bdcdyid: this.formData.bdcdyid, |
68 | bdcdyh: this.formData.bdcdyh, | 72 | bdcdyh: this.formData.bdcdyh, |
69 | qllx: this.formData.qllx, | 73 | qllx: this.formData.qllx, |
70 | bsmQlxx: this.formData.bsmQlxx, | 74 | bsmQlxx: this.formData.bsmQlxx |
71 | }; | 75 | } |
72 | }, | 76 | }, |
73 | /** | 77 | /** |
74 | * @description: handleNodeClick | 78 | * @description: handleNodeClick |
... | @@ -86,12 +90,11 @@ | ... | @@ -86,12 +90,11 @@ |
86 | * @author: renchao | 90 | * @author: renchao |
87 | */ | 91 | */ |
88 | loadComponent (form) { | 92 | loadComponent (form) { |
89 | console.log(form, 'formformformform'); | ||
90 | this.componentTag = (r) => | 93 | this.componentTag = (r) => |
91 | require.ensure([], () => r(require("@/views/registerBook/" + form))); | 94 | require.ensure([], () => r(require("@/views/registerBook/" + form))) |
92 | }, | 95 | } |
93 | } | 96 | } |
94 | }; | 97 | } |
95 | </script> | 98 | </script> |
96 | <style scoped lang="scss"> | 99 | <style scoped lang="scss"> |
97 | /deep/.rollTable { | 100 | /deep/.rollTable { |
... | @@ -114,7 +117,7 @@ | ... | @@ -114,7 +117,7 @@ |
114 | .right { | 117 | .right { |
115 | width: calc(100% - 256px); | 118 | width: calc(100% - 256px); |
116 | height: 704px; | 119 | height: 704px; |
117 | // overflow-y: scroll; | 120 | // overflow-y: scroll; |
118 | // overflow: auto; | 121 | // overflow: auto; |
119 | background-color: #f5f5f5; | 122 | background-color: #f5f5f5; |
120 | border: 1px solid rgb(228, 228, 228); | 123 | border: 1px solid rgb(228, 228, 228); | ... | ... |
-
Please register or sign in to post a comment