data[0].id为默认选中的节点
Showing
6 changed files
with
103 additions
and
32 deletions
| ... | @@ -66,7 +66,25 @@ export function leftMenubl (params) { | ... | @@ -66,7 +66,25 @@ export function leftMenubl (params) { |
| 66 | params | 66 | params |
| 67 | }) | 67 | }) |
| 68 | } | 68 | } |
| 69 | 69 | /** | |
| 70 | * @description: 获取权利类型数组 | ||
| 71 | * @param {*} params | ||
| 72 | * @author: renchao | ||
| 73 | */ | ||
| 74 | // export function getQllxByBdcdyid (params) { | ||
| 75 | // return request({ | ||
| 76 | // url: SERVER.SERVERAPI + '/rest/djbRepair/getQllxByBdcdyid?bdcdyid='+params, | ||
| 77 | // method: 'get', | ||
| 78 | // params | ||
| 79 | // }) | ||
| 80 | // } | ||
| 81 | export function getQllxByBdcdyid (data) { | ||
| 82 | return request({ | ||
| 83 | url: SERVER.SERVERAPI + '/rest/djbDetail//getQllxByBdcdyid', | ||
| 84 | method: 'get', | ||
| 85 | data | ||
| 86 | }) | ||
| 87 | } | ||
| 70 | /** | 88 | /** |
| 71 | * @description: 保存数据 | 89 | * @description: 保存数据 |
| 72 | * @param {*} data | 90 | * @param {*} data | ... | ... |
| 1 | import { log } from "bpmn-js-token-simulation"; | ||
| 1 | 2 | ||
| 2 | 3 | ||
| 3 | var qlxxPage = [ | 4 | var qlxxPage = [ |
| ... | @@ -36,6 +37,7 @@ var qlxxPage = [ | ... | @@ -36,6 +37,7 @@ var qlxxPage = [ |
| 36 | { qllx: "B39", id: "cfdj", form: "cfdj.vue", label: "查封登记" }, | 37 | { qllx: "B39", id: "cfdj", form: "cfdj.vue", label: "查封登记" }, |
| 37 | { qllx: "B40", id: "ygdj", form: "ygdj.vue", label: "预告登记" }, | 38 | { qllx: "B40", id: "ygdj", form: "ygdj.vue", label: "预告登记" }, |
| 38 | { qllx: "B41", id: "ygdj", form: "ygdj.vue", label: "预告登记" }, | 39 | { qllx: "B41", id: "ygdj", form: "ygdj.vue", label: "预告登记" }, |
| 40 | { qllx: "DJB", id: "djbfm", form: "djbfm.vue", label: "预告登记" }, | ||
| 39 | ]; | 41 | ]; |
| 40 | 42 | ||
| 41 | //组装登记簿树形结构 | 43 | //组装登记簿树形结构 |
| ... | @@ -66,6 +68,7 @@ export function loadTreeData(qlxxData, bdcdyh) { | ... | @@ -66,6 +68,7 @@ export function loadTreeData(qlxxData, bdcdyh) { |
| 66 | 68 | ||
| 67 | //获取权利类型、不动产单元类型对应的树形节点信息 | 69 | //获取权利类型、不动产单元类型对应的树形节点信息 |
| 68 | export function getNode(qllx, qlxx, bdcdylx) { | 70 | export function getNode(qllx, qlxx, bdcdylx) { |
| 71 | console.log("qllx",qllx,"bdcdylx",bdcdylx); | ||
| 69 | let node; | 72 | let node; |
| 70 | for (var i = 0; i < qlxxPage.length; i++) { | 73 | for (var i = 0; i < qlxxPage.length; i++) { |
| 71 | if (qlxxPage[i].qllx == qllx) { | 74 | if (qlxxPage[i].qllx == qllx) { |
| ... | @@ -76,7 +79,9 @@ export function getNode(qllx, qlxx, bdcdylx) { | ... | @@ -76,7 +79,9 @@ export function getNode(qllx, qlxx, bdcdylx) { |
| 76 | node = { id: "fdcq2", form: "fdcq2.vue", label: qlxxPage[i].label}; | 79 | node = { id: "fdcq2", form: "fdcq2.vue", label: qlxxPage[i].label}; |
| 77 | } | 80 | } |
| 78 | } else { | 81 | } else { |
| 82 | console.log("jin1111"); | ||
| 79 | node = { id: qlxxPage[i].id, form: qlxxPage[i].form, label: qlxxPage[i].label}; | 83 | node = { id: qlxxPage[i].id, form: qlxxPage[i].form, label: qlxxPage[i].label}; |
| 84 | console.log("nodenodenodenode",node); | ||
| 80 | } | 85 | } |
| 81 | break; | 86 | break; |
| 82 | } | 87 | } | ... | ... |
| ... | @@ -127,6 +127,7 @@ export default { | ... | @@ -127,6 +127,7 @@ export default { |
| 127 | leftMenu(formdata).then((res) => { | 127 | leftMenu(formdata).then((res) => { |
| 128 | if (res.code === 200 && res.result) { | 128 | if (res.code === 200 && res.result) { |
| 129 | this.currentSelectProps = res.result[0]; | 129 | this.currentSelectProps = res.result[0]; |
| 130 | console.log("this.currentSelectProps",this.currentSelectProps); | ||
| 130 | this.$emit("getCurrentSelectProps", this.currentSelectProps); | 131 | this.$emit("getCurrentSelectProps", this.currentSelectProps); |
| 131 | } | 132 | } |
| 132 | }); | 133 | }); | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description : 房地产权2 | 2 | * @Description : 房地产权2 |
| 3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
| 4 | * @LastEditTime : 2023-06-16 10:24:19 | 4 | * @LastEditTime : 2023-06-16 16:53:36 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> |
| ... | @@ -108,23 +108,23 @@ export default { | ... | @@ -108,23 +108,23 @@ export default { |
| 108 | 108 | ||
| 109 | // 编辑 | 109 | // 编辑 |
| 110 | editDialog(row){ | 110 | editDialog(row){ |
| 111 | // this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | 111 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { |
| 112 | // confirmButtonText: '确定', | 112 | confirmButtonText: '确定', |
| 113 | // cancelButtonText: '取消', | 113 | cancelButtonText: '取消', |
| 114 | // type: 'warning' | 114 | type: 'warning' |
| 115 | // }).then(() => { | 115 | }).then(() => { |
| 116 | this.$parent.addRepairRecord(row) | 116 | this.$parent.addRepairRecord(row) |
| 117 | 117 | ||
| 118 | // this.$message({ | 118 | this.$message({ |
| 119 | // type: 'success', | 119 | type: 'success', |
| 120 | // message: '补录成功!' | 120 | message: '补录成功!' |
| 121 | // }); | 121 | }); |
| 122 | // }).catch(() => { | 122 | }).catch(() => { |
| 123 | // this.$message({ | 123 | this.$message({ |
| 124 | // type: 'info', | 124 | type: 'info', |
| 125 | // message: '取消编辑' | 125 | message: '取消编辑' |
| 126 | // }); | 126 | }); |
| 127 | // }); | 127 | }); |
| 128 | 128 | ||
| 129 | // this.$popupDialog("编辑", "djbworkflow/djbBook/components/djbeditDialog", { | 129 | // this.$popupDialog("编辑", "djbworkflow/djbBook/components/djbeditDialog", { |
| 130 | // datalist:this.columns, | 130 | // datalist:this.columns, | ... | ... |
| ... | @@ -101,26 +101,57 @@ export default { | ... | @@ -101,26 +101,57 @@ export default { |
| 101 | this.$popupDialog("登记簿详情", "registerBook/djbFrame", this.currentSelectProps, '80%', true) | 101 | this.$popupDialog("登记簿详情", "registerBook/djbFrame", this.currentSelectProps, '80%', true) |
| 102 | break; | 102 | break; |
| 103 | case "B5": | 103 | case "B5": |
| 104 | // this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", { | 104 | const h = this.$createElement; |
| 105 | // bsmSlsq: this.bsmSlsq, | 105 | this.$msgbox({ |
| 106 | // entryType: '1' | 106 | title: '消息', |
| 107 | // }, '65%', true) | 107 | message: h('p', null, [ |
| 108 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | 108 | h('span', null, '内容可以是 '), |
| 109 | h('i', { style: 'color: teal' }, 'VNode') | ||
| 110 | ]), | ||
| 111 | showCancelButton: true, | ||
| 109 | confirmButtonText: '确定', | 112 | confirmButtonText: '确定', |
| 110 | cancelButtonText: '取消', | 113 | cancelButtonText: '取消', |
| 111 | type: 'warning' | 114 | beforeClose: (action, instance, done) => { |
| 112 | }).then(() => { | 115 | if (action === 'confirm') { |
| 116 | instance.confirmButtonLoading = true; | ||
| 117 | instance.confirmButtonText = '执行中...'; | ||
| 118 | setTimeout(() => { | ||
| 119 | done(); | ||
| 120 | setTimeout(() => { | ||
| 121 | instance.confirmButtonLoading = false; | ||
| 122 | }, 300); | ||
| 123 | }, 3000); | ||
| 124 | } else { | ||
| 125 | done(); | ||
| 126 | } | ||
| 127 | } | ||
| 128 | }).then(action => { | ||
| 113 | this.addRepairRecord() | 129 | this.addRepairRecord() |
| 114 | this.$message({ | 130 | this.$message({ |
| 115 | type: 'success', | ||
| 116 | message: '补录成功!' | ||
| 117 | }); | ||
| 118 | }).catch(() => { | ||
| 119 | this.$message({ | ||
| 120 | type: 'info', | 131 | type: 'info', |
| 121 | message: '取消编辑' | 132 | message: 'action: ' + action |
| 122 | }); | 133 | }); |
| 123 | }); | 134 | }); |
| 135 | // this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", { | ||
| 136 | // bsmSlsq: this.bsmSlsq, | ||
| 137 | // entryType: '1' | ||
| 138 | // }, '65%', true) | ||
| 139 | // this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | ||
| 140 | // confirmButtonText: '确定', | ||
| 141 | // cancelButtonText: '取消', | ||
| 142 | // type: 'warning' | ||
| 143 | // }).then(() => { | ||
| 144 | // this.addRepairRecord() | ||
| 145 | // this.$message({ | ||
| 146 | // type: 'success', | ||
| 147 | // message: '补录成功!' | ||
| 148 | // }); | ||
| 149 | // }).catch(() => { | ||
| 150 | // this.$message({ | ||
| 151 | // type: 'info', | ||
| 152 | // message: '取消编辑' | ||
| 153 | // }); | ||
| 154 | // }); | ||
| 124 | 155 | ||
| 125 | break; | 156 | break; |
| 126 | case "B6": | 157 | case "B6": | ... | ... |
| ... | @@ -79,7 +79,10 @@ import ordinaryMenu from "./components/leftmenu/ordinaryMenu.vue"; | ... | @@ -79,7 +79,10 @@ import ordinaryMenu from "./components/leftmenu/ordinaryMenu.vue"; |
| 79 | import selectBdc from "@/views/ywbl/ywsq/selectBdc.vue"; | 79 | import selectBdc from "@/views/ywbl/ywsq/selectBdc.vue"; |
| 80 | import { loadTreeData, getNode } from "./components/leftmenu/djbFrameData.js"; | 80 | import { loadTreeData, getNode } from "./components/leftmenu/djbFrameData.js"; |
| 81 | // 登记簿数据信息 | 81 | // 登记簿数据信息 |
| 82 | import { addRepairRecord } from "@/api/djbbl.js" | 82 | import { addRepairRecord } from "@/api/djbbl.js" |
| 83 | // 获取权利类型数组 | ||
| 84 | import { getQllxByBdcdyid } from "@/api/djbbl.js" | ||
| 85 | |||
| 83 | import { getBdcqljqtsx } from "@/api/registerBook.js"; | 86 | import { getBdcqljqtsx } from "@/api/registerBook.js"; |
| 84 | export default { | 87 | export default { |
| 85 | components: { | 88 | components: { |
| ... | @@ -101,6 +104,8 @@ export default { | ... | @@ -101,6 +104,8 @@ export default { |
| 101 | qllx: this.$route.query.qllx, | 104 | qllx: this.$route.query.qllx, |
| 102 | //设置那个表单选中 | 105 | //设置那个表单选中 |
| 103 | tabName: "", | 106 | tabName: "", |
| 107 | // 权利类型数组 | ||
| 108 | qllxlist:[], | ||
| 104 | //表单集合 | 109 | //表单集合 |
| 105 | tabList: [], | 110 | tabList: [], |
| 106 | //选择加载哪一个组件 | 111 | //选择加载哪一个组件 |
| ... | @@ -119,9 +124,18 @@ export default { | ... | @@ -119,9 +124,18 @@ export default { |
| 119 | }; | 124 | }; |
| 120 | }, | 125 | }, |
| 121 | mounted() { | 126 | mounted() { |
| 127 | |||
| 122 | }, | 128 | }, |
| 123 | 129 | ||
| 124 | methods: { | 130 | methods: { |
| 131 | getQllxByBdcdyid(){ | ||
| 132 | getQllxByBdcdyid(this.currentSelectProps.bdcdyid).then((res) => { | ||
| 133 | if (res.code === 200) { | ||
| 134 | console.log("Qllxlist",res); | ||
| 135 | |||
| 136 | } | ||
| 137 | }); | ||
| 138 | }, | ||
| 125 | // 获取右侧选项卡 | 139 | // 获取右侧选项卡 |
| 126 | getCurrentSelectProps (val) { | 140 | getCurrentSelectProps (val) { |
| 127 | this.currentSelectProps = val | 141 | this.currentSelectProps = val |
| ... | @@ -141,7 +155,9 @@ export default { | ... | @@ -141,7 +155,9 @@ export default { |
| 141 | if (res.code === 200) { | 155 | if (res.code === 200) { |
| 142 | this.treedata = loadTreeData(res.result, this.bdcdyh); | 156 | this.treedata = loadTreeData(res.result, this.bdcdyh); |
| 143 | this.$nextTick(function () { | 157 | this.$nextTick(function () { |
| 158 | console.log("this.currentSelectProps.qllx",this.currentSelectProps); | ||
| 144 | this.defaultNode = getNode(this.currentSelectProps.qllx, { linShi: 0, xianShi: 0, liShi: 0 }, ""); | 159 | this.defaultNode = getNode(this.currentSelectProps.qllx, { linShi: 0, xianShi: 0, liShi: 0 }, ""); |
| 160 | console.log("this.defaultNode",this.defaultNode); | ||
| 145 | this.tabName =this.defaultNode.id; //data[0].id为默认选中的节点 | 161 | this.tabName =this.defaultNode.id; //data[0].id为默认选中的节点 |
| 146 | }); | 162 | }); |
| 147 | } | 163 | } |
| ... | @@ -155,6 +171,7 @@ export default { | ... | @@ -155,6 +171,7 @@ export default { |
| 155 | arr[index].value=item.id | 171 | arr[index].value=item.id |
| 156 | }) | 172 | }) |
| 157 | this.tabList=this.tabdata | 173 | this.tabList=this.tabdata |
| 174 | this.getQllxByBdcdyid() | ||
| 158 | }, 200) | 175 | }, 200) |
| 159 | 176 | ||
| 160 | }, | 177 | }, |
| ... | @@ -197,7 +214,6 @@ export default { | ... | @@ -197,7 +214,6 @@ export default { |
| 197 | break; | 214 | break; |
| 198 | } | 215 | } |
| 199 | } | 216 | } |
| 200 | console.log("this.$route.query.sqywbm",this.$route.query.sqywbm); | ||
| 201 | this.componentTag = getForm(tabname, this.$route.query.sqywbm); | 217 | this.componentTag = getForm(tabname, this.$route.query.sqywbm); |
| 202 | }, | 218 | }, |
| 203 | 219 | ... | ... |
-
Please register or sign in to post a comment