9c222fd6 by 任超

style:楼盘表

1 parent 83f1fbe2
...@@ -13,10 +13,9 @@ export function getLpZrz (data) { ...@@ -13,10 +13,9 @@ export function getLpZrz (data) {
13 } 13 }
14 14
15 // 获取楼盘表 15 // 获取楼盘表
16 export function getLpb (params) { 16 export function getLpb (zrzbsm) {
17 return request({ 17 return request({
18 url: SERVER.SERVERAPI + '/rest/zhcx/lpcx/getLpb/', 18 url: SERVER.SERVERAPI + '/rest/zhcx/lpcx/getLpb?zrzbsm=' + zrzbsm,
19 method: 'get', 19 method: 'get'
20 params
21 }) 20 })
22 } 21 }
......
...@@ -65,8 +65,8 @@ ...@@ -65,8 +65,8 @@
65 <el-table-column prop="dh" label="联系电话" align="center"> 65 <el-table-column prop="dh" label="联系电话" align="center">
66 </el-table-column> 66 </el-table-column>
67 </el-table> 67 </el-table>
68 <el-dialog v-dialogDrag :close-on-click-modal="false" title="权利人信息" :visible.sync="dialogVisible" 68 <el-dialog :close-on-click-modal="false" title="权利人信息" :visible.sync="dialogVisible" custom-class="insetDialog"
69 custom-class="insetDialog" append-to-body width="50%"> 69 append-to-body width="50%">
70 <el-form :model="formData" class="qlrForm"> 70 <el-form :model="formData" class="qlrForm">
71 <table class="zdjbxxTable" cellspacing="0" cellpadding="0" border="1"> 71 <table class="zdjbxxTable" cellspacing="0" cellpadding="0" border="1">
72 <tr> 72 <tr>
......
1 <template> 1 <template>
2 <el-dialog v-dialogDrag :close-on-click-modal="false" title="户重新落宗" :visible.sync="isVisible" width="50%" 2 <el-dialog :close-on-click-modal="false" title="户重新落宗" :visible.sync="isVisible" width="50%" @close="close"
3 @close="close" :modal-append-to-body="false"> 3 :modal-append-to-body="false">
4 <div class="content"> 4 <div class="content">
5 <table> 5 <table>
6 <tr> 6 <tr>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
59 import { Message } from 'element-ui' 59 import { Message } from 'element-ui'
60 export default { 60 export default {
61 name: "hCxlz", 61 name: "hCxlz",
62 components: { zdQueryData }, 62 // components: { zdQueryData },
63 data () { 63 data () {
64 return { 64 return {
65 zd: {}, 65 zd: {},
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 reTree_expand_icon: !islpb && !item.expand && item.children.length > 0, 18 reTree_expand_icon: !islpb && !item.expand && item.children.length > 0,
19 lpbTree_collapse_icon: islpb && item.expand && item.children.length > 0, 19 lpbTree_collapse_icon: islpb && item.expand && item.children.length > 0,
20 lpbTree_expand_icon: islpb && !item.expand && item.children.length > 0, 20 lpbTree_expand_icon: islpb && !item.expand && item.children.length > 0,
21 }"></div> 21 }"></div>
22 </div> 22 </div>
23 23
24 <lineItem v-if="item.expand && item.children.length > 0" v-on="$listeners" @ownerMethod="ownerMethod(arguments)" 24 <lineItem v-if="item.expand && item.children.length > 0" v-on="$listeners" @ownerMethod="ownerMethod(arguments)"
...@@ -70,14 +70,13 @@ ...@@ -70,14 +70,13 @@
70 </ul> 70 </ul>
71 71
72 <!--@close="closeImportDialog"--> 72 <!--@close="closeImportDialog"-->
73 <el-dialog v-dialogDrag :close-on-click-modal="false" title="导入图形" :modal="false" custom-class="importDialog" 73 <el-dialog :close-on-click-modal="false" title="导入图形" :modal="false" custom-class="importDialog"
74 :visible.sync="improtDialog" width="30%" @close="closeImportDialog"> 74 :visible.sync="improtDialog" width="30%" @close="closeImportDialog">
75 <import-geo :property-info="zdData" :timeLine="new Date().getTime()" :geo-info="currentClickZdGeo" 75 <import-geo :property-info="zdData" :timeLine="new Date().getTime()" :geo-info="currentClickZdGeo"
76 @closeImportDialog="closeImportDialog"></import-geo> 76 @closeImportDialog="closeImportDialog"></import-geo>
77 </el-dialog> 77 </el-dialog>
78 <!-- 添加定着物弹框 --> 78 <!-- 添加定着物弹框 -->
79 <el-dialog v-dialogDrag :close-on-click-modal="false" title="新建" :modal="false" :visible.sync="dialogVisible" 79 <el-dialog :close-on-click-modal="false" title="新建" :modal="false" :visible.sync="dialogVisible" width="48%">
80 width="48%">
81 <!-- <Create @closeDialog="closeDialog" :auth="true" :createZrz="createZrz" ></Create> --> 80 <!-- <Create @closeDialog="closeDialog" :auth="true" :createZrz="createZrz" ></Create> -->
82 </el-dialog> 81 </el-dialog>
83 <!-- <sxdr :sxdr-visible="sxdrVisible" @close="sxdrClose" :dylx="zdData.type" :bsm="zdData.bsm"></sxdr> --> 82 <!-- <sxdr :sxdr-visible="sxdrVisible" @close="sxdrClose" :dylx="zdData.type" :bsm="zdData.bsm"></sxdr> -->
...@@ -99,7 +98,7 @@ import ImportGeo from './tx/importGeo' ...@@ -99,7 +98,7 @@ import ImportGeo from './tx/importGeo'
99 { 98 {
100 e: Array, 99 e: Array,
101 ault: () => { 100 ault: () => {
102 turn []; 101 turn[];
103 102
104 : { 103 : {
105 e: Number, 104 e: Number,
...@@ -110,17 +109,17 @@ import ImportGeo from './tx/importGeo' ...@@ -110,17 +109,17 @@ import ImportGeo from './tx/importGeo'
110 109
111 omponents: { lineItem, Create, ImportGeo, sxdr }, 110 omponents: { lineItem, Create, ImportGeo, sxdr },
112 ixins: [geoUtils, featureUpdate], 111 ixins: [geoUtils, featureUpdate],
113 a () { 112 a() {
114 rn { 113 rn {
115 rVisible: false, 114 rVisible: false,
116 electedDetail: {}, 115 electedDetail: { },
117 timer: {}, 116 timer: { },
118 formatData: this.$store.state.treeData, 117 formatData: this.$store.state.treeData,
119 isible: false, 118 isible: false,
120 top: 0, 119 top: 0,
121 left: 0, 120 left: 0,
122 sZD: true, 121 sZD: true,
123 ata: {}, 122 ata: { },
124 rentClickZdGeo: "", 123 rentClickZdGeo: "",
125 mprotDialog: false, 124 mprotDialog: false,
126 ialogVisible: false, 125 ialogVisible: false,
...@@ -144,25 +143,25 @@ import ImportGeo from './tx/importGeo' ...@@ -144,25 +143,25 @@ import ImportGeo from './tx/importGeo'
144 ch: { 143 ch: {
145 (n, o) { 144 (n, o) {
146 s.formatData = this.preDealData(n); 145 s.formatData = this.preDealData(n);
147 isible (value) { 146 isible(value) {
148 (value) { 147 (value) {
149 ment.body.addEventListener("click", this.closeMenu); 148 ment.body.addEventListener("click", this.closeMenu);
150 lse { 149 lse {
151 cument.body.removeEventListener("click", this.closeMenu); 150 cument.body.removeEventListener("click", this.closeMenu);
152 151
153 152
154 Visible (value) { 153 Visible(value) {
155 (value) { 154 (value) {
156 cument.body.addEventListener("click", this.closeMenu); 155 cument.body.addEventListener("click", this.closeMenu);
157 lse { 156 lse {
158 cument.body.removeEventListener("click", this.closeMenu); 157 cument.body.removeEventListener("click", this.closeMenu);
159 wVisible (value) { 158 wVisible(value) {
160 f (value) { 159 f(value) {
161 document.body.addEventListener("click", this.closeMenu); 160 document.body.addEventListener("click", this.closeMenu);
162 lse { 161 lse {
163 cument.body.removeEventListener("click", this.closeMenu); 162 cument.body.removeEventListener("click", this.closeMenu);
164 } 163 }
165 zrzVisible (value) { 164 zrzVisible(value) {
166 (value) { 165 (value) {
167 ment.body.addEventListener("click", this.closeMenu); 166 ment.body.addEventListener("click", this.closeMenu);
168 lse { 167 lse {
...@@ -174,7 +173,7 @@ import ImportGeo from './tx/importGeo' ...@@ -174,7 +173,7 @@ import ImportGeo from './tx/importGeo'
174 document.body.removeEventListener("click", this.closeMenu); 173 document.body.removeEventListener("click", this.closeMenu);
175 } 174 }
176 } 175 }
177 ed () { 176 ed() {
178 nextTick(() => { 177 nextTick(() => {
179 eDealData(this.pd); 178 eDealData(this.pd);
180 ndTreeItemById(["6b5af49d803f97baf06afb897de257f5"]); 179 ndTreeItemById(["6b5af49d803f97baf06afb897de257f5"]);
...@@ -191,71 +190,71 @@ import ImportGeo from './tx/importGeo' ...@@ -191,71 +190,71 @@ import ImportGeo from './tx/importGeo'
191 his.zdQszt != '0') { 190 his.zdQszt != '0') {
192 191
193 drVisible = true; 192 drVisible = true;
194 e () { 193 e() {
195 sxdrVisible = false; 194 sxdrVisible = false;
196 ading () { 195 ading() {
197 his.$emit("loading") 196 his.$emit("loading")
198 197
199 eleteLjz () { 198 eleteLjz() {
200 console.log("删除逻辑幢") 199 console.log("删除逻辑幢")
201 console.log(this.zdData, "zdData") 200 console.log(this.zdData, "zdData")
202 deleteLjz(this.zdData.bsm).then(res => { 201 deleteLjz(this.zdData.bsm).then(res => {
203 if (res.success) { 202 if (res.success) {
204 this.loading() 203 this.loading()
205 else { 204 else {
206 dy () { 205 dy() {
207 log("删除幢单元") 206 log("删除幢单元")
208 e.log(this.zdData, "zdData") 207 e.log(this.zdData, "zdData")
209 teZdy(this.zdData.bsm).then(res => { 208 teZdy(this.zdData.bsm).then(res => {
210 f (res.success) { 209 f(res.success) {
211 this.loading() 210 this.loading()
212 } 211 }
213 212
214 , 213 ,
215 变菜单数据 214 变菜单数据
216 Visible (data) { 215 Visible(data) {
217 s.zrzVisible = data; 216 s.zrzVisible = data;
218 s.lpbvisible = false; 217 s.lpbvisible = false;
219 dzVisible = false; 218 dzVisible = false;
220 wVisible = false; 219 wVisible = false;
221 ta (data) { 220 ta(data) {
222 = data; 221 = data;
223 zt = data.qszt; 222 zt = data.qszt;
224 (data) { 223 (data) {
225 p = data; 224 p = data;
226 lpbtop = data; 225 lpbtop = data;
227 angeLeft (data) { 226 angeLeft(data) {
228 this.left = data; 227 this.left = data;
229 this.lpbleft = data; 228 this.lpbleft = data;
230 }, 229 },
231 changeIsZD (data) { 230 changeIsZD(data) {
232 this.isZD = data; 231 this.isZD = data;
233 }, 232 },
234 changeLpbVisible (data) { 233 changeLpbVisible(data) {
235 this.lpbvisible = data; 234 this.lpbvisible = data;
236 this.zrzVisible = false; 235 this.zrzVisible = false;
237 this.dzVisible = false; 236 this.dzVisible = false;
238 this.gzwVisible = false; 237 this.gzwVisible = false;
239 }, 238 },
240 changeCreateVisible (data) { 239 changeCreateVisible(data) {
241 this.createVisible = true; 240 this.createVisible = true;
242 }, 241 },
243 //多幢 242 //多幢
244 changeDzVisible (data) { 243 changeDzVisible(data) {
245 this.dzVisible = data; 244 this.dzVisible = data;
246 this.zrzVisible = false; 245 this.zrzVisible = false;
247 this.lpbvisible = false; 246 this.lpbvisible = false;
248 this.gzwVisible = false; 247 this.gzwVisible = false;
249 }, 248 },
250 //构筑物 249 //构筑物
251 changeGzwVisible (data) { 250 changeGzwVisible(data) {
252 this.gzwVisible = data; 251 this.gzwVisible = data;
253 this.zrzVisible = false; 252 this.zrzVisible = false;
254 this.lpbvisible = false; 253 this.lpbvisible = false;
255 this.dzVisible = false; 254 this.dzVisible = false;
256 }, 255 },
257 //添加定着物 256 //添加定着物
258 openCreateDialog (type) { 257 openCreateDialog(type) {
259 if (type == 'zrz') { 258 if (type == 'zrz') {
260 this.createZrz = true; 259 this.createZrz = true;
261 } 260 }
...@@ -269,11 +268,11 @@ import ImportGeo from './tx/importGeo' ...@@ -269,11 +268,11 @@ import ImportGeo from './tx/importGeo'
269 } 268 }
270 }, 269 },
271 //关闭添加定着物弹框 270 //关闭添加定着物弹框
272 closeDialog () { 271 closeDialog() {
273 this.dialogVisible = false; 272 this.dialogVisible = false;
274 this.createZrz = false; 273 this.createZrz = false;
275 }, 274 },
276 preDealData (list) { 275 preDealData(list) {
277 //楼盘表目录树没有expand属性 276 //楼盘表目录树没有expand属性
278 // if(list == null){ 277 // if(list == null){
279 // return list 278 // return list
...@@ -288,7 +287,7 @@ import ImportGeo from './tx/importGeo' ...@@ -288,7 +287,7 @@ import ImportGeo from './tx/importGeo'
288 // } 287 // }
289 }, 288 },
290 // 根据id展开树的具体项 289 // 根据id展开树的具体项
291 expandTreeItemById (idList) { 290 expandTreeItemById(idList) {
292 let _this = this; 291 let _this = this;
293 function loopTree (list) { 292 function loopTree (list) {
294 list.forEach((x) => { 293 list.forEach((x) => {
...@@ -304,7 +303,7 @@ import ImportGeo from './tx/importGeo' ...@@ -304,7 +303,7 @@ import ImportGeo from './tx/importGeo'
304 this.formatData = loopTree(this.pd); 303 this.formatData = loopTree(this.pd);
305 console.log(this.formatData, "this.formatData"); 304 console.log(this.formatData, "this.formatData");
306 }, 305 },
307 itemClick (item) { 306 itemClick(item) {
308 // item.expand = item.expand == undefined? true:!item.expand; 307 // item.expand = item.expand == undefined? true:!item.expand;
309 this.formatData.forEach(i => { 308 this.formatData.forEach(i => {
310 if (i.bsm != item.bsm) { 309 if (i.bsm != item.bsm) {
...@@ -317,7 +316,7 @@ import ImportGeo from './tx/importGeo' ...@@ -317,7 +316,7 @@ import ImportGeo from './tx/importGeo'
317 // this.$emit("itemClick", item); 316 // this.$emit("itemClick", item);
318 }, 317 },
319 //给所有权类型添加子节点 318 //给所有权类型添加子节点
320 ownerMethod (arr) { 319 ownerMethod(arr) {
321 let item = arr[0]; 320 let item = arr[0];
322 let list = arr[1] 321 let list = arr[1]
323 this.formatData.forEach(i => { 322 this.formatData.forEach(i => {
...@@ -342,30 +341,30 @@ import ImportGeo from './tx/importGeo' ...@@ -342,30 +341,30 @@ import ImportGeo from './tx/importGeo'
342 this.$store.state.treeData = this.formatData; 341 this.$store.state.treeData = this.formatData;
343 }, 342 },
344 //自然幢右键点击事件 343 //自然幢右键点击事件
345 openMenu (e, item) { 344 openMenu(e, item) {
346 this.lpbleft = e.pageX; 345 this.lpbleft = e.pageX;
347 this.lpbtop = e.pageY; 346 this.lpbtop = e.pageY;
348 this.zdData = item; 347 this.zdData = item;
349 this.changeLpbVisible(true); 348 this.changeLpbVisible(true);
350 }, 349 },
351 //关闭右键菜单 350 //关闭右键菜单
352 closeMenu () { 351 closeMenu() {
353 this.zrzVisible = false; 352 this.zrzVisible = false;
354 this.lpbvisible = false; 353 this.lpbvisible = false;
355 this.dzVisible = false; 354 this.dzVisible = false;
356 this.gzwVisible = false; 355 this.gzwVisible = false;
357 }, 356 },
358 //楼盘表右键菜单项打开父组件弹框 357 //楼盘表右键菜单项打开父组件弹框
359 openLpbDialog (type) { 358 openLpbDialog(type) {
360 this.$parent.openLpbDialog(this.zdData, type); 359 this.$parent.openLpbDialog(this.zdData, type);
361 }, 360 },
362 detailDoubleClick (data) { 361 detailDoubleClick(data) {
363 clearTimeout(this.timer); 362 clearTimeout(this.timer);
364 this.selectedDetail = data; 363 this.selectedDetail = data;
365 this.$emit("detailDoubleClick", data); 364 this.$emit("detailDoubleClick", data);
366 }, 365 },
367 //右键菜单的删除 366 //右键菜单的删除
368 deleteByBsm () { 367 deleteByBsm() {
369 let name = ''; 368 let name = '';
370 switch (this.zdData.type) { 369 switch (this.zdData.type) {
371 case 'zd': 370 case 'zd':
...@@ -436,7 +435,7 @@ import ImportGeo from './tx/importGeo' ...@@ -436,7 +435,7 @@ import ImportGeo from './tx/importGeo'
436 }); 435 });
437 }, 436 },
438 //删除图形 437 //删除图形
439 deleteGeoByBsm () { 438 deleteGeoByBsm() {
440 var self = this; 439 var self = this;
441 var BSM = ""; 440 var BSM = "";
442 var type = this.zdData.type; 441 var type = this.zdData.type;
...@@ -477,7 +476,7 @@ import ImportGeo from './tx/importGeo' ...@@ -477,7 +476,7 @@ import ImportGeo from './tx/importGeo'
477 }); 476 });
478 }, 477 },
479 //删除宗地界址点 界址线 478 //删除宗地界址点 界址线
480 delJzdAndJzx (bsm) { 479 delJzdAndJzx(bsm) {
481 delJzdByBsm({ zdbsm: bsm }).then(res => { 480 delJzdByBsm({ zdbsm: bsm }).then(res => {
482 if (res.success) { 481 if (res.success) {
483 console.log("删除界址点成功!!!"); 482 console.log("删除界址点成功!!!");
...@@ -492,7 +491,7 @@ import ImportGeo from './tx/importGeo' ...@@ -492,7 +491,7 @@ import ImportGeo from './tx/importGeo'
492 /* 491 /*
493 * 导入图形 492 * 导入图形
494 * */ 493 * */
495 importGeo () { 494 importGeo() {
496 var self = this; 495 var self = this;
497 var BSM = ""; 496 var BSM = "";
498 if (this.zdData.qszt != '0') { 497 if (this.zdData.qszt != '0') {
...@@ -537,7 +536,7 @@ import ImportGeo from './tx/importGeo' ...@@ -537,7 +536,7 @@ import ImportGeo from './tx/importGeo'
537 }); 536 });
538 }, 537 },
539 //导出文本文件 538 //导出文本文件
540 exportText () { 539 exportText() {
541 var self = this; 540 var self = this;
542 var type = this.zdData.type; 541 var type = this.zdData.type;
543 var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; 542 var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm;
...@@ -566,7 +565,7 @@ import ImportGeo from './tx/importGeo' ...@@ -566,7 +565,7 @@ import ImportGeo from './tx/importGeo'
566 }, { wkt: this.wkt }); 565 }, { wkt: this.wkt });
567 }, 566 },
568 //导出shp文件 567 //导出shp文件
569 exportToShp () { 568 exportToShp() {
570 var self = this; 569 var self = this;
571 var type = this.zdData.type; 570 var type = this.zdData.type;
572 var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; 571 var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm;
...@@ -585,7 +584,7 @@ import ImportGeo from './tx/importGeo' ...@@ -585,7 +584,7 @@ import ImportGeo from './tx/importGeo'
585 }, { wkt: this.wkt }); 584 }, { wkt: this.wkt });
586 }, 585 },
587 //导出excel 586 //导出excel
588 exportExcel () { 587 exportExcel() {
589 var self = this; 588 var self = this;
590 var type = this.zdData.type; 589 var type = this.zdData.type;
591 var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; 590 var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm;
...@@ -615,10 +614,10 @@ import ImportGeo from './tx/importGeo' ...@@ -615,10 +614,10 @@ import ImportGeo from './tx/importGeo'
615 }, { wkt: this.wkt }) 614 }, { wkt: this.wkt })
616 }, 615 },
617 //导出CAD 616 //导出CAD
618 exportCad () { 617 exportCad() {
619 //TODO 618 //TODO
620 }, 619 },
621 downloadTxt (text, fileName) { 620 downloadTxt(text, fileName) {
622 let element = document.createElement('a') 621 let element = document.createElement('a')
623 element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)) 622 element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text))
624 element.setAttribute('download', fileName) 623 element.setAttribute('download', fileName)
...@@ -626,7 +625,7 @@ import ImportGeo from './tx/importGeo' ...@@ -626,7 +625,7 @@ import ImportGeo from './tx/importGeo'
626 element.click() 625 element.click()
627 }, 626 },
628 //图形定位 627 //图形定位
629 postionToMap () { 628 postionToMap() {
630 var type = this.zdData.type; 629 var type = this.zdData.type;
631 var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; 630 var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm;
632 if (this.$route.path == "/viewMap") { 631 if (this.$route.path == "/viewMap") {
...@@ -650,7 +649,7 @@ import ImportGeo from './tx/importGeo' ...@@ -650,7 +649,7 @@ import ImportGeo from './tx/importGeo'
650 }, 649 },
651 650
652 //关闭图形弹框 651 //关闭图形弹框
653 closeImportDialog () { 652 closeImportDialog() {
654 this.improtDialog = false; 653 this.improtDialog = false;
655 this.clearOverLayer(); 654 this.clearOverLayer();
656 } 655 }
......
1 <template> 1 <template>
2 <div> 2 <div>
3 <el-dialog v-dialogDrag :close-on-click-modal="false" title="移动户" :visible.sync="isVisible" width="50%" 3 <el-dialog :close-on-click-modal="false" title="移动户" :visible.sync="isVisible" width="50%" @close="close"
4 @close="close" :modal-append-to-body="false"> 4 :modal-append-to-body="false">
5 <div> 5 <div>
6 <div class="bottom-radio"> 6 <div class="bottom-radio">
7 <el-radio-group v-model="moveHdata.sxzylx"> 7 <el-radio-group v-model="moveHdata.sxzylx">
......
1 <template> 1 <template>
2 <div> 2 <div>
3 <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量层" :visible.sync="isVisible" width="50%" 3 <el-dialog :close-on-click-modal="false" title="批量层" :visible.sync="isVisible" width="50%" @close="close"
4 @close="close" :modal-append-to-body="false"> 4 :modal-append-to-body="false">
5 <div> 5 <div>
6 <table border="1"> 6 <table border="1">
7 <tr> 7 <tr>
......
1 <template> 1 <template>
2 <div> 2 <div>
3 <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量户" :visible.sync="isVisible" width="72%" 3 <el-dialog :close-on-click-modal="false" title="批量户" :visible.sync="isVisible" width="72%" @close="close"
4 @close="close" :modal-append-to-body="false"> 4 :modal-append-to-body="false">
5 <div> 5 <div>
6 <table border="1"> 6 <table border="1">
7 <tr> 7 <tr>
......
1 <template> 1 <template>
2 <div class=""> 2 <div class="">
3 <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量室号" :visible.sync="isVisible" width="50%" 3 <el-dialog :close-on-click-modal="false" title="批量室号" :visible.sync="isVisible" width="50%" @close="close"
4 @close="close" :modal-append-to-body="false"> 4 :modal-append-to-body="false">
5 <div> 5 <div>
6 <table border="1"> 6 <table border="1">
7 <tr> 7 <tr>
......
1 <template> 1 <template>
2 <div> 2 <div>
3 <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量坐落" :visible.sync="isVisible" width="60%" 3 <el-dialog :close-on-click-modal="false" title="批量坐落" :visible.sync="isVisible" width="60%" @close="close"
4 @close="close" :modal-append-to-body="false"> 4 :modal-append-to-body="false">
5 <div> 5 <div>
6 <table border="1"> 6 <table border="1">
7 <tr> 7 <tr>
......
...@@ -18,11 +18,17 @@ router.beforeEach(async (to, from, next) => { ...@@ -18,11 +18,17 @@ router.beforeEach(async (to, from, next) => {
18 } 18 }
19 if (hasAddRoute) { 19 if (hasAddRoute) {
20 next() 20 next()
21 // next({ ...to, replace: true })
21 } else { 22 } else {
22 const { result: getMenuData } = await getMenuInfo() 23 const { result: getMenuData } = await getMenuInfo()
23 const accessRoutes = await store.dispatch('permission/generateRoutes', getMenuData) 24 const accessRoutes = await store.dispatch('permission/generateRoutes', getMenuData)
24 router.addRoutes([...accessRoutes, { path: '*', redirect: '/404', hidden: true }]) 25 router.addRoutes([...accessRoutes, { path: '*', redirect: '/404', hidden: true }])
25 next({ ...to, replace: true }) 26 const routeTo = Cookies.get('routerTo')
27 if (routeTo) {
28 next(routeTo)
29 } else {
30 next('/home')
31 }
26 } 32 }
27 NProgress.done() 33 NProgress.done()
28 34
......
...@@ -21,13 +21,13 @@ export const constantRoutes = [ ...@@ -21,13 +21,13 @@ export const constantRoutes = [
21 ] 21 ]
22 }, 22 },
23 { 23 {
24 path: '/', 24 path: '/404',
25 component: Layout, 25 component: Layout,
26 hidden: true, 26 hidden: true,
27 redirect: '/404', 27 redirect: '/404/index',
28 children: [ 28 children: [
29 { 29 {
30 path: '404', 30 path: '/index',
31 component: () => import('@/views/error-page/404'), 31 component: () => import('@/views/error-page/404'),
32 name: '404', 32 name: '404',
33 meta: { title: '404' } 33 meta: { title: '404' }
......
1 const state = {
2 contentWidth: ''
3 }
4
5 const mutations = {
6
7 }
8
9 const actions = {
10 }
11
12 export default {
13 namespaced: true,
14 state,
15 mutations,
16 actions
17 }
1 import store from '../index' 1 import store from '../index'
2 import router, { resetRouter } from '@/router' 2 import router, { resetRouter } from '@/router'
3 import { Message } from "element-ui";
4 import Cookies from 'js-cookie'; 3 import Cookies from 'js-cookie';
5 const state = { 4 const state = {
6 name: Cookies.get('username'), 5 name: Cookies.get('username'),
......
...@@ -21,7 +21,9 @@ import hbj from "../index" ...@@ -21,7 +21,9 @@ import hbj from "../index"
21 export default { 21 export default {
22 name: "index", 22 name: "index",
23 components: { 23 components: {
24 hbj, djb, fjcl 24 hbj,
25 // djb,
26 // fjcl
25 }, 27 },
26 props: { 28 props: {
27 bsm: String, //户标识码 29 bsm: String, //户标识码
......
...@@ -47,8 +47,7 @@ ...@@ -47,8 +47,7 @@
47 <i class="iconfont iconloupanbiaobianji" v-show="!bjztFlag" @click="bjztChange" title="编辑楼盘"></i> 47 <i class="iconfont iconloupanbiaobianji" v-show="!bjztFlag" @click="bjztChange" title="编辑楼盘"></i>
48 </div> 48 </div>
49 </div> --> 49 </div> -->
50 <div class="tab-content" ref="tabContent" :style="{ height: lpbContentHight + 'px' }" v-loading="lpbloading" 50 <div class="tab-content" ref="tabContent" :style="{ height: lpbContentHight + 'px' }" v-show="bjztFlag">
51 v-show="bjztFlag">
52 <!-- 左侧树结构 --> 51 <!-- 左侧树结构 -->
53 <!-- <div class="lp-tree" :class="createFlag ? 'w260' : 'w0'"> 52 <!-- <div class="lp-tree" :class="createFlag ? 'w260' : 'w0'">
54 <LineTree :pd="pd" class="treeData" :islpb="islpb" @loading="loading"></LineTree> 53 <LineTree :pd="pd" class="treeData" :islpb="islpb" @loading="loading"></LineTree>
...@@ -58,7 +57,7 @@ ...@@ -58,7 +57,7 @@
58 </div> --> 57 </div> -->
59 <!-- 楼盘表主体 --> 58 <!-- 楼盘表主体 -->
60 <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }"> 59 <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }">
61 <lpbContent ref="lpbContent" :zrzbsm="$route.query.bsm" :key="time"></lpbContent> 60 <lpbContent ref="lpbContent" :zrzbsm="formData.bsm" :key="time"></lpbContent>
62 </div> 61 </div>
63 <!-- 右侧图例 --> 62 <!-- 右侧图例 -->
64 <div class="lp-legend"> 63 <div class="lp-legend">
...@@ -158,7 +157,7 @@ ...@@ -158,7 +157,7 @@
158 <!-- 详细信息 --> 157 <!-- 详细信息 -->
159 <!-- <xxxx v-show="!bjztFlag"></xxxx> --> 158 <!-- <xxxx v-show="!bjztFlag"></xxxx> -->
160 <!-- 右键菜单弹出框 根据菜单类型(menuType)和右键点击的楼盘类型(treeData.type)来区分弹框内容 --> 159 <!-- 右键菜单弹出框 根据菜单类型(menuType)和右键点击的楼盘类型(treeData.type)来区分弹框内容 -->
161 <!-- <el-dialog v-dialogDrag :close-on-click-modal="false" :title="taskTitle" :visible.sync="dialogVisible" width="50%"> 160 <!-- <el-dialog :close-on-click-modal="false" :title="taskTitle" :visible.sync="dialogVisible" width="50%">
162 <div class="addCh" v-if="menuType == 'ljz'"> 161 <div class="addCh" v-if="menuType == 'ljz'">
163 <addLjz ref="ljz" :ljzbsm="curBsm"></addLjz> 162 <addLjz ref="ljz" :ljzbsm="curBsm"></addLjz>
164 </div> 163 </div>
...@@ -182,7 +181,7 @@ ...@@ -182,7 +181,7 @@
182 <pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose" @lodding="lodding"></pl-zl> 181 <pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose" @lodding="lodding"></pl-zl>
183 <pl-c :plc-visible="plcVisible" :bsms="cbsmList" @close="plcClose" @lodding="lodding"></pl-c> 182 <pl-c :plc-visible="plcVisible" :bsms="cbsmList" @close="plcClose" @lodding="lodding"></pl-c>
184 <pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose" @lodding="lodding"></pl-sh> 183 <pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose" @lodding="lodding"></pl-sh>
185 <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量上传" :visible.sync="uploadVisible" width="30%"> 184 <el-dialog :close-on-click-modal="false" title="批量上传" :visible.sync="uploadVisible" width="30%">
186 <div class="wrap"> 185 <div class="wrap">
187 <div class="main-button"> 186 <div class="main-button">
188 <el-upload class="upload-demo" action="/api/file/uploadListByGlbsm" :data="fileData" 187 <el-upload class="upload-demo" action="/api/file/uploadListByGlbsm" :data="fileData"
...@@ -217,7 +216,13 @@ import lpbContent from "./lpbContent/index"; ...@@ -217,7 +216,13 @@ import lpbContent from "./lpbContent/index";
217 // import xxxx from '../xxxx/index' 216 // import xxxx from '../xxxx/index'
218 217
219 export default { 218 export default {
220 name: "", 219 name: "bjlp",
220 props: {
221 formData: {
222 type: Object,
223 default: {}
224 }
225 },
221 components: { 226 components: {
222 // LineTree, 227 // LineTree,
223 addLjz, 228 addLjz,
...@@ -315,7 +320,6 @@ export default { ...@@ -315,7 +320,6 @@ export default {
315 time: "", 320 time: "",
316 dyztBsmList: {}, //单元状态bsmList 321 dyztBsmList: {}, //单元状态bsmList
317 cbsmList: [], // 层bsmlist 322 cbsmList: [], // 层bsmlist
318 lpbloading: true,
319 bjztFlag: true, 323 bjztFlag: true,
320 taskTitle: '添加', 324 taskTitle: '添加',
321 curBsm: '', 325 curBsm: '',
...@@ -329,18 +333,18 @@ export default { ...@@ -329,18 +333,18 @@ export default {
329 }, 333 },
330 created () { 334 created () {
331 window.addEventListener("resize", this.getHeight); 335 window.addEventListener("resize", this.getHeight);
332 // this.getHeight(); 336 this.getHeight();
333 }, 337 },
334 mounted () { 338 mounted () {
335 //获取楼盘表树结构 339 //获取楼盘表树结构
336 // this.getLpbMenuTree(this.$store.state.zrzbsm); 340 // this.getLpbMenuTree(formData.zrzbsm);
337 //获取各项单元状态的户bsm 341 //获取各项单元状态的户bsm
338 // this.getDyztBsmList(); 342 // this.getDyztBsmList();
339 //获取房屋用途统计数据 343 //获取房屋用途统计数据
340 // this.getLpbFwytAndQlxz(); 344 // this.getLpbFwytAndQlxz();
341 // 楼盘表绘制区域宽度计算:楼盘表区域宽度-图例宽度34-滚动条宽度6 345 // 楼盘表绘制区域宽度计算:楼盘表区域宽度-图例宽度34-滚动条宽度6
342 setTimeout(() => { 346 setTimeout(() => {
343 this.lpbContentwidth = this.$store.state.contentWidth - 34 - 6; 347 this.lpbContentwidth = ((document.documentElement.clientWidth || document.body.clientWidth) - 340) - 34 - 6;
344 }, 100); 348 }, 100);
345 }, 349 },
346 methods: { 350 methods: {
...@@ -429,7 +433,6 @@ export default { ...@@ -429,7 +433,6 @@ export default {
429 console.log(file); 433 console.log(file);
430 }, 434 },
431 handleExceed (files, fileList) { 435 handleExceed (files, fileList) {
432 console.log(fileList)
433 // this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); 436 // this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
434 this.$message.warning("上传失败") 437 this.$message.warning("上传失败")
435 }, 438 },
...@@ -524,7 +527,7 @@ export default { ...@@ -524,7 +527,7 @@ export default {
524 }, 527 },
525 //获取高度计算lpb内容区高度 528 //获取高度计算lpb内容区高度
526 getHeight () { 529 getHeight () {
527 this.lpbContentHight = window.innerHeight - 285; 530 this.lpbContentHight = window.innerHeight - 190;
528 }, 531 },
529 //创建楼盘 532 //创建楼盘
530 create () { 533 create () {
......
...@@ -7,18 +7,18 @@ ...@@ -7,18 +7,18 @@
7 : 'ljz-wrap' 7 : 'ljz-wrap'
8 " :style="{ 'width': ljzWidth + 'px' }" v-show="lpbData.ljzs.length > 0"> 8 " :style="{ 'width': ljzWidth + 'px' }" v-show="lpbData.ljzs.length > 0">
9 <!-- 循环逻辑幢数据 --> 9 <!-- 循环逻辑幢数据 -->
10 <div class="ljz" ref="ljz" v-for="(ljzs, ljzIndex) in lpbData.ljzs" :key="ljzIndex" 10 <div class="ljz" ref="ljz" v-for="(ljzs, ljzIndex) in lpbData.ljzs" :key="ljzIndex">
11 :class="[{ 'mt30': ljzIndex == 0 }, { 'mt60': ljzIndex == 1 || lpbData.ljzs.length == 1 }]"> 11 <!-- :class="[{ 'mt30': ljzIndex == 0 }, { 'mt60': ljzIndex == 1 || lpbData.ljzs.length == 1 }]" -->
12
12 <!-- :style="{'marginTop':ljzs.zdys.length>0?'0':'30px'}" --> 13 <!-- :style="{'marginTop':ljzs.zdys.length>0?'0':'30px'}" -->
13 <!-- 循环逻辑幢下的幢单元 --> 14 <!-- 循环逻辑幢下的幢单元 -->
14 <div class="ljz-zdy-wrap"> 15 <div class="ljz-zdy-wrap" :style="{ 'marginTop': ljzs.zdys.length > 0 ? '0' : '30px' }">
15 <div class="ljz-zdy column-reverse" 16 <div class="ljz-zdy column-reverse"
16 :style="{ 'min-height': ljzzdyHeight + 'px', 'marginRight': zdyIndex < (ljzs.zdys.length - 1) || ljzs.cs.length > 1 ? '20px' : '0' }" 17 :style="{ 'min-height': ljzzdyHeight + 'px', 'marginRight': zdyIndex < (ljzs.zdys.length - 1) || ljzs.cs.length > 1 ? '20px' : '0' }"
17 ref="ljzzdy" v-show="ljzs.zdys.length > 0" v-for="(zdys, zdyIndex) in ljzs.zdys" :key="zdyIndex"> 18 ref="ljzzdy" v-show="ljzs.zdys.length > 0" v-for="(zdys, zdyIndex) in ljzs.zdys" :key="zdyIndex">
18 <!-- 幢单元名称 --> 19 <!-- 幢单元名称 -->
19 <div class="zdy-name name"> 20 <div class="zdy-name name">
20 <p class="cp" @dblclick="openZxx(zdys.bsm, 'zdy')"> 21 <p class="cp" @dblclick="openZxx(zdys.bsm, 'zdy')">
21 <!-- {{ zdys.zdymc }} -->
22 <el-checkbox @change='zdySelectAll($event, zdys.cs)'>{{ zdys.zdymc }}</el-checkbox> 22 <el-checkbox @change='zdySelectAll($event, zdys.cs)'>{{ zdys.zdymc }}</el-checkbox>
23 </p> 23 </p>
24 </div> 24 </div>
...@@ -94,8 +94,6 @@ ...@@ -94,8 +94,6 @@
94 </tr> 94 </tr>
95 </table> 95 </table>
96 </div> 96 </div>
97 <!-- </div> -->
98
99 <!-- 逻辑幢名称 --> 97 <!-- 逻辑幢名称 -->
100 <div class="ljz-name name"> 98 <div class="ljz-name name">
101 <p class="cp" @dblclick="openZxx(ljzs.bsm, 'ljz')"> 99 <p class="cp" @dblclick="openZxx(ljzs.bsm, 'ljz')">
...@@ -178,9 +176,8 @@ ...@@ -178,9 +176,8 @@
178 </tr> 176 </tr>
179 </table> 177 </table>
180 </div> 178 </div>
181 <!-- </template> -->
182 </div> 179 </div>
183 <!-- <div class="ch-wrap">层户</div> --> 180 <!-- 层户 -->
184 <div class="zrz" :style="{ width: lpbContentWidth + 'px' }"> 181 <div class="zrz" :style="{ width: lpbContentWidth + 'px' }">
185 <el-checkbox v-model="zrzChecked" @change='lpbSelectAll'>{{ lpbData.xmmc }}</el-checkbox> 182 <el-checkbox v-model="zrzChecked" @change='lpbSelectAll'>{{ lpbData.xmmc }}</el-checkbox>
186 </div> 183 </div>
...@@ -188,7 +185,6 @@ ...@@ -188,7 +185,6 @@
188 <ul v-show="lpbChVisible" :style="{ left: lpbChLeft + 'px', top: lpbChTop + 'px' }" class="contextmenu"> 185 <ul v-show="lpbChVisible" :style="{ left: lpbChLeft + 'px', top: lpbChTop + 'px' }" class="contextmenu">
189 <li v-show="rightClickFlag == 'h'" @click="handleAddH">添加</li> 186 <li v-show="rightClickFlag == 'h'" @click="handleAddH">添加</li>
190 <li v-show="rightClickFlag == 'h'" @click="handleMoveH">移动</li> 187 <li v-show="rightClickFlag == 'h'" @click="handleMoveH">移动</li>
191 <!-- <li v-show="rightClickFlag == 'h'" @click="handleDeleteH">删除</li> -->
192 <li v-show="rightClickFlag == 'h'" @click="handleSyczh">实预测转换</li> 188 <li v-show="rightClickFlag == 'h'" @click="handleSyczh">实预测转换</li>
193 <li v-show="rightClickFlag == 'c'" @click="handleAddC('up')"> 189 <li v-show="rightClickFlag == 'c'" @click="handleAddC('up')">
194 向上添加层 190 向上添加层
...@@ -210,8 +206,7 @@ ...@@ -210,8 +206,7 @@
210 206
211 </ul> 207 </ul>
212 <!-- 层操作弹框 --> 208 <!-- 层操作弹框 -->
213 <el-dialog v-dialogDrag :close-on-click-modal="false" :title="addCData.title" :visible.sync="addCVisible" 209 <el-dialog :close-on-click-modal="false" :title="addCData.title" :visible.sync="addCVisible" width="50%">
214 width="50%">
215 <el-form :model="addCData"> 210 <el-form :model="addCData">
216 <el-form-item label="层号" :label-width="formLabelWidth"> 211 <el-form-item label="层号" :label-width="formLabelWidth">
217 <el-input disabled v-model="addCData.sjc" autocomplete="off"></el-input> 212 <el-input disabled v-model="addCData.sjc" autocomplete="off"></el-input>
...@@ -229,7 +224,7 @@ ...@@ -229,7 +224,7 @@
229 </div> 224 </div>
230 </el-dialog> 225 </el-dialog>
231 <!-- 户分割弹框 --> 226 <!-- 户分割弹框 -->
232 <el-dialog v-dialogDrag :close-on-click-modal="false" title="户分割" :visible.sync="hfgDialogVisible" width="800px"> 227 <el-dialog :close-on-click-modal="false" title="户分割" :visible.sync="hfgDialogVisible" width="800px">
233 <el-form :model="fgData"> 228 <el-form :model="fgData">
234 <el-form-item label="分割户数" required="" :label-width="formLabelWidth"> 229 <el-form-item label="分割户数" required="" :label-width="formLabelWidth">
235 <el-input :disabled="fgData.fgfx != 0" v-model="fgData.fghs" autocomplete="off"></el-input> 230 <el-input :disabled="fgData.fgfx != 0" v-model="fgData.fghs" autocomplete="off"></el-input>
...@@ -243,8 +238,7 @@ ...@@ -243,8 +238,7 @@
243 <move-h :hbsm="chData.bsm" @close="moveHClose" :move-hvisible="moveHvisible" :type="scyclx" 238 <move-h :hbsm="chData.bsm" @close="moveHClose" :move-hvisible="moveHvisible" :type="scyclx"
244 @loading="loadingData($store.state.zrzbsm, $parent.scyclx)"></move-h> 239 @loading="loadingData($store.state.zrzbsm, $parent.scyclx)"></move-h>
245 <!-- 双击户的弹出框 --> 240 <!-- 双击户的弹出框 -->
246 <el-dialog v-dialogDrag :close-on-click-modal="false" title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" 241 <el-dialog :close-on-click-modal="false" title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="80%">
247 width="80%">
248 <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx" :lpbParent="lpbParent"></hbj> 242 <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx" :lpbParent="lpbParent"></hbj>
249 </el-dialog> 243 </el-dialog>
250 <!-- 户重新落宗 --> 244 <!-- 户重新落宗 -->
...@@ -254,6 +248,7 @@ ...@@ -254,6 +248,7 @@
254 <script> 248 <script>
255 import moveH from "@/components/moveH/moveH"; 249 import moveH from "@/components/moveH/moveH";
256 import HCxlz from "@/components/hCxlz/hCxlz"; 250 import HCxlz from "@/components/hCxlz/hCxlz";
251 import { getLpb } from '@/api/lpb'
257 // import { getLpb, insertUpDownC, deleteCByBsm } from "@api/lpb"; 252 // import { getLpb, insertUpDownC, deleteCByBsm } from "@api/lpb";
258 // import { hhb, hfg } from "@api/h"; 253 // import { hhb, hfg } from "@api/h";
259 import { Message } from 'element-ui'; 254 import { Message } from 'element-ui';
...@@ -332,10 +327,9 @@ export default { ...@@ -332,10 +327,9 @@ export default {
332 zrzChecked: false, //自然幢全选 327 zrzChecked: false, //自然幢全选
333 }; 328 };
334 }, 329 },
335 created () { },
336 mounted () { 330 mounted () {
337 // this.getLpb(this.zrzbsm, "0"); 331 this.getLpb('9434bdb243ba342cc6c043065fc9e480');
338 // this.getLpb(this.zrzbsm, "1"); 332 // this.getLpb(this.zrzbsm);
339 setTimeout(() => { 333 setTimeout(() => {
340 //让滚动条滚动至最下面 -6是横向滚动条的高度 334 //让滚动条滚动至最下面 -6是横向滚动条的高度
341 this.$refs.lpbContent.scrollTop = 335 this.$refs.lpbContent.scrollTop =
...@@ -353,24 +347,23 @@ export default { ...@@ -353,24 +347,23 @@ export default {
353 getLpb (zrzbsm, scyclx, actual) { 347 getLpb (zrzbsm, scyclx, actual) {
354 getLpb(zrzbsm, scyclx).then((res) => { 348 getLpb(zrzbsm, scyclx).then((res) => {
355 if (res.code == 200) { 349 if (res.code == 200) {
356 this.$parent.lpbloading = false;
357 res.result.ljzs = res.result.ljzs 350 res.result.ljzs = res.result.ljzs
358 .sort(this.compare("place")) 351 .sort(this.compare("place"))
359 .reverse(); 352 .reverse();
360 // this.lpbData = res.result == null ? this.lpbData : res.result; 353 this.lpbData = res.result == null ? this.lpbData : res.result;
361 //给实预测楼盘表对象赋值,默认加载预测楼盘表数据 354 //给实预测楼盘表对象赋值,默认加载预测楼盘表数据
362 if (scyclx == 0) { 355 // if (scyclx == 0) {
363 this.yclpbData = res.result == null ? this.yclpbData : res.result; 356 // this.yclpbData = res.result == null ? this.yclpbData : res.result;
364 this.lpbData = this.yclpbData; 357 // this.lpbData = this.yclpbData;
365 } else { 358 // } else {
366 this.sclpbData = res.result == null ? this.sclpbData : res.result; 359 // this.sclpbData = res.result == null ? this.sclpbData : res.result;
367 } 360 // }
368 if (actual) { 361 // if (actual) {
369 this.lpbData = res.result == null ? this.yclpbData : res.result; 362 // this.lpbData = res.result == null ? this.yclpbData : res.result;
370 } 363 // }
371 if (this.lpbParent == 'isFwsxbg') { 364 // if (this.lpbParent == 'isFwsxbg') {
372 this.lpbData = this.$parent.scyclx == '0' ? this.yclpbData : this.sclpbData; 365 // this.lpbData = this.$parent.scyclx == '0' ? this.yclpbData : this.sclpbData;
373 } 366 // }
374 this.$nextTick(() => { 367 this.$nextTick(() => {
375 //渲染楼盘表 368 //渲染楼盘表
376 this.dataChange(); 369 this.dataChange();
...@@ -1028,11 +1021,9 @@ export default { ...@@ -1028,11 +1021,9 @@ export default {
1028 overflow: hidden; 1021 overflow: hidden;
1029 1022
1030 .ljz { 1023 .ljz {
1031 // margin-bottom: 20px;
1032 display: table; 1024 display: table;
1033 margin-top: 30px;
1034 1025
1035 // position: relative; 1026 // margin-top: 30px;
1036 .ljz-zdy-wrap { 1027 .ljz-zdy-wrap {
1037 width: auto; 1028 width: auto;
1038 display: table; 1029 display: table;
......
...@@ -113,7 +113,6 @@ export default { ...@@ -113,7 +113,6 @@ export default {
113 } 113 }
114 }, 114 },
115 handleTabClick () { 115 handleTabClick () {
116
117 this.pageData.currentPage = 1; 116 this.pageData.currentPage = 1;
118 this.fetchData(); 117 this.fetchData();
119 }, 118 },
...@@ -161,6 +160,17 @@ export default { ...@@ -161,6 +160,17 @@ export default {
161 }, 160 },
162 handleSelectionChange (val) { 161 handleSelectionChange (val) {
163 this.bdcdysz = val 162 this.bdcdysz = val
163 },
164 handleLpbClick (item) {
165 console.log(item, 'eeeeeeeeeeeeee');
166 this.$popup('楼盘表', 'components/bjlp/index', {
167 width: '85%',
168 formData: {
169 bsm: item.bsm
170 },
171 cancel: function () { }, //取消事件的回调
172 confirm: function () { }, //确认事件的回调
173 })
164 } 174 }
165 } 175 }
166 } 176 }
......
...@@ -73,7 +73,7 @@ class data extends filter { ...@@ -73,7 +73,7 @@ class data extends filter {
73 render: (h, scope) => { 73 render: (h, scope) => {
74 return ( 74 return (
75 <div> 75 <div>
76 {(scope.row.tdxzmc)+(' / ')+(scope.row.tdxzmc)} 76 {(scope.row.tdxzmc) + (' / ') + (scope.row.tdxzmc)}
77 </div> 77 </div>
78 ) 78 )
79 } 79 }
...@@ -83,7 +83,7 @@ class data extends filter { ...@@ -83,7 +83,7 @@ class data extends filter {
83 render: (h, scope) => { 83 render: (h, scope) => {
84 return ( 84 return (
85 <div> 85 <div>
86 {(scope.row.zdmj)+(' / ')+(scope.row.scjzmj)} 86 {(scope.row.zdmj) + (' / ') + (scope.row.scjzmj)}
87 </div> 87 </div>
88 ) 88 )
89 } 89 }
...@@ -106,6 +106,15 @@ class data extends filter { ...@@ -106,6 +106,15 @@ class data extends filter {
106 prop: "zl", 106 prop: "zl",
107 label: "自然幢坐落", 107 label: "自然幢坐落",
108 }, 108 },
109 {
110 label: '操作',
111 width: '80',
112 align: 'center',
113 fixed: 'right',
114 render: (h, scope) => {
115 return <el-button type="text" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button>
116 }
117 }
109 ] 118 ]
110 } 119 }
111 120
......
...@@ -130,6 +130,7 @@ export default { ...@@ -130,6 +130,7 @@ export default {
130 this.btnDisabled = false 130 this.btnDisabled = false
131 Cookies.set("bsmSqyw", item.bsmSqyw) 131 Cookies.set("bsmSqyw", item.bsmSqyw)
132 this.djywbm = item.djywbm 132 this.djywbm = item.djywbm
133 console.log(this.djywbm, 'this.djywbm');
133 } 134 }
134 }, 135 },
135 handleList (list, obj) { 136 handleList (list, obj) {
......
...@@ -110,15 +110,10 @@ export default { ...@@ -110,15 +110,10 @@ export default {
110 // 高级查询 110 // 高级查询
111 moreQueryClick () { }, 111 moreQueryClick () { },
112 openDialog (scroll) { 112 openDialog (scroll) {
113 this.$popup({ 113 this.$popup('登记簿详情', 'registerBook/djbFrame', {
114 titleStyle: "left",
115 title: "登记簿详情", // 弹窗标题
116 editItem: "registerBook/djbFrame", // 弹窗内容
117 formData: scroll, 114 formData: scroll,
118 width: "1220px", 115 width: "1220px",
119 height: "790px", 116 height: "790px",
120 // cancelText: '取消摆烂', // 右边按钮文本
121 // confirmText: '确定点击', //左边按钮文本
122 cancel: () => { 117 cancel: () => {
123 console.log("取消回调"); 118 console.log("取消回调");
124 }, 119 },
...@@ -127,8 +122,17 @@ export default { ...@@ -127,8 +122,17 @@ export default {
127 }, 122 },
128 }); 123 });
129 }, 124 },
130 }, 125 handleLpbClick (item) {
131 }; 126 this.$popup('楼盘表', 'components/bjlp/index', {
127 width: '90%',
128 height: "90%",
129 formData: {
130 bsm: ''
131 }
132 })
133 }
134 }
135 }
132 </script> 136 </script>
133 <style scoped lang="scss"> 137 <style scoped lang="scss">
134 @import "~@/styles/public.scss"; 138 @import "~@/styles/public.scss";
......
...@@ -102,7 +102,7 @@ class data extends filter { ...@@ -102,7 +102,7 @@ class data extends filter {
102 return ( 102 return (
103 <div> 103 <div>
104 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>登记薄</el-button> 104 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>登记薄</el-button>
105 <el-button type="text" icon="el-icon-film" onClick={() => { vm.openDialog(scope.row) }}>楼盘表</el-button> 105 <el-button type="text" icon="el-icon-film" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button>
106 </div> 106 </div>
107 ) 107 )
108 } 108 }
......