NEZ-389 feat:asset tag 功能修改

This commit is contained in:
wangwenrui
2020-09-08 11:18:18 +08:00
parent aa05a8c111
commit 74cacb33ae
5 changed files with 183 additions and 10 deletions

View File

@@ -8,14 +8,17 @@
v-for="(item,index) in custom"
:key="index"
class="custom-label"
:class="!allowedAll&&!item.allowed && (index==0 || index == 1 || item.NotSet) ? 'custom-label-disabled' : ''"
@click="handler(item,index)"
:id="'element-set-el-'+index"
:class="{'custom-title orange-font':item.type == 'title','custom-label-disabled':!allowedAll&&!item.allowed && (index==0 || index == 1 || item.NotSet)}"
>
<i class="el-icon-check" v-if="!allowedAll&&!item.allowed&&(index==0||index==1||item.visibility=='disabled')"></i>
<i v-else class="el-icon-check" v-show="item.show"></i>
<span>{{item.label}}</span>
</div>
</el-scrollbar>
</div>
<div class="custom-bottom-btns">
@@ -160,6 +163,9 @@ export default {
cursor: default;
font-size: 14px;
}
.custom-title{
padding: 2px 0 2px 2px;
}
.custom-label-disabled {
cursor: not-allowed;
background: #f1f3f4;