fe8a08e8 by weimo934

Merge remote-tracking branch 'origin/master'

2 parents ca1d655f 10346c5d
...@@ -66,8 +66,18 @@ export function batchScYcChange (data) { ...@@ -66,8 +66,18 @@ export function batchScYcChange (data) {
66 data:data 66 data:data
67 }) 67 })
68 } 68 }
69 69 /**
70 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 })
80 }
71 81
72 /** 82 /**
73 * 楼盘表 批量实预测转换 83 * 楼盘表 批量实预测转换
......
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
31 .fr{ 31 .fr{
32 float: right; 32 float: right;
33 } 33 }
34 .tac{
35 text-align: center!important;
36 }
34 table{ 37 table{
35 border-width: 0; 38 border-width: 0;
36 } 39 }
......
...@@ -9,24 +9,65 @@ ...@@ -9,24 +9,65 @@
9 </el-radio-group> 9 </el-radio-group>
10 <el-input 10 <el-input
11 v-model="bdcdyh" 11 v-model="bdcdyh"
12 :style="{'width':inputWidth+'px'}" 12 :style="{ width: inputWidth + 'px' }"
13 @focus="inputFocus" 13 @focus="inputFocus"
14 @blur="inputBlur" 14 @blur="inputBlur"
15 @change="inputChange" 15 @change="inputChange"
16 class="searchInput" 16 class="searchInput"
17 placeholder="输入不动产单元号" 17 placeholder="输入不动产单元号"
18 ><i slot="suffix" class="el-input__icon el-icon-search" @click="inputChange"></i></el-input> 18 ><i
19 slot="suffix"
20 class="el-input__icon el-icon-search"
21 @click="inputChange"
22 ></i
23 ></el-input>
19 </el-col> 24 </el-col>
20 <el-col :span="16"> 25 <el-col :span="16">
21 <div class="fr"> 26 <div class="fr">
22 <el-button class="radioBtn" label="1" border @click="create">创建楼盘</el-button> 27 <el-button class="radioBtn" label="1" border @click="create"
23 <el-button class="radioBtn" label="2" border @click="plScYcChange">实预测转换</el-button> 28 >创建楼盘</el-button
24 <el-button class="radioBtn" label="3" border @click="plhVisible=true">批量户</el-button> 29 >
25 <el-button class="radioBtn" label="4" border @click="plcVisible=true">批量层</el-button> 30 <el-button class="radioBtn" label="2" border @click="plScYcChange"
26 <el-button class="radioBtn" label="5" border @click="plShVisible=true">批量室号</el-button> 31 >实预测转换</el-button
27 <el-button class="radioBtn" label="6" border @click="plzlVisible=true">批量坐落</el-button> 32 >
28 <el-button class="radioBtn" label="7" border @click="addBdcdyh">批量单元号</el-button> 33 <el-button
29 <el-button class="radioBtn" label="7" border @click="hcxlzVisible=true">户重新落宗</el-button> 34 class="radioBtn"
35 label="3"
36 border
37 @click="plhVisible = true"
38 >批量户</el-button
39 >
40 <el-button
41 class="radioBtn"
42 label="4"
43 border
44 @click="plcVisible = true"
45 >批量层</el-button
46 >
47 <el-button
48 class="radioBtn"
49 label="5"
50 border
51 @click="plShVisible = true"
52 >批量室号</el-button
53 >
54 <el-button
55 class="radioBtn"
56 label="6"
57 border
58 @click="plzlVisible = true"
59 >批量坐落</el-button
60 >
61 <el-button class="radioBtn" label="7" border @click="addBdcdyh"
62 >批量单元号</el-button
63 >
64 <el-button
65 class="radioBtn"
66 label="7"
67 border
68 @click="hcxlzVisible = true"
69 >户重新落宗</el-button
70 >
30 </div> 71 </div>
31 </el-col> 72 </el-col>
32 </el-row> 73 </el-row>
...@@ -57,13 +98,22 @@ ...@@ -57,13 +98,22 @@
57 <i v-show="!legendToggleFlag" class="el-icon-d-arrow-left"></i> 98 <i v-show="!legendToggleFlag" class="el-icon-d-arrow-left"></i>
58 <i v-show="legendToggleFlag" class="el-icon-d-arrow-right"></i> 99 <i v-show="legendToggleFlag" class="el-icon-d-arrow-right"></i>
59 </div> 100 </div>
60 <div :class="selectedZt == 'dyzt'? 'dyzt selectedZt':'dyzt'" @click="selectedZt='dyzt'"> 101 <div
102 :class="selectedZt == 'dyzt' ? 'dyzt selectedZt' : 'dyzt'"
103 @click="selectedZt = 'dyzt'"
104 >
61 <span>单元状态</span> 105 <span>单元状态</span>
62 </div> 106 </div>
63 <div :class="selectedZt == 'fwxz'? 'fwxz selectedZt':'fwxz'" @click="selectedZt='fwxz'"> 107 <div
108 :class="selectedZt == 'fwxz' ? 'fwxz selectedZt' : 'fwxz'"
109 @click="selectedZt = 'fwxz'"
110 >
64 <span>房屋性质</span> 111 <span>房屋性质</span>
65 </div> 112 </div>
66 <div :class="selectedZt == 'fwyt'? 'fwyt selectedZt':'fwyt'" @click="selectedZt='fwyt'"> 113 <div
114 :class="selectedZt == 'fwyt' ? 'fwyt selectedZt' : 'fwyt'"
115 @click="selectedZt = 'fwyt'"
116 >
67 <span>房屋用途</span> 117 <span>房屋用途</span>
68 </div> 118 </div>
69 </div> 119 </div>
...@@ -71,13 +121,24 @@ ...@@ -71,13 +121,24 @@
71 class="legendTable-wrap" 121 class="legendTable-wrap"
72 :style="{ width: legendToggleFlag ? '204px' : '0' }" 122 :style="{ width: legendToggleFlag ? '204px' : '0' }"
73 > 123 >
74 <table class="legendTable" v-show="selectedZt == 'dyzt'" cellspacing="1" cellpadding="1" border="1"> 124 <table
125 class="legendTable"
126 v-show="selectedZt == 'dyzt'"
127 cellspacing="1"
128 cellpadding="1"
129 border="1"
130 >
75 <tr> 131 <tr>
76 <th>状态</th> 132 <th>状态</th>
77 <th>套数</th> 133 <th>套数</th>
78 <th>面积</th> 134 <th>面积</th>
79 </tr> 135 </tr>
80 <tr v-for="(item, index) in legendList" :key="index" class="cp" @click="handleChoosedH"> 136 <tr
137 v-for="(item, index) in dyztList"
138 :key="index"
139 class="cp"
140 @click="handleChoosedH(item.name)"
141 >
81 <td> 142 <td>
82 <i class="el-icon-star-on" :style="{ color: item.color }"></i 143 <i class="el-icon-star-on" :style="{ color: item.color }"></i
83 >{{ item.name }} 144 >{{ item.name }}
...@@ -86,13 +147,25 @@ ...@@ -86,13 +147,25 @@
86 <td>{{ item.mj }}</td> 147 <td>{{ item.mj }}</td>
87 </tr> 148 </tr>
88 </table> 149 </table>
89 <table class="legendTable" v-show="selectedZt == 'fwxz'" cellspacing="1" cellpadding="1" border="1"> 150
151 <table
152 class="legendTable"
153 v-show="selectedZt == 'fwxz'"
154 cellspacing="1"
155 cellpadding="1"
156 border="1"
157 >
90 <tr> 158 <tr>
91 <th>性质</th> 159 <th>性质</th>
92 <th>套数</th> 160 <th>套数</th>
93 <th>面积</th> 161 <th>面积</th>
94 </tr> 162 </tr>
95 <tr v-for="(item, index) in legendList" :key="index" class="cp" @click="handleChoosedH"> 163 <tr
164 v-for="(item, index) in fwxzList"
165 :key="index"
166 class="cp"
167 @click="handleChoosedH(item.name)"
168 >
96 <td> 169 <td>
97 <i class="el-icon-star-on" :style="{ color: item.color }"></i 170 <i class="el-icon-star-on" :style="{ color: item.color }"></i
98 >{{ item.name }} 171 >{{ item.name }}
...@@ -100,14 +173,29 @@ ...@@ -100,14 +173,29 @@
100 <td>{{ item.ts }}</td> 173 <td>{{ item.ts }}</td>
101 <td>{{ item.mj }}</td> 174 <td>{{ item.mj }}</td>
102 </tr> 175 </tr>
176 <tr v-show="fwxzList.length < 1">
177 <td colspan="3" class="tac">暂无数据</td>
178 </tr>
103 </table> 179 </table>
104 <table class="legendTable" v-show="selectedZt == 'fwyt'" cellspacing="1" cellpadding="1" border="1"> 180
181 <table
182 class="legendTable"
183 v-show="selectedZt == 'fwyt'"
184 cellspacing="1"
185 cellpadding="1"
186 border="1"
187 >
105 <tr> 188 <tr>
106 <th>用途</th> 189 <th>用途</th>
107 <th>套数</th> 190 <th>套数</th>
108 <th>面积</th> 191 <th>面积</th>
109 </tr> 192 </tr>
110 <tr v-for="(item, index) in legendList" :key="index" class="cp" @click="handleChoosedH"> 193 <tr
194 v-for="(item, index) in fwytList"
195 :key="index"
196 class="cp"
197 @click="handleChoosedH(item.name)"
198 >
111 <td> 199 <td>
112 <i class="el-icon-star-on" :style="{ color: item.color }"></i 200 <i class="el-icon-star-on" :style="{ color: item.color }"></i
113 >{{ item.name }} 201 >{{ item.name }}
...@@ -115,6 +203,9 @@ ...@@ -115,6 +203,9 @@
115 <td>{{ item.ts }}</td> 203 <td>{{ item.ts }}</td>
116 <td>{{ item.mj }}</td> 204 <td>{{ item.mj }}</td>
117 </tr> 205 </tr>
206 <tr v-show="fwytList.length < 1">
207 <td colspan="3" class="tac">暂无数据</td>
208 </tr>
118 </table> 209 </table>
119 </div> 210 </div>
120 </div> 211 </div>
...@@ -130,7 +221,11 @@ ...@@ -130,7 +221,11 @@
130 <addZdy ref="zdy"></addZdy> 221 <addZdy ref="zdy"></addZdy>
131 </div> 222 </div>
132 <div class="addCh" v-show="menuType == 'ch'"> 223 <div class="addCh" v-show="menuType == 'ch'">
133 <addCh ref="ch" :dialogVisible="dialogVisible" :treeData="treeData"></addCh> 224 <addCh
225 ref="ch"
226 :dialogVisible="dialogVisible"
227 :treeData="treeData"
228 ></addCh>
134 </div> 229 </div>
135 <div class="btnGroup"> 230 <div class="btnGroup">
136 <el-button type="primary" @click="saveInfo">保存</el-button> 231 <el-button type="primary" @click="saveInfo">保存</el-button>
...@@ -145,10 +240,14 @@ ...@@ -145,10 +240,14 @@
145 <pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose"></pl-zl> 240 <pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose"></pl-zl>
146 <pl-c :plc-visible="plcVisible" :bsms="bsms" @close="plcClose"></pl-c> 241 <pl-c :plc-visible="plcVisible" :bsms="bsms" @close="plcClose"></pl-c>
147 <pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose"></pl-sh> 242 <pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose"></pl-sh>
148 <h-cxlz :h-cxlz-visble="hcxlzVisible" :bsms="bsms" @close="hcxlzClose"></h-cxlz> 243 <h-cxlz
244 :h-cxlz-visble="hcxlzVisible"
245 :bsms="bsms"
246 @close="hcxlzClose"
247 ></h-cxlz>
149 <!-- 双击户的弹出框 --> 248 <!-- 双击户的弹出框 -->
150 <el-dialog title="户编辑" :visible.sync="hbjVisible" width="50%" center> 249 <el-dialog title="户编辑" :visible.sync="hbjVisible" width="50%" center>
151 <hbj ref="hbj" :bsm='hbsm'></hbj> 250 <hbj ref="hbj" :bsm="hbsm"></hbj>
152 <div class="btnGroup"> 251 <div class="btnGroup">
153 <el-button type="primary" @click="hbjSaveInfo">保存</el-button> 252 <el-button type="primary" @click="hbjSaveInfo">保存</el-button>
154 <el-button type="primary" @click="hbjResetInfo">重置</el-button> 253 <el-button type="primary" @click="hbjResetInfo">重置</el-button>
...@@ -159,35 +258,46 @@ ...@@ -159,35 +258,46 @@
159 </template> 258 </template>
160 259
161 <script> 260 <script>
162 import HCxlz from "./../../../../components/hCxlz/hCxlz" 261 import HCxlz from "./../../../../components/hCxlz/hCxlz";
163 import PlC from "./../../../../components/plc/plC" 262 import PlC from "./../../../../components/plc/plC";
164 import PlSh from "./../../../../components/plsh/plSh" 263 import PlSh from "./../../../../components/plsh/plSh";
165 import PlH from "./../../../../components/plh/plH" 264 import PlH from "./../../../../components/plh/plH";
166 import PlZl from "./../../../../components/plzl/plZl" 265 import PlZl from "./../../../../components/plzl/plZl";
167 import LineTree from "../../../../components/lineTree/lineTree"; 266 import LineTree from "../../../../components/lineTree/lineTree";
168 import addLjz from "./ljz/index"; 267 import addLjz from "./ljz/index";
169 import addZdy from "./zdy/index"; 268 import addZdy from "./zdy/index";
170 import addCh from "./ch/index"; 269 import addCh from "./ch/index";
171 import hbj from "./hbj/index" 270 import hbj from "./hbj/index";
172 import lpbContent from "./lpbContent/index"; 271 import lpbContent from "./lpbContent/index";
173 import {getLpbMenuTree, batchScYcChange,batchGeneratorBdcdyh} from "../../../../api/lpb"; 272 import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh } from "../../../../api/lpb";
174 273
175 274 export default {
176 export default {
177 name: "", 275 name: "",
178 components: {LineTree, addLjz, addZdy, addCh, lpbContent, PlC, PlSh, PlH, PlZl, hbj, HCxlz}, 276 components: {
277 LineTree,
278 addLjz,
279 addZdy,
280 addCh,
281 lpbContent,
282 PlC,
283 PlSh,
284 PlH,
285 PlZl,
286 hbj,
287 HCxlz,
288 },
179 props: {}, 289 props: {},
180 data() { 290 data() {
181 return { 291 return {
182 bsms: ["123", "321", "231"], 292 bsms: ["123", "321", "231"],
183 hbsm: '', 293 hbsm: "",
184 hcxlzVisible: false,
185 dialogVisible: false, 294 dialogVisible: false,
186 plcVisible: false, 295 plcVisible: false,
187 plhVisible: false, 296 plhVisible: false,
188 plShVisible: false, 297 plShVisible: false,
189 plzlVisible: false, 298 plzlVisible: false,
190 hbjVisible: false, 299 hbjVisible: false,
300 hcxlzVisible:false,
191 tabPosition: "1", //1是实测 0是预测 301 tabPosition: "1", //1是实测 0是预测
192 radio1: "", 302 radio1: "",
193 radio2: "", 303 radio2: "",
...@@ -198,8 +308,8 @@ ...@@ -198,8 +308,8 @@
198 menuType: "", 308 menuType: "",
199 treeData: {}, 309 treeData: {},
200 inputWidth: 74, 310 inputWidth: 74,
201 selectedZt: 'dyzt', //图例选中项,默认选中单元状态 311 selectedZt: "dyzt", //图例选中项,默认选中单元状态
202 legendList: [ 312 dyztList: [
203 { 313 {
204 name: "未确权", 314 name: "未确权",
205 color: "#2591FD", 315 color: "#2591FD",
...@@ -213,12 +323,6 @@ ...@@ -213,12 +323,6 @@
213 mj: "3109", 323 mj: "3109",
214 }, 324 },
215 { 325 {
216 name: "已注销",
217 color: "#2591FD",
218 ts: "13",
219 mj: "1457",
220 },
221 {
222 name: "已备案", 326 name: "已备案",
223 color: "#2591FD", 327 color: "#2591FD",
224 ts: "3", 328 ts: "3",
...@@ -261,10 +365,13 @@ ...@@ -261,10 +365,13 @@
261 mj: "285", 365 mj: "285",
262 }, 366 },
263 ], 367 ],
368 fwxzList: [],
369 fwytList: [],
264 legendToggleFlag: false, 370 legendToggleFlag: false,
265 lpbContentHight: "", 371 lpbContentHight: "",
266 lpbContentwidth: "", 372 lpbContentwidth: "",
267 time: '' 373 time: "",
374 dyztBsmList: {}, //单元状态bsmList
268 }; 375 };
269 }, 376 },
270 created() { 377 created() {
...@@ -272,8 +379,10 @@ ...@@ -272,8 +379,10 @@
272 this.getHeight(); 379 this.getHeight();
273 }, 380 },
274 mounted() { 381 mounted() {
275 // this.getLpbMenuTree("1e0c83dfe2e73284f834a80a0947f0c9"); 382 //获取楼盘表树结构
276 this.getLpbMenuTree(this.$store.state.zrzbsm); 383 this.getLpbMenuTree(this.$store.state.zrzbsm);
384 //获取各项单元状态的户bsm
385 this.getDyztBsmList();
277 // 楼盘表绘制区域宽度计算:楼盘表区域宽度-图例宽度34-滚动条宽度6 386 // 楼盘表绘制区域宽度计算:楼盘表区域宽度-图例宽度34-滚动条宽度6
278 setTimeout(() => { 387 setTimeout(() => {
279 this.lpbContentwidth = this.$store.state.contentWidth - 34 - 6; 388 this.lpbContentwidth = this.$store.state.contentWidth - 34 - 6;
...@@ -284,7 +393,7 @@ ...@@ -284,7 +393,7 @@
284 this.hcxlzVisible = false; 393 this.hcxlzVisible = false;
285 }, 394 },
286 plZlClose() { 395 plZlClose() {
287 this.plzlVisible = false 396 this.plzlVisible = false;
288 }, 397 },
289 plcClose() { 398 plcClose() {
290 this.plcVisible = false; 399 this.plcVisible = false;
...@@ -293,7 +402,7 @@ ...@@ -293,7 +402,7 @@
293 this.plhVisible = false; 402 this.plhVisible = false;
294 }, 403 },
295 plshClose() { 404 plshClose() {
296 this.plShVisible = false 405 this.plShVisible = false;
297 }, 406 },
298 //获取高度计算lpb内容区高度 407 //获取高度计算lpb内容区高度
299 getHeight() { 408 getHeight() {
...@@ -309,8 +418,7 @@ ...@@ -309,8 +418,7 @@
309 .then((res) => { 418 .then((res) => {
310 this.pd = res.result; 419 this.pd = res.result;
311 }) 420 })
312 .catch((error) => { 421 .catch((error) => {});
313 });
314 }, 422 },
315 //打开新建楼盘树结构右键菜单唤起的弹框 423 //打开新建楼盘树结构右键菜单唤起的弹框
316 openLpbDialog(data, type) { 424 openLpbDialog(data, type) {
...@@ -366,82 +474,145 @@ ...@@ -366,82 +474,145 @@
366 // 双击 474 // 双击
367 this.hbsm = this.bsms[this.bsms.length - 1]; 475 this.hbsm = this.bsms[this.bsms.length - 1];
368 this.hbjVisible = true; 476 this.hbjVisible = true;
369 this.$nextTick(function () { 477 this.$nextTick(function() {
370 this.$refs.hbj.getHInfo(this.hbsm); 478 this.$refs.hbj.getHInfo(this.hbsm);
371 }) 479 });
372 } else { 480 } else {
373 //单击 TO DO 481 //单击 TO DO
374
375 } 482 }
376 console.log(this.bsms); 483 console.log(this.bsms);
377 }, 484 },
378 //不动产单元号输入框事件 485 //不动产单元号输入框事件
379 inputFocus(){ 486 inputFocus() {
380 this.inputWidth = 200 487 this.inputWidth = 200;
381 }, 488 },
382 inputBlur(){ 489 inputBlur() {
383 this.inputWidth = 74 490 this.inputWidth = 74;
384 }, 491 },
385 inputChange(){ 492 inputChange() {
386 if (this.bdcdyh!='') { 493 if (this.bdcdyh != "") {
387 console.log('查询'+this.bdcdyh); 494 console.log("查询" + this.bdcdyh);
388 this.$refs.lpbContent.lpbDataMap(this.bdcdyh); 495 this.$refs.lpbContent.lpbDataMap(this.bdcdyh);
389 }else{ 496 } else {
390 this.$message({ 497 this.$message({
391 message: "请输入内容后查询", 498 message: "请输入内容后查询",
392 type: "warning", 499 type: "warning",
393 }) 500 });
394 } 501 }
395 }, 502 },
396 //户保存 503 //户保存
397 hbjSaveInfo(){ 504 hbjSaveInfo() {
398 this.$refs.hbj.onSave(this.bsms[this.bsms.length-1],this.tabPosition); 505 this.$refs.hbj.onSave(this.bsms[this.bsms.length - 1], this.tabPosition);
399 }, 506 },
400 //户编辑表单重置 507 //户编辑表单重置
401 hbjResetInfo(){ 508 hbjResetInfo() {
402 this.$refs.hbj.onReset(); 509 this.$refs.hbj.onReset();
403 }, 510 },
404 //调用楼盘表信息查询接口 511 //调用楼盘表信息查询接口
405 getlpbData(){ 512 getlpbData() {
406 this.$refs.lpbContent.getLpb(this.$store.state.zrzbsm); 513 this.$refs.lpbContent.getLpb(this.$store.state.zrzbsm);
407 //改变楼盘表子组件的key值,重新渲染 514 //改变楼盘表子组件的key值,重新渲染
408 this.time = new Date().getTime(); 515 this.time = new Date().getTime();
409 }, 516 },
410 //实预测装换 517 //实预测装换
411 plScYcChange(){ 518 plScYcChange() {
412 let data={ 519 let data = {
413 zrzbsm:this.$store.state.zrzbsm, 520 zrzbsm: this.$store.state.zrzbsm,
414 scyclx:"0" 521 scyclx: "0",
415 } 522 };
416 batchScYcChange(data).then((res)=>{ 523 batchScYcChange(data).then((res) => {
417 if(res.code===200){ 524 if (res.code === 200) {
418 this.$message.success("实预测转换成功") 525 this.$message.success("实预测转换成功");
419 } 526 }
420 }) 527 });
421 }, 528 },
422 //选中房屋状态 529 //选中房屋状态
423 handleChoosedH(){ 530 handleChoosedH(name) {
531 console.log(name, "选中房屋状态");
532 // Dyzt:{list:[],mj:''}
424 //清除选中户 533 //清除选中户
425 this.$refs.lpbContent.clearChoosedH() 534 this.$refs.lpbContent.clearChoosedH();
426 //给hBsmList传值 535 //给hBsmList传值
536 switch (name) {
537 case "未确权":
538 this.$refs.lpbContent.choosedList = this.dyztBsmList.Wqqzt.bsms;
539 break;
540 case "已确权":
541 this.$refs.lpbContent.choosedList = this.dyztBsmList.Qqzt.bsms;
542 break;
543 case "已备案":
544 this.$refs.lpbContent.choosedList = this.dyztBsmList.Bazt.bsms;
545 break;
546 case "预抵押":
547 this.$refs.lpbContent.choosedList = this.dyztBsmList.Ydyzt.bsms;
548 break;
549 case "在建抵押":
550 this.$refs.lpbContent.choosedList = this.dyztBsmList.Zjgcdyzt.bsms;
551 break;
552 case "抵押":
553 this.$refs.lpbContent.choosedList = this.dyztBsmList.Dyzt.bsms;
554 break;
555 case "查封":
556 this.$refs.lpbContent.choosedList = this.dyztBsmList.Cfzt.bsms;
557 break;
558 case "异议":
559 this.$refs.lpbContent.choosedList = this.dyztBsmList.Yyzt.bsms;
560 break;
561 case "限制":
562 this.$refs.lpbContent.choosedList = this.dyztBsmList.Xzzt.bsms;
563 break;
564
565 default:
566 break;
567 }
427 // 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"] 568 // 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"]
428 }, 569 },
429 //批量添加不动产单元号 570 //批量添加不动产单元号
430 addBdcdyh(){ 571 addBdcdyh() {
431 // this.pd[0].bsm //自然幢标识码 572 // this.pd[0].bsm //自然幢标识码
432 console.log(this.$store.state.zrzh,'this.$store.state.zrzh'); 573 batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm).then(
433 console.log(this.pd[0].bsm,'this.pd[0].bsm'); 574 (res) => {
434 batchGeneratorBdcdyh(this.$store.state.zrzh,this.pd[0].bsm).then((res)=>{ 575 if (res.code === 200) {
435 if(res.code===200){ 576 this.$message.success("生成完成!");
436 this.$message.success("生成完成!") 577 } else {
437 }else { 578 this.$message.warning("生成失败!");
438 this.$message.warning("生成失败!")
439 } 579 }
440 })
441 } 580 }
581 );
582 },
583 //获取各项单元状态的户bsm
584 getDyztBsmList() {
585 let data = {
586 zrzbsm: this.$store.state.zrzbsm,
587 syclx: "0",
588 };
589 getLpbTj(data).then((res) => {
590 if (res.code === 200) {
591 this.dyztBsmList = res.result;
592 //给单元状态图例数据dyztList赋值
593 this.dyztList[0].mj = res.result.Wqqzt.mj;
594 this.dyztList[0].ts = res.result.Wqqzt.bsms.length;
595 this.dyztList[1].mj = res.result.Qqzt.mj;
596 this.dyztList[1].ts = res.result.Qqzt.bsms.length;
597 this.dyztList[2].mj = res.result.Bazt.mj;
598 this.dyztList[2].ts = res.result.Bazt.bsms.length;
599 this.dyztList[3].mj = res.result.Ydyzt.mj;
600 this.dyztList[3].ts = res.result.Ydyzt.bsms.length;
601 this.dyztList[4].mj = res.result.Zjgcdyzt.mj;
602 this.dyztList[4].ts = res.result.Zjgcdyzt.bsms.length;
603 this.dyztList[5].mj = res.result.Dyzt.mj;
604 this.dyztList[5].ts = res.result.Dyzt.bsms.length;
605 this.dyztList[6].mj = res.result.Cfzt.mj;
606 this.dyztList[6].ts = res.result.Cfzt.bsms.length;
607 this.dyztList[7].mj = res.result.Yyzt.mj;
608 this.dyztList[7].ts = res.result.Yyzt.bsms.length;
609 this.dyztList[8].mj = res.result.Xzzt.mj;
610 this.dyztList[8].ts = res.result.Xzzt.bsms.length;
611 }
612 });
442 }, 613 },
443 computed: {
444 }, 614 },
615 computed: {},
445 destroyed() { 616 destroyed() {
446 window.removeEventListener("resize", this.getHeight); 617 window.removeEventListener("resize", this.getHeight);
447 }, 618 },
...@@ -479,21 +650,21 @@ ...@@ -479,21 +650,21 @@
479 box-sizing: border-box; 650 box-sizing: border-box;
480 padding: 0 20px; 651 padding: 0 20px;
481 /deep/.el-radio-button__inner { 652 /deep/.el-radio-button__inner {
482 border: 1px solid #00CACD; 653 border: 1px solid #00cacd;
483 color: #00CACD; 654 color: #00cacd;
484 } 655 }
485 /deep/.el-radio-button__inner:hover{ 656 /deep/.el-radio-button__inner:hover {
486 color: #00CACD; 657 color: #00cacd;
487 } 658 }
488 /deep/.is-active .el-radio-button__inner{ 659 /deep/.is-active .el-radio-button__inner {
489 color: #fff; 660 color: #fff;
490 } 661 }
491 /deep/.el-radio-button__orig-radio:checked+.el-radio-button__inner{ 662 /deep/.el-radio-button__orig-radio:checked + .el-radio-button__inner {
492 background-color: #00CACD; 663 background-color: #00cacd;
493 border-color: #00CACD; 664 border-color: #00cacd;
494 } 665 }
495 .searchInput { 666 .searchInput {
496 transition: .5s; 667 transition: 0.5s;
497 margin-left: 20px; 668 margin-left: 20px;
498 display: inline-block; 669 display: inline-block;
499 } 670 }
...@@ -546,7 +717,7 @@ ...@@ -546,7 +717,7 @@
546 height: 40px; 717 height: 40px;
547 line-height: 40px; 718 line-height: 40px;
548 text-align: center; 719 text-align: center;
549 background-color: #0091FF; 720 background-color: #0091ff;
550 color: #fff; 721 color: #fff;
551 border-bottom: 1px solid #e6e6e6; 722 border-bottom: 1px solid #e6e6e6;
552 } 723 }
...@@ -572,8 +743,8 @@ ...@@ -572,8 +743,8 @@
572 letter-spacing: 2px; 743 letter-spacing: 2px;
573 } 744 }
574 } 745 }
575 .selectedZt{ 746 .selectedZt {
576 background-color: #0091FF; 747 background-color: #0091ff;
577 color: #fff; 748 color: #fff;
578 } 749 }
579 } 750 }
...@@ -608,7 +779,7 @@ ...@@ -608,7 +779,7 @@
608 } 779 }
609 } 780 }
610 } 781 }
611 .tab-content::-webkit-scrollbar{ 782 .tab-content::-webkit-scrollbar {
612 width: 1px; 783 width: 1px;
613 } 784 }
614 .btnGroup { 785 .btnGroup {
......