楼盘表右侧图例单元状态统计
Showing
4 changed files
with
105 additions
and
19 deletions
| ... | @@ -65,4 +65,16 @@ export function batchScYcChange (data) { | ... | @@ -65,4 +65,16 @@ export function batchScYcChange (data) { |
| 65 | method: 'post', | 65 | method: 'post', |
| 66 | data:data | 66 | data:data |
| 67 | }) | 67 | }) |
| 68 | } | ||
| 69 | /** | ||
| 70 | * 楼盘表 获取单元状态统计数据 | ||
| 71 | * zrzbsm 自然幢标识码 , | ||
| 72 | * scyclx 实测预测类型 0预测,1实测 | ||
| 73 | */ | ||
| 74 | export function getLpbTj (data) { | ||
| 75 | return request({ | ||
| 76 | url: 'fw/lpb/getLpbTj?zrzbsm='+data.zrzbsm+'&syclx='+data.syclx, | ||
| 77 | method: 'get', | ||
| 78 | data:data | ||
| 79 | }) | ||
| 68 | } | 80 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -76,7 +76,7 @@ | ... | @@ -76,7 +76,7 @@ |
| 76 | <th>套数</th> | 76 | <th>套数</th> |
| 77 | <th>面积</th> | 77 | <th>面积</th> |
| 78 | </tr> | 78 | </tr> |
| 79 | <tr v-for="(item, index) in legendList" :key="index" class="cp" @click="handleChoosedH"> | 79 | <tr v-for="(item, index) in dyztList" :key="index" class="cp" @click="handleChoosedH(item.name)"> |
| 80 | <td> | 80 | <td> |
| 81 | <i class="el-icon-star-on" :style="{ color: item.color }"></i | 81 | <i class="el-icon-star-on" :style="{ color: item.color }"></i |
| 82 | >{{ item.name }} | 82 | >{{ item.name }} |
| ... | @@ -91,7 +91,7 @@ | ... | @@ -91,7 +91,7 @@ |
| 91 | <th>套数</th> | 91 | <th>套数</th> |
| 92 | <th>面积</th> | 92 | <th>面积</th> |
| 93 | </tr> | 93 | </tr> |
| 94 | <tr v-for="(item, index) in legendList" :key="index" class="cp" @click="handleChoosedH"> | 94 | <tr v-for="(item, index) in fwxzList" :key="index" class="cp" @click="handleChoosedH(item.name)"> |
| 95 | <td> | 95 | <td> |
| 96 | <i class="el-icon-star-on" :style="{ color: item.color }"></i | 96 | <i class="el-icon-star-on" :style="{ color: item.color }"></i |
| 97 | >{{ item.name }} | 97 | >{{ item.name }} |
| ... | @@ -99,6 +99,9 @@ | ... | @@ -99,6 +99,9 @@ |
| 99 | <td>{{ item.ts }}</td> | 99 | <td>{{ item.ts }}</td> |
| 100 | <td>{{ item.mj }}</td> | 100 | <td>{{ item.mj }}</td> |
| 101 | </tr> | 101 | </tr> |
| 102 | <tr v-show="fwxzList.length<1"> | ||
| 103 | <td colspan="3" class="tac">暂无数据</td> | ||
| 104 | </tr> | ||
| 102 | </table> | 105 | </table> |
| 103 | <table class="legendTable" v-show="selectedZt == 'fwyt'" cellspacing="1" cellpadding="1" border="1"> | 106 | <table class="legendTable" v-show="selectedZt == 'fwyt'" cellspacing="1" cellpadding="1" border="1"> |
| 104 | <tr> | 107 | <tr> |
| ... | @@ -106,7 +109,7 @@ | ... | @@ -106,7 +109,7 @@ |
| 106 | <th>套数</th> | 109 | <th>套数</th> |
| 107 | <th>面积</th> | 110 | <th>面积</th> |
| 108 | </tr> | 111 | </tr> |
| 109 | <tr v-for="(item, index) in legendList" :key="index" class="cp" @click="handleChoosedH"> | 112 | <tr v-for="(item, index) in fwytList" :key="index" class="cp" @click="handleChoosedH(item.name)"> |
| 110 | <td> | 113 | <td> |
| 111 | <i class="el-icon-star-on" :style="{ color: item.color }"></i | 114 | <i class="el-icon-star-on" :style="{ color: item.color }"></i |
| 112 | >{{ item.name }} | 115 | >{{ item.name }} |
| ... | @@ -114,6 +117,9 @@ | ... | @@ -114,6 +117,9 @@ |
| 114 | <td>{{ item.ts }}</td> | 117 | <td>{{ item.ts }}</td> |
| 115 | <td>{{ item.mj }}</td> | 118 | <td>{{ item.mj }}</td> |
| 116 | </tr> | 119 | </tr> |
| 120 | <tr v-show="fwytList.length<1"> | ||
| 121 | <td colspan="3" class="tac">暂无数据</td> | ||
| 122 | </tr> | ||
| 117 | </table> | 123 | </table> |
| 118 | </div> | 124 | </div> |
| 119 | </div> | 125 | </div> |
| ... | @@ -167,7 +173,7 @@ import addZdy from "./zdy/index"; | ... | @@ -167,7 +173,7 @@ import addZdy from "./zdy/index"; |
| 167 | import addCh from "./ch/index"; | 173 | import addCh from "./ch/index"; |
| 168 | import hbj from "./hbj/index" | 174 | import hbj from "./hbj/index" |
| 169 | import lpbContent from "./lpbContent/index"; | 175 | import lpbContent from "./lpbContent/index"; |
| 170 | import {getLpbMenuTree,batchScYcChange} from "../../../../api/lpb"; | 176 | import {getLpbMenuTree,batchScYcChange,getLpbTj} from "../../../../api/lpb"; |
| 171 | 177 | ||
| 172 | 178 | ||
| 173 | export default { | 179 | export default { |
| ... | @@ -195,7 +201,7 @@ export default { | ... | @@ -195,7 +201,7 @@ export default { |
| 195 | treeData: {}, | 201 | treeData: {}, |
| 196 | inputWidth:74, | 202 | inputWidth:74, |
| 197 | selectedZt:'dyzt', //图例选中项,默认选中单元状态 | 203 | selectedZt:'dyzt', //图例选中项,默认选中单元状态 |
| 198 | legendList: [ | 204 | dyztList: [ |
| 199 | { | 205 | { |
| 200 | name: "未确权", | 206 | name: "未确权", |
| 201 | color: "#2591FD", | 207 | color: "#2591FD", |
| ... | @@ -209,12 +215,6 @@ export default { | ... | @@ -209,12 +215,6 @@ export default { |
| 209 | mj: "3109", | 215 | mj: "3109", |
| 210 | }, | 216 | }, |
| 211 | { | 217 | { |
| 212 | name: "已注销", | ||
| 213 | color: "#2591FD", | ||
| 214 | ts: "13", | ||
| 215 | mj: "1457", | ||
| 216 | }, | ||
| 217 | { | ||
| 218 | name: "已备案", | 218 | name: "已备案", |
| 219 | color: "#2591FD", | 219 | color: "#2591FD", |
| 220 | ts: "3", | 220 | ts: "3", |
| ... | @@ -257,10 +257,13 @@ export default { | ... | @@ -257,10 +257,13 @@ export default { |
| 257 | mj: "285", | 257 | mj: "285", |
| 258 | }, | 258 | }, |
| 259 | ], | 259 | ], |
| 260 | fwxzList:[], | ||
| 261 | fwytList:[], | ||
| 260 | legendToggleFlag: false, | 262 | legendToggleFlag: false, |
| 261 | lpbContentHight: "", | 263 | lpbContentHight: "", |
| 262 | lpbContentwidth: "", | 264 | lpbContentwidth: "", |
| 263 | time:'' | 265 | time:'', |
| 266 | dyztBsmList:{},//单元状态bsmList | ||
| 264 | }; | 267 | }; |
| 265 | }, | 268 | }, |
| 266 | created() { | 269 | created() { |
| ... | @@ -268,8 +271,10 @@ export default { | ... | @@ -268,8 +271,10 @@ export default { |
| 268 | this.getHeight(); | 271 | this.getHeight(); |
| 269 | }, | 272 | }, |
| 270 | mounted() { | 273 | mounted() { |
| 271 | // this.getLpbMenuTree("1e0c83dfe2e73284f834a80a0947f0c9"); | 274 | //获取楼盘表树结构 |
| 272 | this.getLpbMenuTree(this.$store.state.zrzbsm); | 275 | this.getLpbMenuTree(this.$store.state.zrzbsm); |
| 276 | //获取各项单元状态的户bsm | ||
| 277 | this.getDyztBsmList(); | ||
| 273 | // 楼盘表绘制区域宽度计算:楼盘表区域宽度-图例宽度34-滚动条宽度6 | 278 | // 楼盘表绘制区域宽度计算:楼盘表区域宽度-图例宽度34-滚动条宽度6 |
| 274 | setTimeout(() => { | 279 | setTimeout(() => { |
| 275 | this.lpbContentwidth = this.$store.state.contentWidth - 34 - 6; | 280 | this.lpbContentwidth = this.$store.state.contentWidth - 34 - 6; |
| ... | @@ -412,16 +417,82 @@ export default { | ... | @@ -412,16 +417,82 @@ export default { |
| 412 | }) | 417 | }) |
| 413 | }, | 418 | }, |
| 414 | //选中房屋状态 | 419 | //选中房屋状态 |
| 415 | handleChoosedH(){ | 420 | handleChoosedH(name){ |
| 421 | console.log(name,'选中房屋状态'); | ||
| 422 | // Dyzt:{list:[],mj:''} | ||
| 416 | //清除选中户 | 423 | //清除选中户 |
| 417 | this.$refs.lpbContent.clearChoosedH() | 424 | this.$refs.lpbContent.clearChoosedH() |
| 418 | //给hBsmList传值 | 425 | //给hBsmList传值 |
| 426 | switch (name) { | ||
| 427 | case '未确权': | ||
| 428 | this.$refs.lpbContent.choosedList = this.dyztBsmList.Wqqzt.bsms; | ||
| 429 | break; | ||
| 430 | case '已确权': | ||
| 431 | this.$refs.lpbContent.choosedList = this.dyztBsmList.Qqzt.bsms; | ||
| 432 | break; | ||
| 433 | case '已备案': | ||
| 434 | this.$refs.lpbContent.choosedList = this.dyztBsmList.Bazt.bsms; | ||
| 435 | break; | ||
| 436 | case '预抵押': | ||
| 437 | this.$refs.lpbContent.choosedList = this.dyztBsmList.Ydyzt.bsms; | ||
| 438 | break; | ||
| 439 | case '在建抵押': | ||
| 440 | this.$refs.lpbContent.choosedList = this.dyztBsmList.Zjgcdyzt.bsms; | ||
| 441 | break; | ||
| 442 | case '抵押': | ||
| 443 | this.$refs.lpbContent.choosedList = this.dyztBsmList.Dyzt.bsms; | ||
| 444 | break; | ||
| 445 | case '查封': | ||
| 446 | this.$refs.lpbContent.choosedList = this.dyztBsmList.Cfzt.bsms; | ||
| 447 | break; | ||
| 448 | case '异议': | ||
| 449 | this.$refs.lpbContent.choosedList = this.dyztBsmList.Yyzt.bsms; | ||
| 450 | break; | ||
| 451 | case '限制': | ||
| 452 | this.$refs.lpbContent.choosedList = this.dyztBsmList.Xzzt.bsms; | ||
| 453 | break; | ||
| 454 | |||
| 455 | default: | ||
| 456 | break; | ||
| 457 | } | ||
| 419 | // this.$refs.lpbContent.choosedList=["0a66bc775dcec26385f9124cc0fd8656", "58cafdbee129bb412527f674ef9267ae", "4bbca678fa56d5ab97b8a62c7cb54898", "ecfd72e9a31a03ba0ab4e46faba2b51b", "049033ea9d244b4b5ea75521b6862239", "013352d8a001a1d5f790296b6843627b", "ed8e3f0e2b2682cf76b4d58b9a74e49c", "37cc53acaf2c3bb92be4b9adf06d94c9", "f5a5e14ce08c26056aca5861f56e5cf6", "11eeaaa5c9f5f1231c69d3b958d05568", "421978023a36d4920dbb86300cc52dc9", "e97f2af2588cc0e41ffb6b203df617c9", "7210987d94350472dca10d4ad71fffc5", "6eb1b50edce538a4c63574e9e28fedce", "43c5fecd7623ceabc37844e8a4722603", "c361ccfcd3da9f7288110c6fa202cb96", "2321512f6f8d0ec9f570c6eec9a892fe", "ea08fb234cd908c89a0d21c085dadb2f", "be71f7f0ec926e1850d3baec8817cdbd", "6f695d6b7ecb97f7ff17f22dbe86b93c", "4ee1604b2629e6797d3096c20229223b"] | 458 | // this.$refs.lpbContent.choosedList=["0a66bc775dcec26385f9124cc0fd8656", "58cafdbee129bb412527f674ef9267ae", "4bbca678fa56d5ab97b8a62c7cb54898", "ecfd72e9a31a03ba0ab4e46faba2b51b", "049033ea9d244b4b5ea75521b6862239", "013352d8a001a1d5f790296b6843627b", "ed8e3f0e2b2682cf76b4d58b9a74e49c", "37cc53acaf2c3bb92be4b9adf06d94c9", "f5a5e14ce08c26056aca5861f56e5cf6", "11eeaaa5c9f5f1231c69d3b958d05568", "421978023a36d4920dbb86300cc52dc9", "e97f2af2588cc0e41ffb6b203df617c9", "7210987d94350472dca10d4ad71fffc5", "6eb1b50edce538a4c63574e9e28fedce", "43c5fecd7623ceabc37844e8a4722603", "c361ccfcd3da9f7288110c6fa202cb96", "2321512f6f8d0ec9f570c6eec9a892fe", "ea08fb234cd908c89a0d21c085dadb2f", "be71f7f0ec926e1850d3baec8817cdbd", "6f695d6b7ecb97f7ff17f22dbe86b93c", "4ee1604b2629e6797d3096c20229223b"] |
| 420 | }, | 459 | }, |
| 421 | //批量添加不动产单元号 | 460 | //批量添加不动产单元号 |
| 422 | addBdcdyh(){ | 461 | addBdcdyh(){ |
| 423 | // this.pd[0].bsm //自然幢标识码 | 462 | // this.pd[0].bsm //自然幢标识码 |
| 424 | console.log(this.$store.state.zrzh,'this.$store.state.zrzh'); | 463 | console.log(this.$store.state.zrzh,'this.$store.state.zrzh'); |
| 464 | }, | ||
| 465 | //获取各项单元状态的户bsm | ||
| 466 | getDyztBsmList(){ | ||
| 467 | let data={ | ||
| 468 | zrzbsm:this.$store.state.zrzbsm, | ||
| 469 | syclx:"0" | ||
| 470 | } | ||
| 471 | getLpbTj(data).then((res)=>{ | ||
| 472 | if(res.code===200){ | ||
| 473 | this.dyztBsmList = res.result; | ||
| 474 | //给单元状态图例数据dyztList赋值 | ||
| 475 | this.dyztList[0].mj = res.result.Wqqzt.mj | ||
| 476 | this.dyztList[0].ts = res.result.Wqqzt.bsms.length | ||
| 477 | this.dyztList[1].mj = res.result.Qqzt.mj | ||
| 478 | this.dyztList[1].ts = res.result.Qqzt.bsms.length | ||
| 479 | this.dyztList[2].mj = res.result.Bazt.mj | ||
| 480 | this.dyztList[2].ts = res.result.Bazt.bsms.length | ||
| 481 | this.dyztList[3].mj = res.result.Ydyzt.mj | ||
| 482 | this.dyztList[3].ts = res.result.Ydyzt.bsms.length | ||
| 483 | this.dyztList[4].mj = res.result.Zjgcdyzt.mj | ||
| 484 | this.dyztList[4].ts = res.result.Zjgcdyzt.bsms.length | ||
| 485 | this.dyztList[5].mj = res.result.Dyzt.mj | ||
| 486 | this.dyztList[5].ts = res.result.Dyzt.bsms.length | ||
| 487 | this.dyztList[6].mj = res.result.Cfzt.mj | ||
| 488 | this.dyztList[6].ts = res.result.Cfzt.bsms.length | ||
| 489 | this.dyztList[7].mj = res.result.Yyzt.mj | ||
| 490 | this.dyztList[7].ts = res.result.Yyzt.bsms.length | ||
| 491 | this.dyztList[8].mj = res.result.Xzzt.mj | ||
| 492 | this.dyztList[8].ts = res.result.Xzzt.bsms.length | ||
| 493 | console.log(res,'各项单元状态的户bsmList'); | ||
| 494 | } | ||
| 495 | }) | ||
| 425 | } | 496 | } |
| 426 | }, | 497 | }, |
| 427 | computed: { | 498 | computed: { | ... | ... |
| ... | @@ -293,11 +293,11 @@ export default { | ... | @@ -293,11 +293,11 @@ export default { |
| 293 | //父组件中选择单元状态改变choosedList | 293 | //父组件中选择单元状态改变choosedList |
| 294 | choosedList(n){ | 294 | choosedList(n){ |
| 295 | this.$refs.hBsm.forEach(item=>{ | 295 | this.$refs.hBsm.forEach(item=>{ |
| 296 | this.choosedList.forEach(i=>{ | 296 | this.choosedList.forEach(i=>{ |
| 297 | if(item.dataset.bsm == i){ | 297 | if(item.dataset.bsm == i){ |
| 298 | item.className = 'tdSelect' | 298 | item.className = 'tdSelect' |
| 299 | } | 299 | } |
| 300 | }) | 300 | }) |
| 301 | }) | 301 | }) |
| 302 | } | 302 | } |
| 303 | }, | 303 | }, | ... | ... |
-
Please register or sign in to post a comment