a6f55c3c by weimo934

feat():自然幢权利人修改

1 parent 891b5ef5
......@@ -8,11 +8,11 @@
<el-row>
<el-col :span="14" class="fl" style="line-height:32px">
<el-radio-group v-model="gyfs">
<el-radio :label="item.bsm" :disabled="qszt!='0' || item.disabled" :key="item.bsm" v-for="item in 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="10" class="fr">
<div v-show="qszt=='0'" class="fr" style="margin-right:20px">
<!-- <div v-show="qszt=='0'" class="fr" style="margin-right:20px">
<el-button class="qlrBtn" size="mini" @click="addRow">
<i class="iconfont iconxinzeng"></i> 新增
</el-button>
......@@ -22,15 +22,15 @@
<el-button class="qlrBtn" size="mini" @click="delRow">
<i class="iconfont iconshanchu"></i> 删除
</el-button>
</div>
<div v-show="qszt!='0'" class="fr" style="margin-right:20px">
<el-button class="qlrBtn" size="mini" disabled>
<i class="iconfont iconxinzeng"></i> 新增
</div>-->
<div v-show="+qszt === 0" class="fr" style="margin-right:20px">
<el-button class="qlrBtn" size="mini" :disabled="+qszt!==0 || (tableData.length>0 && gyfs ==='PSHGSBDCQJDC000000000000DC340010') " @click="addRow">
<i class="iconfont iconxinzeng" :disabled="+qszt!==0"></i> 新增
</el-button>
<el-button class="qlrBtn" size="mini" disabled>
<el-button class="qlrBtn" size="mini" :disabled="+qszt!==0" @click="changeRow">
<i class="iconfont iconbianji"></i> 编辑
</el-button>
<el-button class="qlrBtn" size="mini" disabled>
<el-button class="qlrBtn" size="mini" :disabled="+qszt!==0" @click="delRow">
<i class="iconfont iconshanchu"></i> 删除
</el-button>
</div>
......@@ -403,6 +403,9 @@
//新增行数据
addRow() {
console.log(this.gyfs,'共有方式')
this.update=false;
let flag=false;
for(let i = 0;i<this.$store.state.gyfsList.length;i++){
......@@ -641,6 +644,19 @@
}
},
watch:{
tableData:{
handler:function (v) {
console.log(v,'权利人')
this.gyfsList[0].disabled = v.length() > 1;
} ,
deep:true
},
gyfsList:{
handler:function(v){
console.log(v,"共有方式")
},
deep:true
},
dialogVisible(n){
if(n == false){
this.formData = {
......