8d1a55a2 by 杨威

宗地右键菜单根据权属状态判断是否可以添加定着物

1 parent ad511cad
......@@ -149,15 +149,21 @@ ol, ul { list-style:none; }
font-weight: 400;
color: #333;
box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
}
.contextmenu li {
li {
margin: 0;
padding: 7px 16px;
cursor: pointer;
}
.contextmenu li:hover {
}
li:hover {
background: #eee;
}
.noEdit{
color: #E6E6E6;
cursor: not-allowed;
}
.noEdit:hover{
background: #ffffff;
}
}
// end
//生成按钮样式
......
......@@ -62,7 +62,8 @@
<li v-show="isZD">导入属性</li>
<li v-show="!isZD">导入楼盘</li>
<li>重叠分析</li>
<li v-show="isZD" @click="openCreateDialog">添加定着物</li>
<li v-show="isZD && (zdQszt == '1' || zdQszt == '2')" @click="openCreateDialog">添加定着物</li>
<li v-show="isZD && (zdQszt != '1' && zdQszt != '2')" class="noEdit">添加定着物</li>
<li @click="deleteByBsm()">删除</li>
</ul>
<ul
......@@ -131,7 +132,9 @@ export default {
//控制新建宗地菜单
createVisible:false,
//多幢
dzVisible:false
dzVisible:false,
//宗地权属状态
zdQszt:null,
};
},
watch: {
......@@ -175,7 +178,8 @@ export default {
this.visible = data;
},
changeZdData(data) {
this.zdData = data
this.zdData = data;
this.zdQszt = data.qszt;
},
changeTop(data) {
this.top = data;
......