mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-21 07:29:02 +00:00
fix: 修复平台详情操作权限不准确问题
This commit is contained in:
@@ -389,6 +389,10 @@ td .el-button.el-button--mini {
|
|||||||
border-color: danger;
|
border-color: danger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-button--danger.is-plain.is-disabled {
|
||||||
|
background: #ffffff!important;
|
||||||
|
}
|
||||||
|
|
||||||
.el-alert .el-alert__description {
|
.el-alert .el-alert__description {
|
||||||
margin: 1px 0 0;
|
margin: 1px 0 0;
|
||||||
}
|
}
|
||||||
|
@@ -29,6 +29,12 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
actions: {
|
actions: {
|
||||||
|
canUpdate: () => {
|
||||||
|
return !this.TaskDetail.internal && this.$hasPerm('assets.change_platform')
|
||||||
|
},
|
||||||
|
canDelete: () => {
|
||||||
|
return !this.TaskDetail.internal && this.$hasPerm('assets.delete_platform')
|
||||||
|
},
|
||||||
updateCallback: () => {
|
updateCallback: () => {
|
||||||
const { type, category } = this.TaskDetail
|
const { type, category } = this.TaskDetail
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
|
Reference in New Issue
Block a user