From addd22ec6c049148bb2ffa324360c001d4713358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Mon, 10 Oct 2022 11:32:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=93=8D=E4=BD=9C=E6=9D=83=E9=99=90=E4=B8=8D?= =?UTF-8?q?=E5=87=86=E7=A1=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/theme/element-extra.css | 4 ++++ src/views/assets/Platform/PlatformDetail/index.vue | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/public/theme/element-extra.css b/public/theme/element-extra.css index 61105031a..588e3f19b 100644 --- a/public/theme/element-extra.css +++ b/public/theme/element-extra.css @@ -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; } diff --git a/src/views/assets/Platform/PlatformDetail/index.vue b/src/views/assets/Platform/PlatformDetail/index.vue index b4cd6b24f..a0e4736f8 100644 --- a/src/views/assets/Platform/PlatformDetail/index.vue +++ b/src/views/assets/Platform/PlatformDetail/index.vue @@ -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({