163fb101 by yangwei

楼盘表修改

1 parent 4f8e246d
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-19 09:50:51 4 * @LastEditTime: 2023-07-21 11:23:22
5 --> 5 -->
6 <template> 6 <template>
7 <div class="edit"> 7 <div class="edit">
...@@ -16,14 +16,16 @@ ...@@ -16,14 +16,16 @@
16 :style="{ height: lpbContentHight + 'px' }" 16 :style="{ height: lpbContentHight + 'px' }"
17 v-show="bjztFlag"> 17 v-show="bjztFlag">
18 <!-- 楼盘表主体 --> 18 <!-- 楼盘表主体 -->
19 <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }"> 19 <div class="lp-overview" :style="{ width: lpbContentwidth + 'px','margin-right': formData.onlyShow ? '10px' : 0 }">
20 <lpbContent 20 <lpbContent
21 ref="lpbContent" 21 ref="lpbContent"
22 :zrzbsm="formData.bsm" 22 :zrzbsm="formData.bsm"
23 :onlyShow="formData.onlyShow"
24 :unitData="formData.unitData"
23 :key="time"></lpbContent> 25 :key="time"></lpbContent>
24 </div> 26 </div>
25 <!-- 右侧图例 --> 27 <!-- 右侧图例 -->
26 <div class="lp-legend"> 28 <div class="lp-legend" v-if="formData.onlyShow">
27 <div class="handleCol"> 29 <div class="handleCol">
28 <div class="btn" @click="legendToggle"> 30 <div class="btn" @click="legendToggle">
29 <i v-show="!legendToggleFlag" class="el-icon-d-arrow-left"></i> 31 <i v-show="!legendToggleFlag" class="el-icon-d-arrow-left"></i>
...@@ -182,7 +184,9 @@ ...@@ -182,7 +184,9 @@
182 props: { 184 props: {
183 formData: { 185 formData: {
184 type: Object, 186 type: Object,
185 default: {}, 187 default: () => {
188 return {}
189 }
186 }, 190 },
187 }, 191 },
188 components: { 192 components: {
...@@ -404,30 +408,30 @@ ...@@ -404,30 +408,30 @@
404 } 408 }
405 } 409 }
406 }); 410 });
407 getLpbQsxtj(this.formData.bsm).then((res) => { 411 // getLpbQsxtj(this.formData.bsm).then((res) => {
408 if (res.code === 200) { 412 // if (res.code === 200) {
409 this.qsxList = [ 413 // this.qsxList = [
410 { 414 // {
411 name: "坐落", 415 // name: "坐落",
412 bsms: res.result.zl.bsms, 416 // bsms: res.result.zl.bsms,
413 color: "#2591FD", 417 // color: "#2591FD",
414 ts: res.result.zl.bsms.length, 418 // ts: res.result.zl.bsms.length,
415 }, 419 // },
416 { 420 // {
417 name: "分层分户图", 421 // name: "分层分户图",
418 bsms: res.result.fcfht.bsms, 422 // bsms: res.result.fcfht.bsms,
419 color: "#2591FD", 423 // color: "#2591FD",
420 ts: res.result.fcfht.bsms.length, 424 // ts: res.result.fcfht.bsms.length,
421 }, 425 // },
422 { 426 // {
423 name: "室号", 427 // name: "室号",
424 bsms: res.result.shbw.bsms, 428 // bsms: res.result.shbw.bsms,
425 color: "#2591FD", 429 // color: "#2591FD",
426 ts: res.result.shbw.bsms.length, 430 // ts: res.result.shbw.bsms.length,
427 }, 431 // },
428 ]; 432 // ];
429 } 433 // }
430 }); 434 // });
431 }, 435 },
432 }, 436 },
433 computed: {}, 437 computed: {},
...@@ -488,7 +492,6 @@ ...@@ -488,7 +492,6 @@
488 border: 1px solid rgb(236, 236, 236); 492 border: 1px solid rgb(236, 236, 236);
489 border-top: 0; 493 border-top: 0;
490 border-bottom: 0; 494 border-bottom: 0;
491 margin-right: 10px;
492 box-sizing: border-box; 495 box-sizing: border-box;
493 } 496 }
494 497
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: yangwei 2 * @Author: yangwei
3 * @Date: 2023-02-28 15:47:12 3 * @Date: 2023-02-28 15:47:12
4 * @LastEditors: yangwei 4 * @LastEditors: yangwei
5 * @LastEditTime: 2023-06-16 16:14:51 5 * @LastEditTime: 2023-07-21 14:39:12
6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue 6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue
7 * @Description: 7 * @Description:
8 * 8 *
...@@ -86,7 +86,8 @@ export default { ...@@ -86,7 +86,8 @@ export default {
86 openMenu:{value:'openMenu',default:null}, 86 openMenu:{value:'openMenu',default:null},
87 selectAll:{value:'selectAll',default:null}, 87 selectAll:{value:'selectAll',default:null},
88 changeChoosedObj:{value:'changeChoosedObj',default:null}, 88 changeChoosedObj:{value:'changeChoosedObj',default:null},
89 clearChangeChoosedObj:{value:'clearChangeChoosedObj',default:null} 89 clearChangeChoosedObj:{value:'clearChangeChoosedObj',default:null},
90 getBsmList:{value:'getBsmList',default:null}
90 }, 91 },
91 props: { 92 props: {
92 ch: { 93 ch: {
...@@ -102,15 +103,31 @@ export default { ...@@ -102,15 +103,31 @@ export default {
102 hbsmList: [], 103 hbsmList: [],
103 //选中层bsm合集 104 //选中层bsm合集
104 cbsmList: [], 105 cbsmList: [],
105 //选中户qszt集合
106 hqsztList: [],
107 //区分单双击事件的定时器 106 //区分单双击事件的定时器
108 time: null, 107 time: null,
109 // 边框颜色 108 // 边框颜色
110 borderColor:'rgb(230, 230, 230)' 109 borderColor:'rgb(230, 230, 230)',
110 // 申请单元列表数据
111 unitIdList:[]
111 }; 112 };
112 }, 113 },
113 mounted() {}, 114 mounted() {
115 // 根据申请单元列表数据处理选中户
116 if(window.unitData.length){
117 window.unitData.forEach(e => {
118 this.unitIdList.push(e.bdcdyid)
119 })
120 this.ch.forEach((c) => {
121 c.hs.forEach((h) => {
122 if (h.dyhbsm.indexOf(this.unitIdList) > -1) {
123 h.select = true;
124 // 使用hbsmList时,需要去重
125 this.hbsmList.push(h.bsm)
126 }
127 });
128 });
129 }
130 },
114 methods: { 131 methods: {
115 // 层选中事件 132 // 层选中事件
116 /** 133 /**
...@@ -120,17 +137,24 @@ export default { ...@@ -120,17 +137,24 @@ export default {
120 * @author: renchao 137 * @author: renchao
121 */ 138 */
122 handleClickC(e, item) { 139 handleClickC(e, item) {
123 //判断点击的层是否选中 140 // 判断点击的层是否选中
124 // if (e.target.className.indexOf("tdSelect") == -1) { 141 if (e.target.className.indexOf("tdSelect") == -1) {
125 // //未选中→选中 142 //未选中→选中
126 // e.target.className += " tdSelect"; //加边框 143 item.hs.forEach((h) => {
127 // this.cbsmList.push(item.bsm); 144 //加边框
128 // } else { 145 e.target.className += " tdSelect";
129 // //选中→未选中 146 h.select = true;
130 // e.target.className = "floor"; 147 // 使用hbsmList时,需要去重
131 // this.cbsmList = this.cbsmList.filter((i) => i != item.bsm); 148 this.hbsmList.push(h.bsm)
132 // } 149 });
133 // this.$parent.getCbsm(this.cbsmList); 150 } else {
151 //选中→未选中
152 item.hs.forEach((h) => {
153 e.target.className = "floor";
154 h.select = false;
155 this.hbsmList = this.hbsmList.filter((i) => i != h.bsm);
156 });
157 }
134 }, 158 },
135 //户单击事件 159 //户单击事件
136 /** 160 /**
...@@ -141,6 +165,26 @@ export default { ...@@ -141,6 +165,26 @@ export default {
141 * @author: renchao 165 * @author: renchao
142 */ 166 */
143 handleClickH(e, bsm, hs) { 167 handleClickH(e, bsm, hs) {
168 let self = this;
169 // 开启延时器,200ms的间隔区分单击和双击,解决双击时执行两次单击事件
170 clearTimeout(self.time);
171 self.time = setTimeout(() => {
172 // this.closeMenu();
173 //判断点击的户是否选中
174 if (!hs.select) {
175 //未选中→选中
176 //加边框
177 hs.select = true;
178 // 将户bsm放进hbsmList
179 self.hbsmList.push(bsm);
180 } else {
181 //选中→未选中
182 hs.select = false;
183 self.hbsmList = self.hbsmList.filter((i) => i != bsm);
184 }
185 //更新当前选中户数据
186 this.$forceUpdate();
187 }, 200);
144 }, 188 },
145 // 户单元状态点击事件 189 // 户单元状态点击事件
146 /** 190 /**
...@@ -151,7 +195,7 @@ export default { ...@@ -151,7 +195,7 @@ export default {
151 * @author: renchao 195 * @author: renchao
152 */ 196 */
153 hDyztClick(e, bsm, hs) { 197 hDyztClick(e, bsm, hs) {
154 // this.handleClickH(e.target.parentNode, bsm, hs); 198 this.handleClickH(e.target.parentNode, bsm, hs);
155 }, 199 },
156 //户双击事件 200 //户双击事件
157 /** 201 /**
...@@ -191,21 +235,51 @@ export default { ...@@ -191,21 +235,51 @@ export default {
191 // item.style.border = `1px solid ${this.borderColor}` 235 // item.style.border = `1px solid ${this.borderColor}`
192 }); 236 });
193 }, 237 },
238 //清除选中
239 clearChoosed(){
240 //清除选中户
241 this.zdySelectAll(false)
242 //清除选中层
243 this.cbsmList = [];
244 this.$refs.cBsm && this.$refs.cBsm.forEach((item)=>{
245 item.className = 'floor'
246 })
247 },
194 }, 248 },
195 watch: { 249 watch: {
196 selectAll: { 250 selectAll: {
197 handler(val) { 251 handler(val) {
198 this.zdySelectAll(val.selectAll); 252 this.zdySelectAll(val.selectAll);
253 val.cancelChoosed && this.clearChoosed()
199 }, 254 },
200 immediate: true, 255 immediate: true,
201 deep: true, 256 deep: true,
202 }, 257 },
258 hbsmList(val){
259 let list = []
260 val.length && val.forEach((i)=>{
261 this.ch.forEach((c) => {
262 c.hs.forEach((h) => {
263 if (i == h.bsm) {
264 list.push(
265 {
266 bdcdyh:h.bdcdyh,
267 bsm:h.bsm,
268 dyhbsm:h.dyhbsm
269 }
270 )
271 }
272 });
273 });
274 })
275 this.getBsmList(list)
276 },
203 changeChoosedObj: { 277 changeChoosedObj: {
204 handler(val) { 278 handler(val) {
205 //清除选中户
206 this.borderColor = 'rgb(230, 230, 230)'; 279 this.borderColor = 'rgb(230, 230, 230)';
207 this.zdySelectAll(false,true)
208 if (val.bsms.length) { 280 if (val.bsms.length) {
281 //清除选中户
282 this.zdySelectAll(false,true)
209 this.$refs.hBsm.forEach((item) => { 283 this.$refs.hBsm.forEach((item) => {
210 val.bsms.forEach((i,ind) => { 284 val.bsms.forEach((i,ind) => {
211 if (item.dataset.bsm == i) { 285 if (item.dataset.bsm == i) {
...@@ -214,19 +288,17 @@ export default { ...@@ -214,19 +288,17 @@ export default {
214 window.lpbContent.$refs.lpbContent.scrollTop = item.offsetTop; 288 window.lpbContent.$refs.lpbContent.scrollTop = item.offsetTop;
215 window.lpbContent.$refs.lpbContent.scrollLeft = item.offsetLeft; 289 window.lpbContent.$refs.lpbContent.scrollLeft = item.offsetLeft;
216 } 290 }
217 item.style.border = '1px solid '+ val.color; 291 // item.style.border = '1px solid '+ val.color;
218 // item.style.backgroundColor = val.color; 292 // 背景色高亮
293 item.style.backgroundColor = val.color;
219 } 294 }
220 }); 295 });
221 }); 296 });
222 }else{
223 this.borderColor = 'rgb(230, 230, 230)'
224 } 297 }
225
226 }, 298 },
227 immediate: true, 299 immediate: true,
228 deep: true, 300 deep: true,
229 }, 301 }
230 }, 302 },
231 }; 303 };
232 </script> 304 </script>
......
1 <template> 1 <template>
2 <div class="lpbContent-wrap" ref="lpbContentWrap"> 2 <div class="lpbContent-wrap" ref="lpbContentWrap">
3 <div class="lpbContent" ref="lpbContent"> 3 <div class="lpbContent" ref="lpbContent" :style="{ 'height': 'calc(100% - '+ lpbContentHeight +'px)'}">
4 <!-- 纵向倒序排列 逻辑幢位于独立幢单元和独立层户的上方 --> 4 <!-- 纵向倒序排列 逻辑幢位于独立幢单元和独立层户的上方 -->
5 <div class="ch-zdy-wrap"> 5 <div class="ch-zdy-wrap">
6 <!-- 幢单元 --> 6 <!-- 幢单元 -->
7 <zdy-cpn v-if="lpbData.zdys.length" :zdys="lpbData.zdys" /> 7 <zdy-cpn v-if="lpbData.zdys.length" :zdys="lpbData.zdys" :onlyShow="onlyShow"/>
8 <!-- 独立层户 --> 8 <!-- 独立层户 -->
9 <ch-cpn v-if="lpbData.cs.length" :ch="lpbData.cs" /> 9 <ch-cpn v-if="lpbData.cs.length" :ch="lpbData.cs" />
10 </div> 10 </div>
11 <!-- 逻辑幢 --> 11 <!-- 逻辑幢 -->
12 <ljzs-cpn v-if="lpbData.ljzs.length" :ljzs="lpbData.ljzs" /> 12 <ljzs-cpn v-if="lpbData.ljzs.length" :ljzs="lpbData.ljzs" :onlyShow="onlyShow"/>
13 </div> 13 </div>
14 <!-- 自然幢名称 --> 14 <!-- 自然幢名称 -->
15 <p class="lpb-xmmc"> 15 <p class="lpb-xmmc" :style="{ 'border-bottom': onlyShow ? 0 : '1px solid #e6e6e6'}">
16 <!-- <el-checkbox @change="zdySelectAll($event)">{{ 16 <el-checkbox @change="zdySelectAll($event)" v-if="!onlyShow">{{
17 lpbData.xmmc 17 lpbData.xmmc
18 }}</el-checkbox> --> 18 }}</el-checkbox>
19 {{lpbData.xmmc}} 19 <span v-else>{{lpbData.xmmc}}</span>
20 </p> 20 </p>
21 <el-button type="primary" class="save-btn" v-if="!onlyShow" @click="saveLpb">保存</el-button>
21 <!-- 右键菜单 --> 22 <!-- 右键菜单 -->
22 <ul 23 <ul
23 v-show="lpbChVisible" 24 v-show="lpbChVisible"
24 :style="{ left: lpbChLeft + 'px', top: lpbChTop + 'px' }" 25 :style="{ left: lpbChLeft + 'px', top: lpbChTop + 'px' }"
25 class="contextmenu" 26 class="contextmenu"
26 > 27 >
27 <li @click="menuClick">菜单一</li> 28 <li @click="menuClick">菜单一</li>
...@@ -40,7 +41,8 @@ export default { ...@@ -40,7 +41,8 @@ export default {
40 openMenu: this.openMenu, 41 openMenu: this.openMenu,
41 selectAll: this.selectAllObj, 42 selectAll: this.selectAllObj,
42 changeChoosedObj:this.changeChoosedObj, 43 changeChoosedObj:this.changeChoosedObj,
43 clearChangeChoosedObj:this.clearChangeChoosedObj 44 clearChangeChoosedObj:this.clearChangeChoosedObj,
45 getBsmList:this.getBsmList
44 }; 46 };
45 }, 47 },
46 name: "", 48 name: "",
...@@ -58,6 +60,10 @@ export default { ...@@ -58,6 +60,10 @@ export default {
58 type: Boolean, 60 type: Boolean,
59 default: true, 61 default: true,
60 }, 62 },
63 onlyShow:{
64 type: Boolean,
65 default: true,
66 }
61 }, 67 },
62 data() { 68 data() {
63 return { 69 return {
...@@ -79,7 +85,9 @@ export default { ...@@ -79,7 +85,9 @@ export default {
79 changeChoosedObj:{ 85 changeChoosedObj:{
80 bsms:[], 86 bsms:[],
81 color:'' 87 color:''
82 } 88 },
89 // 选中户bsm合集
90 bsmList:[]
83 }; 91 };
84 }, 92 },
85 mounted() { 93 mounted() {
...@@ -87,6 +95,24 @@ export default { ...@@ -87,6 +95,24 @@ export default {
87 window.lpbContent = this; 95 window.lpbContent = this;
88 }, 96 },
89 methods: { 97 methods: {
98 /**
99 * @description: 获取当前楼盘表选中户信息
100 * @param {Array} bsmList
101 * @author: renchao
102 */
103 getBsmList(bsmList){
104 this.bsmList = bsmList;
105 },
106 /**
107 * @description: 保存当前楼盘表
108 * @author: renchao
109 */
110 saveLpb(){
111 // todo 调用保存接口 传入参数待定
112 console.log(this.bsmList,'this.bsmList');
113 // 保存成功后关闭弹框
114 this.$popupCacel()
115 },
90 // 改变户选中状态 116 // 改变户选中状态
91 /** 117 /**
92 * @description: 改变户选中状态 118 * @description: 改变户选中状态
...@@ -125,8 +151,8 @@ export default { ...@@ -125,8 +151,8 @@ export default {
125 getLpb(zrzbsm, scyclx, actual) { 151 getLpb(zrzbsm, scyclx, actual) {
126 getLpb(zrzbsm, scyclx).then((res) => { 152 getLpb(zrzbsm, scyclx).then((res) => {
127 if (res.code == 200) { 153 if (res.code == 200) {
128 res.result.ljzs = res.result.ljzs.sort(this.compare("place")); 154 res.result.lpb.ljzs = res.result.lpb.ljzs.sort(this.compare("place"));
129 this.lpbData = res.result == null ? this.lpbData : res.result; 155 this.lpbData = res.result.lpb == null ? this.lpbData : res.result.lpb;
130 // this.$nextTick(() => { 156 // this.$nextTick(() => {
131 // //渲染楼盘表 157 // //渲染楼盘表
132 // this.dataChange(); 158 // this.dataChange();
...@@ -182,6 +208,11 @@ export default { ...@@ -182,6 +208,11 @@ export default {
182 }; 208 };
183 }, 209 },
184 }, 210 },
211 computed:{
212 lpbContentHeight(){
213 return this.onlyShow ? 36 : 76
214 }
215 },
185 watch: { 216 watch: {
186 //户右键菜单显示时,监听到鼠标点击时关闭户右键菜单 217 //户右键菜单显示时,监听到鼠标点击时关闭户右键菜单
187 lpbChVisible(value) { 218 lpbChVisible(value) {
...@@ -190,7 +221,7 @@ export default { ...@@ -190,7 +221,7 @@ export default {
190 } else { 221 } else {
191 document.body.removeEventListener("click", this.closeMenu); 222 document.body.removeEventListener("click", this.closeMenu);
192 } 223 }
193 }, 224 }
194 }, 225 },
195 }; 226 };
196 </script> 227 </script>
...@@ -201,7 +232,6 @@ export default { ...@@ -201,7 +232,6 @@ export default {
201 overflow: hidden; 232 overflow: hidden;
202 .lpbContent { 233 .lpbContent {
203 width: 100%; 234 width: 100%;
204 height: calc(100% - 36px);
205 position: relative; 235 position: relative;
206 overflow: scroll; 236 overflow: scroll;
207 -webkit-user-select: none; 237 -webkit-user-select: none;
...@@ -221,6 +251,10 @@ export default { ...@@ -221,6 +251,10 @@ export default {
221 border: 0; 251 border: 0;
222 border-top: 1px solid #e6e6e6; 252 border-top: 1px solid #e6e6e6;
223 } 253 }
254 .save-btn{
255 display: block;
256 margin: 5px auto;
257 }
224 // 自定义右键菜单样式 258 // 自定义右键菜单样式
225 .contextmenu { 259 .contextmenu {
226 margin: 0; 260 margin: 0;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: yangwei 2 * @Author: yangwei
3 * @Date: 2023-02-28 17:25:45 3 * @Date: 2023-02-28 17:25:45
4 * @LastEditors: yangwei 4 * @LastEditors: yangwei
5 * @LastEditTime: 2023-07-11 10:05:55 5 * @LastEditTime: 2023-07-21 14:59:46
6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ljzs.vue 6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ljzs.vue
7 * @Description: 7 * @Description:
8 * 8 *
...@@ -20,11 +20,13 @@ ...@@ -20,11 +20,13 @@
20 " 20 "
21 > 21 >
22 <!-- 逻辑幢名称 --> 22 <!-- 逻辑幢名称 -->
23 <p class="lpb-xmmc ljz-xmmc">{{ ljz.ljzmc }}</p> 23 <p class="lpb-xmmc ljz-xmmc">
24 <span>{{ljz.ljzmc}}</span>
25 </p>
24 <!-- 独立层户 --> 26 <!-- 独立层户 -->
25 <ch-cpn v-if="ljz.cs.length" :ch="ljz.cs" /> 27 <ch-cpn v-if="ljz.cs.length" :ch="ljz.cs" />
26 <!-- 幢单元 --> 28 <!-- 幢单元 -->
27 <zdy-cpn v-if="ljz.zdys.length" :zdys="ljz.zdys" /> 29 <zdy-cpn v-if="ljz.zdys.length" :zdys="ljz.zdys" :onlyShow="onlyShow"/>
28 </div> 30 </div>
29 </div> 31 </div>
30 </div> 32 </div>
...@@ -40,7 +42,7 @@ ...@@ -40,7 +42,7 @@
40 <!-- 独立层户 --> 42 <!-- 独立层户 -->
41 <ch-cpn v-if="ljzarr[0].cs.length" :ch="ljzarr[0].cs" /> 43 <ch-cpn v-if="ljzarr[0].cs.length" :ch="ljzarr[0].cs" />
42 <!-- 幢单元 --> 44 <!-- 幢单元 -->
43 <zdy-cpn v-if="ljzarr[0].zdys.length" :zdys="ljzarr[0].zdys" /> 45 <zdy-cpn v-if="ljzarr[0].zdys.length" :zdys="ljzarr[0].zdys" :onlyShow="onlyShow"/>
44 </div> 46 </div>
45 </div> 47 </div>
46 </div> 48 </div>
...@@ -59,12 +61,15 @@ export default { ...@@ -59,12 +61,15 @@ export default {
59 return []; 61 return [];
60 }, 62 },
61 }, 63 },
64 onlyShow:{
65 type: Boolean,
66 default: true,
67 }
62 }, 68 },
63 data() { 69 data() {
64 return { 70 return {
65 }; 71 };
66 }, 72 },
67
68 mounted() { 73 mounted() {
69 console.log(this.ljzsCptd); 74 console.log(this.ljzsCptd);
70 }, 75 },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: yangwei 2 * @Author: yangwei
3 * @Date: 2023-02-28 16:29:04 3 * @Date: 2023-02-28 16:29:04
4 * @LastEditors: yangwei 4 * @LastEditors: yangwei
5 * @LastEditTime: 2023-06-08 13:58:58 5 * @LastEditTime: 2023-07-21 14:55:30
6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue 6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue
7 * @Description: 7 * @Description:
8 * 8 *
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
13 <div v-for="zdy in realZdys" :key="zdy.bsm"> 13 <div v-for="zdy in realZdys" :key="zdy.bsm">
14 <!-- 幢单元名称 --> 14 <!-- 幢单元名称 -->
15 <p class="lpb-xmmc"> 15 <p class="lpb-xmmc">
16 <!-- <el-checkbox @change="zdySelectAll($event,zdy.bsm)">{{ 16 <el-checkbox @change="zdySelectAll($event,zdy.bsm)" v-if="!onlyShow">{{
17 zdy.zdymc 17 zdy.zdymc
18 }}</el-checkbox> --> 18 }}</el-checkbox>
19 {{zdy.zdymc}} 19 <span v-else>aaa{{zdy.zdymc}}</span>
20 </p> 20 </p>
21 <!-- 每个幢单元下的层户 --> 21 <!-- 每个幢单元下的层户 -->
22 <ch-cpn :ref="zdy.bsm" :ch="zdy.cs" /> 22 <ch-cpn :ref="zdy.bsm" :ch="zdy.cs" />
...@@ -36,6 +36,10 @@ export default { ...@@ -36,6 +36,10 @@ export default {
36 return []; 36 return [];
37 }, 37 },
38 }, 38 },
39 onlyShow:{
40 type: Boolean,
41 default: true,
42 }
39 }, 43 },
40 data() { 44 data() {
41 return {}; 45 return {};
......
1 <!-- 1 <!--
2 * @Description: workFrame左侧菜单列表-普通 2 * @Description: workFrame左侧菜单列表-普通
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-17 16:20:37 4 * @LastEditTime: 2023-07-21 10:15:11
5 --> 5 -->
6 <template> 6 <template>
7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> 7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
...@@ -88,6 +88,7 @@ ...@@ -88,6 +88,7 @@
88 leftMenu(formdata).then((res) => { 88 leftMenu(formdata).then((res) => {
89 if (res.code === 200 && res.result) { 89 if (res.code === 200 && res.result) {
90 this.unitData = res.result; 90 this.unitData = res.result;
91 window.unitData = res.result;
91 this.currentSelectProps = res.result[0]; 92 this.currentSelectProps = res.result[0];
92 this.$emit('getCurrentSelectProps', this.currentSelectProps); 93 this.$emit('getCurrentSelectProps', this.currentSelectProps);
93 this.judgeBatchShow(); 94 this.judgeBatchShow();
...@@ -164,6 +165,7 @@ ...@@ -164,6 +165,7 @@
164 }, 165 },
165 //批量按钮点击事件 166 //批量按钮点击事件
166 batchUnitClick () { 167 batchUnitClick () {
168 debugger
167 this.currentSelectProps.batchOperation = true; 169 this.currentSelectProps.batchOperation = true;
168 this.activeIndex = "-1"; 170 this.activeIndex = "-1";
169 this.$parent.stepForm(); 171 this.$parent.stepForm();
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-17 14:20:17 4 * @LastEditTime: 2023-07-21 14:04:56
5 */ 5 */
6 import { getPrintTemplateByCode } from "@/api/print"; 6 import { getPrintTemplateByCode } from "@/api/print";
7 import { uploadUndo } from "@/api/clxx"; 7 import { uploadUndo } from "@/api/clxx";
...@@ -146,7 +146,9 @@ export default { ...@@ -146,7 +146,9 @@ export default {
146 getZrzbsmList(this.bsmSlsq).then((res) => { 146 getZrzbsmList(this.bsmSlsq).then((res) => {
147 if (res.code === 200) { 147 if (res.code === 200) {
148 this.$popupDialog('楼盘表', 'lpb/index', { 148 this.$popupDialog('楼盘表', 'lpb/index', {
149 bsm: res.result[0] 149 bsm: res.result[0],
150 onlyShow:false,
151 unitData:window.unitData
150 }, '90%', true) 152 }, '90%', true)
151 } else { 153 } else {
152 this.$message.error(res.message) 154 this.$message.error(res.message)
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-19 14:00:03 4 * @LastEditTime: 2023-07-21 11:25:20
5 --> 5 -->
6 <template> 6 <template>
7 <div class="from-clues"> 7 <div class="from-clues">
...@@ -96,13 +96,10 @@ ...@@ -96,13 +96,10 @@
96 moreQueryClick () { }, 96 moreQueryClick () { },
97 //打开楼盘表 97 //打开楼盘表
98 openlpbClick (scope) { 98 openlpbClick (scope) {
99 this.$popup('楼盘表', 'lpb/index', { 99 this.$popupDialog('楼盘表', 'lpb/index', {
100 width: '90%', 100 bsm: scope.row.bsm,
101 height: "92%", 101 onlyShow:true
102 formData: { 102 }, '90%', true)
103 bsm: scope.row.bsm
104 }
105 })
106 } 103 }
107 } 104 }
108 } 105 }
......