宗地右键菜单根据权属状态判断是否可以添加定着物
Showing
2 changed files
with
18 additions
and
8 deletions
... | @@ -149,15 +149,21 @@ ol, ul { list-style:none; } | ... | @@ -149,15 +149,21 @@ ol, ul { list-style:none; } |
149 | font-weight: 400; | 149 | font-weight: 400; |
150 | color: #333; | 150 | color: #333; |
151 | box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3); | 151 | box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3); |
152 | } | 152 | li { |
153 | .contextmenu li { | ||
154 | margin: 0; | 153 | margin: 0; |
155 | padding: 7px 16px; | 154 | padding: 7px 16px; |
156 | cursor: pointer; | 155 | cursor: pointer; |
157 | } | 156 | } |
158 | 157 | li:hover { | |
159 | .contextmenu li:hover { | ||
160 | background: #eee; | 158 | background: #eee; |
159 | } | ||
160 | .noEdit{ | ||
161 | color: #E6E6E6; | ||
162 | cursor: not-allowed; | ||
163 | } | ||
164 | .noEdit:hover{ | ||
165 | background: #ffffff; | ||
166 | } | ||
161 | } | 167 | } |
162 | // end | 168 | // end |
163 | //生成按钮样式 | 169 | //生成按钮样式 | ... | ... |
... | @@ -62,7 +62,8 @@ | ... | @@ -62,7 +62,8 @@ |
62 | <li v-show="isZD">导入属性</li> | 62 | <li v-show="isZD">导入属性</li> |
63 | <li v-show="!isZD">导入楼盘</li> | 63 | <li v-show="!isZD">导入楼盘</li> |
64 | <li>重叠分析</li> | 64 | <li>重叠分析</li> |
65 | <li v-show="isZD" @click="openCreateDialog">添加定着物</li> | 65 | <li v-show="isZD && (zdQszt == '1' || zdQszt == '2')" @click="openCreateDialog">添加定着物</li> |
66 | <li v-show="isZD && (zdQszt != '1' && zdQszt != '2')" class="noEdit">添加定着物</li> | ||
66 | <li @click="deleteByBsm()">删除</li> | 67 | <li @click="deleteByBsm()">删除</li> |
67 | </ul> | 68 | </ul> |
68 | <ul | 69 | <ul |
... | @@ -131,7 +132,9 @@ export default { | ... | @@ -131,7 +132,9 @@ export default { |
131 | //控制新建宗地菜单 | 132 | //控制新建宗地菜单 |
132 | createVisible:false, | 133 | createVisible:false, |
133 | //多幢 | 134 | //多幢 |
134 | dzVisible:false | 135 | dzVisible:false, |
136 | //宗地权属状态 | ||
137 | zdQszt:null, | ||
135 | }; | 138 | }; |
136 | }, | 139 | }, |
137 | watch: { | 140 | watch: { |
... | @@ -175,7 +178,8 @@ export default { | ... | @@ -175,7 +178,8 @@ export default { |
175 | this.visible = data; | 178 | this.visible = data; |
176 | }, | 179 | }, |
177 | changeZdData(data) { | 180 | changeZdData(data) { |
178 | this.zdData = data | 181 | this.zdData = data; |
182 | this.zdQszt = data.qszt; | ||
179 | }, | 183 | }, |
180 | changeTop(data) { | 184 | changeTop(data) { |
181 | this.top = data; | 185 | this.top = data; | ... | ... |
-
Please register or sign in to post a comment