1979a71a by 杨威

双击户传入户bsm

1 parent 250d1225
......@@ -517,9 +517,6 @@
},
created(){},
mounted() {
// this.bsm=this.$parent.bsm;
// console.log(this.$parent.bsm)
console.log(this.bsm)
this.getQlrInfo();
if(this.$store.state.gyfsList.length>0){
this.gyfs=this.$store.state.gyfsList[0].bsm;
......
......@@ -510,6 +510,10 @@
this.fwjgTitleRowspan=this.form.fwjgList.length;
}
},
//根据户bsm查询户信息
getHInfo(hbsm){
console.log(hbsm);
},
//保存户信息
onSave(bsm,yclx){
console.log(bsm);
......@@ -518,10 +522,6 @@
onReset(){
},
//根据户bsm查询户信息
getHInfo(bsm){
}
}
}
</script>
......
......@@ -33,7 +33,7 @@
<el-button class="radioBtn" label="3" border @click="plhVisible=true">批量户</el-button>
<el-button class="radioBtn" label="4" border @click="plcVisible=true">批量层</el-button>
<el-button class="radioBtn" label="5" border @click="plShVisible=true">批量室号</el-button>
<el-button class="radioBtn" label="6" border>批量坐落</el-button>
<el-button class="radioBtn" label="6" border @click="plZlVisible=true">批量坐落</el-button>
<el-button class="radioBtn" label="7" border>批量单元号</el-button>
</div>
</el-col>
......@@ -129,9 +129,7 @@
<div class="btnGroup">
<el-button type="primary" @click="hbjSaveInfo">保存</el-button>
<el-button type="primary" @click="hbjResetInfo">重置</el-button>
<el-button type="primary" @click="hbjVisible = false"
>取消</el-button
>
<el-button type="primary" @click="hbjVisible = false">取消</el-button>
</div>
</el-dialog>
</div>
......@@ -161,8 +159,9 @@ export default {
plcVisible:false,
plhVisible:false,
plShVisible:false,
plzlVisible:false,
hbjVisible:false,
tabPosition:1,
tabPosition:"1", //1是实测 0是预测
radio1: "",
radio2: "",
createFlag: false,
......@@ -329,12 +328,12 @@ export default {
//获取选中户bsm
getHbsm(data,type){
this.bsms = data;
let self = this;
if(type){
// 双击
console.log('双击了');
this.hbjVisible = true;
self.$refs.hbj.getHInfo(this.bsms[this.bsms.length-1]);
setTimeout(() => {
this.$refs.hbj.getHInfo(this.bsms[this.bsms.length-1]);
}, 0);
}else{
//单击
console.log('单击了');
......@@ -354,8 +353,8 @@ export default {
},
//户保存
hbjSaveInfo(){
let bsm = this.bsms[this.bsms.length-1]
this.$refs.hbj.onSave(bsm,this.tabPosition);
console.log(this.$refs.hbj,'this.$refs');
this.$refs.hbj.onSave(this.bsms[this.bsms.length-1],this.tabPosition);
},
//户编辑表单重置
hbjResetInfo(){
......