恢复代码
Showing
1 changed file
with
145 additions
and
133 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2024-01-31 09:52:39 | 4 | * @LastEditTime: 2023-07-19 09:52:59 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="content loadingtext"> | 7 | <div class="content loadingtext"> |
| ... | @@ -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,15 +53,16 @@ | ... | @@ -50,15 +53,16 @@ |
| 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, getBdcqljqtsxBdcdyh } 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 | export default { | 64 | export default { |
| 61 | data () { | 65 | data() { |
| 62 | return { | 66 | return { |
| 63 | //接收参数 | 67 | //接收参数 |
| 64 | // propsParam: this.$attrs, | 68 | // propsParam: this.$attrs, |
| ... | @@ -89,124 +93,85 @@ | ... | @@ -89,124 +93,85 @@ |
| 89 | showTab: "bdcqldjml", // 选中状态,根据表格中权利类型判断 | 93 | showTab: "bdcqldjml", // 选中状态,根据表格中权利类型判断 |
| 90 | }; | 94 | }; |
| 91 | }, | 95 | }, |
| 92 | /** | 96 | mounted() { |
| 93 | * @description: loadData | 97 | this.loadData(this.getCaption(window.location.href)); |
| 94 | * @author: renchao | ||
| 95 | */ | ||
| 96 | loadData(val) { | ||
| 97 | getBdcqljqtsxBdcdyh({ | ||
| 98 | bdcdyh: val, | ||
| 99 | }).then((res) => { | ||
| 100 | if (res.code === 200) { | ||
| 101 | this.treedata = loadTreeData(val); | ||
| 102 | this.sfqdata.push(loadsfqData(res.result, val, res.result.bdcdyid)); | ||
| 103 | this.$nextTick(function () { | ||
| 104 | this.defaultNode = getNode( | ||
| 105 | res.result.ztqllx, | ||
| 106 | { linShi: 0, xianShi: 0, liShi: 0 }, | ||
| 107 | res.result.bdcdylx || "" | ||
| 108 | ); | ||
| 109 | this.sfqdata[0].children.forEach((item, index) => { | ||
| 110 | if (item.id == this.defaultNode.id) { | ||
| 111 | this.loadComponent(item.form); | ||
| 112 | this.isActive = index; | ||
| 113 | } | ||
| 114 | }); | ||
| 115 | this.currentSelectProps = { | ||
| 116 | bdcdyid: res.result.bdcdyid, | ||
| 117 | bdcdyh: val, | ||
| 118 | qllx: res.result.qllx, | ||
| 119 | bsmQlxx: this.currentSelectProps.bsmQlxx, | ||
| 120 | }; | ||
| 121 | // this.$refs.tree.setCurrentKey(this.defaultNode.id); //data[0].id为默认选中的节点 | ||
| 122 | // this.loadComponent(this.defaultNode.form); | ||
| 123 | |||
| 124 | // this.setstyle(0, 0, this.iskey); | ||
| 125 | }); | ||
| 126 | } | ||
| 127 | }); | ||
| 128 | }, | 98 | }, |
| 129 | /* | 99 | methods: { |
| 130 | 点击登记簿菜单 | 100 | // 截取字符的方法 |
| 131 | */ | ||
| 132 | /** | 101 | /** |
| 133 | * @description: 点击登记簿菜单 | 102 | * @description: 截取字符的方法 |
| 134 | * @param {*} data | 103 | * @param {*} obj |
| 135 | * @author: renchao | 104 | * @author: renchao |
| 136 | */ | 105 | */ |
| 137 | handleNodeClick(data) { | 106 | getCaption(obj) { |
| 138 | this.loadComponent(data.form); | 107 | let index = obj.lastIndexOf("="); |
| 108 | obj = obj.substring(index + 1, obj.length); | ||
| 109 | return obj; | ||
| 139 | }, | 110 | }, |
| 140 | 111 | // 通过不动产业务号获取参数 | |
| 141 | /** | 112 | /** |
| 142 | * @description: setstyle | 113 | * @description: 通过不动产业务号获取参数 |
| 143 | * @param {*} data | ||
| 144 | * @author: renchao | 114 | * @author: renchao |
| 145 | * 设置样式和点击定位到当前功能 | ||
| 146 | */ | 115 | */ |
| 147 | // setstyle (newindex, index, key) { | 116 | // getdata () { |
| 148 | // if (key != undefined || this.keyy == index) { | 117 | // this.queryForm = { |
| 149 | // if (key != undefined) { | 118 | // bdcdyh: this.getCaption(window.location.href), |
| 150 | // this.keyy = key | 119 | // currentPage: 1, |
| 120 | // djlx: "", | ||
| 121 | // pageSize: 10, | ||
| 122 | // qllx: "", | ||
| 123 | // ywh: "", | ||
| 124 | // ywly: "", | ||
| 125 | // }; | ||
| 126 | // if (this.queryForm) { | ||
| 127 | // this.$startLoading(); | ||
| 128 | // searchTaskToDo({ | ||
| 129 | // ...this.queryForm, | ||
| 130 | // }).then((res) => { | ||
| 131 | // if (res.code === 200) { | ||
| 132 | // let { records } = res.result; | ||
| 133 | |||
| 134 | // this.loadBdcdylist(records[0].bsmSlsq, records[0].bestepid); | ||
| 135 | // this.$endLoading(); | ||
| 151 | // } | 136 | // } |
| 152 | // this.loadComponent(this.$refs.sfq[newindex].$children[this.keyy].$attrs.re.form); | 137 | // }); |
| 153 | // let dpme = this.$refs.sfq[newindex].$children[this.keyy].$el | ||
| 154 | // dpme.style.backgroundColor = "#f5f5f5"; | ||
| 155 | // dpme.style.color = "#0079fe"; | ||
| 156 | // dpme.style.borderRight = "4px solid #0079fe"; | ||
| 157 | // } else { | ||
| 158 | // let dpme = this.$refs.sfq[newindex].$children[this.keyy].$el | ||
| 159 | // dpme.style.backgroundColor = "#ffffff"; | ||
| 160 | // dpme.style.color = "black"; | ||
| 161 | // dpme.style.border = "none"; | ||
| 162 | // } | 138 | // } |
| 163 | // }, | 139 | // }, |
| 140 | |||
| 141 | // 获取不动产信息 | ||
| 164 | /** | 142 | /** |
| 165 | * @description: tap | 143 | * @description: 获取不动产信息 |
| 166 | * @param {*} data | 144 | * @param {*} a |
| 167 | * @author: renchao | 145 | * @param {*} b |
| 168 | * 新增列表功能 | ||
| 169 | */ | ||
| 170 | tap(data, index) { | ||
| 171 | this.loadComponent(data.form); | ||
| 172 | this.currentSelectProps.bdcdyid=data.bdcdyid | ||
| 173 | this.currentSelectProps.bdcdyh=data.bdcdyh | ||
| 174 | }, | ||
| 175 | /** | ||
| 176 | * @description: taplist | ||
| 177 | * @param {*} data | ||
| 178 | * @author: renchao | ||
| 179 | * 新增列表功能 | ||
| 180 | */ | ||
| 181 | taplist(data, index) { | ||
| 182 | this.loadComponent(data.form); | ||
| 183 | this.isActive = index; | ||
| 184 | }, | ||
| 185 | methods: { | ||
| 186 | // 截取字符的方法 | ||
| 187 | /** | ||
| 188 | * @description: 截取字符的方法 | ||
| 189 | * @param {*} obj | ||
| 190 | * @author: renchao | 146 | * @author: renchao |
| 191 | */ | 147 | */ |
| 192 | getCaption (obj) { | 148 | // loadBdcdylist (a, b) { |
| 193 | let index = obj.lastIndexOf("="); | 149 | // var formdata = new FormData(); |
| 194 | obj = obj.substring(index + 1, obj.length); | 150 | // formdata.append("bsmSlsq", a); |
| 195 | return obj; | 151 | // formdata.append("bestepid", b); |
| 196 | }, | 152 | // leftMenu(formdata).then((res) => { |
| 153 | // if (res.code === 200) { | ||
| 154 | // if (res.result) { | ||
| 155 | // this.currentSelectProps = res.result[0]; | ||
| 156 | // this.loadData(this.currentSelectProps.bdcdyh); | ||
| 157 | // } | ||
| 158 | // } | ||
| 159 | // }); | ||
| 160 | // }, | ||
| 161 | |||
| 197 | /** | 162 | /** |
| 198 | * @description: getBdcdyh | 163 | * @description: getBdcdyh |
| 199 | * @author: miaofang | 164 | * @author: miaofang |
| 200 | * 点击不动产单元号事件 | 165 | * 点击不动产单元号事件 |
| 201 | */ | 166 | */ |
| 202 | getBdcdyh (val) { | 167 | getBdcdyh(val) { |
| 203 | this.addloadData(val); | 168 | this.addloadData(val); |
| 204 | }, | 169 | }, |
| 205 | /** | 170 | /** |
| 206 | * @description: addloadData | 171 | * @description: addloadData |
| 207 | * @author: miaofang | 172 | * @author: miaofang |
| 208 | */ | 173 | */ |
| 209 | addloadData (val) { | 174 | addloadData(val) { |
| 210 | getBdcqljqtsx({ | 175 | getBdcqljqtsx({ |
| 211 | bdcdyid: val.bdcdyid, | 176 | bdcdyid: val.bdcdyid, |
| 212 | bdcdyh: val.bdcdyh, | 177 | bdcdyh: val.bdcdyh, |
| ... | @@ -234,7 +199,7 @@ | ... | @@ -234,7 +199,7 @@ |
| 234 | * @description: loadData | 199 | * @description: loadData |
| 235 | * @author: renchao | 200 | * @author: renchao |
| 236 | */ | 201 | */ |
| 237 | loadData (val) { | 202 | loadData(val) { |
| 238 | getBdcqljqtsxBdcdyh({ | 203 | getBdcqljqtsxBdcdyh({ |
| 239 | bdcdyh: val, | 204 | bdcdyh: val, |
| 240 | }).then((res) => { | 205 | }).then((res) => { |
| ... | @@ -259,20 +224,59 @@ | ... | @@ -259,20 +224,59 @@ |
| 259 | qllx: res.result.qllx, | 224 | qllx: res.result.qllx, |
| 260 | bsmQlxx: this.currentSelectProps.bsmQlxx, | 225 | bsmQlxx: this.currentSelectProps.bsmQlxx, |
| 261 | }; | 226 | }; |
| 262 | }) | 227 | // this.$refs.tree.setCurrentKey(this.defaultNode.id); //data[0].id为默认选中的节点 |
| 228 | // this.loadComponent(this.defaultNode.form); | ||
| 229 | |||
| 230 | // this.setstyle(0, 0, this.iskey); | ||
| 231 | }); | ||
| 263 | } | 232 | } |
| 264 | }) | 233 | }); |
| 265 | }, | 234 | }, |
| 235 | /* | ||
| 236 | 点击登记簿菜单 | ||
| 237 | */ | ||
| 266 | /** | 238 | /** |
| 267 | * @description: 点击登记簿菜单 | 239 | * @description: 点击登记簿菜单 |
| 268 | * @param {*} data | 240 | * @param {*} data |
| 269 | * @author: renchao | 241 | * @author: renchao |
| 270 | */ | 242 | */ |
| 271 | handleNodeClick (data) { | 243 | handleNodeClick(data) { |
| 272 | this.loadComponent(data.form); | 244 | this.loadComponent(data.form); |
| 273 | }, | 245 | }, |
| 274 | tap (data, index) { | 246 | |
| 247 | /** | ||
| 248 | * @description: setstyle | ||
| 249 | * @param {*} data | ||
| 250 | * @author: renchao | ||
| 251 | * 设置样式和点击定位到当前功能 | ||
| 252 | */ | ||
| 253 | // setstyle (newindex, index, key) { | ||
| 254 | // if (key != undefined || this.keyy == index) { | ||
| 255 | // if (key != undefined) { | ||
| 256 | // this.keyy = key | ||
| 257 | // } | ||
| 258 | // this.loadComponent(this.$refs.sfq[newindex].$children[this.keyy].$attrs.re.form); | ||
| 259 | // let dpme = this.$refs.sfq[newindex].$children[this.keyy].$el | ||
| 260 | // dpme.style.backgroundColor = "#f5f5f5"; | ||
| 261 | // dpme.style.color = "#0079fe"; | ||
| 262 | // dpme.style.borderRight = "4px solid #0079fe"; | ||
| 263 | // } else { | ||
| 264 | // let dpme = this.$refs.sfq[newindex].$children[this.keyy].$el | ||
| 265 | // dpme.style.backgroundColor = "#ffffff"; | ||
| 266 | // dpme.style.color = "black"; | ||
| 267 | // dpme.style.border = "none"; | ||
| 268 | // } | ||
| 269 | // }, | ||
| 270 | /** | ||
| 271 | * @description: tap | ||
| 272 | * @param {*} data | ||
| 273 | * @author: renchao | ||
| 274 | * 新增列表功能 | ||
| 275 | */ | ||
| 276 | tap(data, index) { | ||
| 275 | this.loadComponent(data.form); | 277 | this.loadComponent(data.form); |
| 278 | this.currentSelectProps.bdcdyid=data.bdcdyid | ||
| 279 | this.currentSelectProps.bdcdyh=data.bdcdyh | ||
| 276 | }, | 280 | }, |
| 277 | /** | 281 | /** |
| 278 | * @description: taplist | 282 | * @description: taplist |
| ... | @@ -280,7 +284,7 @@ | ... | @@ -280,7 +284,7 @@ |
| 280 | * @author: renchao | 284 | * @author: renchao |
| 281 | * 新增列表功能 | 285 | * 新增列表功能 |
| 282 | */ | 286 | */ |
| 283 | taplist (data, index) { | 287 | taplist(data, index) { |
| 284 | this.loadComponent(data.form); | 288 | this.loadComponent(data.form); |
| 285 | this.isActive = index; | 289 | this.isActive = index; |
| 286 | }, | 290 | }, |
| ... | @@ -289,19 +293,19 @@ | ... | @@ -289,19 +293,19 @@ |
| 289 | * @param {*} form | 293 | * @param {*} form |
| 290 | * @author: renchao | 294 | * @author: renchao |
| 291 | */ | 295 | */ |
| 292 | loadComponent (form) { | 296 | loadComponent(form) { |
| 293 | this.componentTag = (r) => | 297 | this.componentTag = (r) => |
| 294 | require.ensure([], () => r(require("@/views/registerBook/" + form))); | 298 | require.ensure([], () => r(require("@/views/registerBook/" + form))); |
| 295 | } | 299 | }, |
| 296 | } | 300 | }, |
| 297 | } | 301 | }; |
| 298 | </script> | 302 | </script> |
| 299 | <style scoped lang="scss"> | 303 | <style scoped lang="scss"> |
| 300 | /deep/.rollTable { | 304 | /deep/.rollTable { |
| 301 | height: calc(120vh - 254px) !important; | 305 | height: calc(120vh - 254px) !important; |
| 302 | } | 306 | } |
| 303 | 307 | ||
| 304 | .content { | 308 | .content { |
| 305 | width: 100%; | 309 | width: 100%; |
| 306 | height: 100%; | 310 | height: 100%; |
| 307 | display: flex; | 311 | display: flex; |
| ... | @@ -322,23 +326,34 @@ | ... | @@ -322,23 +326,34 @@ |
| 322 | background-color: #f5f5f5; | 326 | background-color: #f5f5f5; |
| 323 | border: 1px solid rgb(228, 228, 228); | 327 | border: 1px solid rgb(228, 228, 228); |
| 324 | } | 328 | } |
| 325 | } | 329 | } |
| 326 | 330 | ||
| 327 | /deep/ .expanded.el-tree-node__expand-icon, | 331 | /deep/ .expanded.el-tree-node__expand-icon, |
| 328 | /deep/ .el-tree-node__expand-icon { | 332 | /deep/ .el-tree-node__expand-icon { |
| 329 | visibility: hidden; | 333 | visibility: hidden; |
| 330 | } | 334 | } |
| 331 | 335 | ||
| 332 | /deep/ .el-tree-node__content { | 336 | /deep/ .el-tree-node__content { |
| 333 | border: 1px solid rgb(228, 228, 228); | 337 | border: 1px solid rgb(228, 228, 228); |
| 334 | height: 45px; | 338 | height: 45px; |
| 335 | } | 339 | } |
| 340 | |||
| 341 | /deep/ .el-tree-node:focus > .el-tree-node__content { | ||
| 342 | // background-color: #f5f5f5; | ||
| 343 | // color: #0079fe; | ||
| 344 | // border-right: 4px solid #0079fe; | ||
| 345 | } | ||
| 336 | 346 | ||
| 337 | /deep/.el-tree-node { | 347 | /deep/.el-tree-node { |
| 338 | white-space: pre-wrap; | 348 | white-space: pre-wrap; |
| 339 | } | 349 | } |
| 340 | 350 | ||
| 341 | /deep/.el-collapse-item__header { | 351 | /deep/ .is-current > .el-tree-node__content { |
| 352 | // background-color: #f5f5f5; | ||
| 353 | // color: #0079fe; | ||
| 354 | // border-right: 4px solid #0079fe; | ||
| 355 | } | ||
| 356 | /deep/.el-collapse-item__header { | ||
| 342 | width: 100%; | 357 | width: 100%; |
| 343 | cursor: pointer; | 358 | cursor: pointer; |
| 344 | position: relative; | 359 | position: relative; |
| ... | @@ -358,19 +373,16 @@ | ... | @@ -358,19 +373,16 @@ |
| 358 | display: inline-block; | 373 | display: inline-block; |
| 359 | line-height: 15px; | 374 | line-height: 15px; |
| 360 | } | 375 | } |
| 361 | height: 45px; | ||
| 362 | border: 1px solid rgb(228, 228, 228); | ||
| 363 | border-right: 4px solid #f5f5f5; | ||
| 364 | } | 376 | } |
| 365 | height: 45px; | 377 | height: 45px; |
| 366 | display: inline-block; | 378 | display: inline-block; |
| 367 | line-height: 45px; | 379 | line-height: 45px; |
| 368 | border: 1px solid rgb(228, 228, 228); | 380 | border: 1px solid rgb(228, 228, 228); |
| 369 | } | 381 | } |
| 370 | /deep/.el-collapse-item__content { | 382 | /deep/.el-collapse-item__content { |
| 371 | padding-bottom: 5px; | 383 | padding-bottom: 5px; |
| 372 | } | 384 | } |
| 373 | /deep/.unselected { | 385 | /deep/.unselected { |
| 374 | // white-space: wrap; | 386 | // white-space: wrap; |
| 375 | border: none; | 387 | border: none; |
| 376 | cursor: pointer; | 388 | cursor: pointer; |
| ... | @@ -387,9 +399,9 @@ | ... | @@ -387,9 +399,9 @@ |
| 387 | justify-content: center; | 399 | justify-content: center; |
| 388 | align-items: center; | 400 | align-items: center; |
| 389 | } | 401 | } |
| 390 | } | 402 | } |
| 391 | 403 | ||
| 392 | .select { | 404 | .select { |
| 393 | border: none; | 405 | border: none; |
| 394 | cursor: pointer; | 406 | cursor: pointer; |
| 395 | width: 250px; | 407 | width: 250px; |
| ... | @@ -406,5 +418,5 @@ | ... | @@ -406,5 +418,5 @@ |
| 406 | justify-content: center; | 418 | justify-content: center; |
| 407 | align-items: center; | 419 | align-items: center; |
| 408 | } | 420 | } |
| 409 | } | 421 | } |
| 410 | </style> | 422 | </style> | ... | ... |
-
Please register or sign in to post a comment