mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-20 15:09:01 +00:00
fix: 修复平台详情操作权限不准确问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user