19a39201 by zhaoqian

权利人,自然幢相关页面调整

1 parent 085644f5
......@@ -8,7 +8,7 @@
<el-row>
<el-col :span="16" class="fl">
<el-radio-group v-model="gyfs">
<el-radio :label="item.bsm" :disabled="qszt!='0'" :key="item.bsm" v-for="item in $store.state.gyfsList">{{item.mc}}</el-radio>
<el-radio :label="item.bsm" :disabled="qszt!='0' || item.disabled" :key="item.bsm" v-for="item in gyfsList">{{item.mc}}</el-radio>
</el-radio-group>
</el-col>
<el-col :span="4" class="fr" v-show="qszt=='0'">
......@@ -325,6 +325,7 @@
// bsm:'',
gyfs: '',
tableData: [],
gyfsList:[],
//表格选中项
multipleSelection: [],
dialogVisible: false,
......@@ -463,6 +464,16 @@
this.formData.fr=row.frList[0];
}
},
inputBlur(e){
if(e.target.value!=''){
e.target.style.border=""
}else{
e.target.style.border="1px solid red";
e.target.style.boxSizing = 'border-box';
}
},
//删除行数据
delRow() {
if (this.multipleSelection.length > 0) {
......@@ -531,12 +542,21 @@
})
}
},
created(){},
created(){
if(this.tableData.length>1){
this.gyfsList = this.$store.state.gyfsList.length;
for(let i = 0;i<this.gyfsList.length;i++){
let item = this.gyfsList[i];
this.gyfsList.disabled = item.mc === "单独所有" && item.bsm === this.gyfs;
}
}
},
mounted() {
this.getQlrInfo();
if(this.$store.state.gyfsList.length>0){
this.gyfs=this.$store.state.gyfsList[0].bsm;
}
},
watch:{
dialogVisible(n){
......@@ -584,8 +604,17 @@
zjzlbsm: "",
}
}
},
tableData(){
if(this.tableData.length>1){
this.gyfsList = this.$store.state.gyfsList;
for(let i = 0;i<this.gyfsList.length;i++){
let item = this.gyfsList[i];
this.gyfsList[i].disabled = item.mc === "单独所有";
}
}
},
}
};
</script>
<style lang="less">
......
......@@ -88,7 +88,7 @@
<tr>
<td colspan="2" class="tdright">建筑物高度(m)</td>
<td colspan="4" >
<input class="formInput" :disabled="form.qszt!='0'" v-model="form.jzwgd">
<input class="formInput" type="number" :disabled="form.qszt!='0'" v-model="form.jzwgd">
</td>
<td colspan="2" class="tdright">地下深度(m)</td>
<td colspan="4" >
......