双击户传入户bsm
Showing
3 changed files
with
13 additions
and
17 deletions
| ... | @@ -517,9 +517,6 @@ | ... | @@ -517,9 +517,6 @@ |
| 517 | }, | 517 | }, |
| 518 | created(){}, | 518 | created(){}, |
| 519 | mounted() { | 519 | mounted() { |
| 520 | // this.bsm=this.$parent.bsm; | ||
| 521 | // console.log(this.$parent.bsm) | ||
| 522 | console.log(this.bsm) | ||
| 523 | this.getQlrInfo(); | 520 | this.getQlrInfo(); |
| 524 | if(this.$store.state.gyfsList.length>0){ | 521 | if(this.$store.state.gyfsList.length>0){ |
| 525 | this.gyfs=this.$store.state.gyfsList[0].bsm; | 522 | this.gyfs=this.$store.state.gyfsList[0].bsm; | ... | ... |
| ... | @@ -510,6 +510,10 @@ | ... | @@ -510,6 +510,10 @@ |
| 510 | this.fwjgTitleRowspan=this.form.fwjgList.length; | 510 | this.fwjgTitleRowspan=this.form.fwjgList.length; |
| 511 | } | 511 | } |
| 512 | }, | 512 | }, |
| 513 | //根据户bsm查询户信息 | ||
| 514 | getHInfo(hbsm){ | ||
| 515 | console.log(hbsm); | ||
| 516 | }, | ||
| 513 | //保存户信息 | 517 | //保存户信息 |
| 514 | onSave(bsm,yclx){ | 518 | onSave(bsm,yclx){ |
| 515 | console.log(bsm); | 519 | console.log(bsm); |
| ... | @@ -518,10 +522,6 @@ | ... | @@ -518,10 +522,6 @@ |
| 518 | onReset(){ | 522 | onReset(){ |
| 519 | 523 | ||
| 520 | }, | 524 | }, |
| 521 | //根据户bsm查询户信息 | ||
| 522 | getHInfo(bsm){ | ||
| 523 | |||
| 524 | } | ||
| 525 | } | 525 | } |
| 526 | } | 526 | } |
| 527 | </script> | 527 | </script> | ... | ... |
| ... | @@ -33,7 +33,7 @@ | ... | @@ -33,7 +33,7 @@ |
| 33 | <el-button class="radioBtn" label="3" border @click="plhVisible=true">批量户</el-button> | 33 | <el-button class="radioBtn" label="3" border @click="plhVisible=true">批量户</el-button> |
| 34 | <el-button class="radioBtn" label="4" border @click="plcVisible=true">批量层</el-button> | 34 | <el-button class="radioBtn" label="4" border @click="plcVisible=true">批量层</el-button> |
| 35 | <el-button class="radioBtn" label="5" border @click="plShVisible=true">批量室号</el-button> | 35 | <el-button class="radioBtn" label="5" border @click="plShVisible=true">批量室号</el-button> |
| 36 | <el-button class="radioBtn" label="6" border>批量坐落</el-button> | 36 | <el-button class="radioBtn" label="6" border @click="plZlVisible=true">批量坐落</el-button> |
| 37 | <el-button class="radioBtn" label="7" border>批量单元号</el-button> | 37 | <el-button class="radioBtn" label="7" border>批量单元号</el-button> |
| 38 | </div> | 38 | </div> |
| 39 | </el-col> | 39 | </el-col> |
| ... | @@ -129,9 +129,7 @@ | ... | @@ -129,9 +129,7 @@ |
| 129 | <div class="btnGroup"> | 129 | <div class="btnGroup"> |
| 130 | <el-button type="primary" @click="hbjSaveInfo">保存</el-button> | 130 | <el-button type="primary" @click="hbjSaveInfo">保存</el-button> |
| 131 | <el-button type="primary" @click="hbjResetInfo">重置</el-button> | 131 | <el-button type="primary" @click="hbjResetInfo">重置</el-button> |
| 132 | <el-button type="primary" @click="hbjVisible = false" | 132 | <el-button type="primary" @click="hbjVisible = false">取消</el-button> |
| 133 | >取消</el-button | ||
| 134 | > | ||
| 135 | </div> | 133 | </div> |
| 136 | </el-dialog> | 134 | </el-dialog> |
| 137 | </div> | 135 | </div> |
| ... | @@ -161,8 +159,9 @@ export default { | ... | @@ -161,8 +159,9 @@ export default { |
| 161 | plcVisible:false, | 159 | plcVisible:false, |
| 162 | plhVisible:false, | 160 | plhVisible:false, |
| 163 | plShVisible:false, | 161 | plShVisible:false, |
| 162 | plzlVisible:false, | ||
| 164 | hbjVisible:false, | 163 | hbjVisible:false, |
| 165 | tabPosition:1, | 164 | tabPosition:"1", //1是实测 0是预测 |
| 166 | radio1: "", | 165 | radio1: "", |
| 167 | radio2: "", | 166 | radio2: "", |
| 168 | createFlag: false, | 167 | createFlag: false, |
| ... | @@ -329,12 +328,12 @@ export default { | ... | @@ -329,12 +328,12 @@ export default { |
| 329 | //获取选中户bsm | 328 | //获取选中户bsm |
| 330 | getHbsm(data,type){ | 329 | getHbsm(data,type){ |
| 331 | this.bsms = data; | 330 | this.bsms = data; |
| 332 | let self = this; | ||
| 333 | if(type){ | 331 | if(type){ |
| 334 | // 双击 | 332 | // 双击 |
| 335 | console.log('双击了'); | ||
| 336 | this.hbjVisible = true; | 333 | this.hbjVisible = true; |
| 337 | self.$refs.hbj.getHInfo(this.bsms[this.bsms.length-1]); | 334 | setTimeout(() => { |
| 335 | this.$refs.hbj.getHInfo(this.bsms[this.bsms.length-1]); | ||
| 336 | }, 0); | ||
| 338 | }else{ | 337 | }else{ |
| 339 | //单击 | 338 | //单击 |
| 340 | console.log('单击了'); | 339 | console.log('单击了'); |
| ... | @@ -354,8 +353,8 @@ export default { | ... | @@ -354,8 +353,8 @@ export default { |
| 354 | }, | 353 | }, |
| 355 | //户保存 | 354 | //户保存 |
| 356 | hbjSaveInfo(){ | 355 | hbjSaveInfo(){ |
| 357 | let bsm = this.bsms[this.bsms.length-1] | 356 | console.log(this.$refs.hbj,'this.$refs'); |
| 358 | this.$refs.hbj.onSave(bsm,this.tabPosition); | 357 | this.$refs.hbj.onSave(this.bsms[this.bsms.length-1],this.tabPosition); |
| 359 | }, | 358 | }, |
| 360 | //户编辑表单重置 | 359 | //户编辑表单重置 |
| 361 | hbjResetInfo(){ | 360 | hbjResetInfo(){ | ... | ... |
-
Please register or sign in to post a comment