fix: 修复平台详情操作权限不准确问题

This commit is contained in:
“huailei000”
2022-10-10 11:32:05 +08:00
committed by huailei
parent 0bab09e48e
commit addd22ec6c
2 changed files with 10 additions and 0 deletions

View File

@@ -389,6 +389,10 @@ td .el-button.el-button--mini {
border-color: danger;
}
.el-button--danger.is-plain.is-disabled {
background: #ffffff!important;
}
.el-alert .el-alert__description {
margin: 1px 0 0;
}

View File

@@ -29,6 +29,12 @@ export default {
}
],
actions: {
canUpdate: () => {
return !this.TaskDetail.internal && this.$hasPerm('assets.change_platform')
},
canDelete: () => {
return !this.TaskDetail.internal && this.$hasPerm('assets.delete_platform')
},
updateCallback: () => {
const { type, category } = this.TaskDetail
this.$router.push({