[update] 标签管理isReadOnly为2可以编辑,不能删除
This commit is contained in:
@@ -135,7 +135,7 @@ export default {
|
||||
clickEvent: 'handleEdit',
|
||||
has: 'tag:edit',
|
||||
show: (record) => {
|
||||
return (this.canOpeFlag && record.isReadOnly === IsReadOnlyEnums.configurable.value)
|
||||
return (this.canOpeFlag && (record.isReadOnly === IsReadOnlyEnums.configurable.value || record.isReadOnly === IsReadOnlyEnums.subConfigurable.value))
|
||||
}
|
||||
},
|
||||
// 删除
|
||||
|
||||
@@ -170,7 +170,7 @@ export default {
|
||||
clickEvent: 'handleEdit',
|
||||
has: 'tag:edit',
|
||||
show: (record) => {
|
||||
return (this.canOpeFlag && record.isReadOnly === IsReadOnlyEnums.configurable.value)
|
||||
return (this.canOpeFlag && (record.isReadOnly === IsReadOnlyEnums.configurable.value || record.isReadOnly === IsReadOnlyEnums.subConfigurable.value))
|
||||
}
|
||||
},
|
||||
// 删除
|
||||
|
||||
Reference in New Issue
Block a user