From 94955cb0d89f3e2c404172214a24b86246e5588a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Mon, 5 Dec 2022 16:25:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B9=E5=AF=86=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E8=B5=84=E4=BA=A7=E7=BB=84=E4=BB=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0disabled=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AssetSelect/index.vue | 7 ------- src/views/accounts/ChangeSecreAtutomation/fields.js | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/AssetSelect/index.vue b/src/components/AssetSelect/index.vue index 3bcc3f015..3b890f96f 100644 --- a/src/components/AssetSelect/index.vue +++ b/src/components/AssetSelect/index.vue @@ -102,15 +102,8 @@ export default { tableConfig: { url: this.baseUrl, hasTree: true, - hasSelection: false, canSelect: this.canSelect, columns: [ - { - type: 'selection', - selectable(row) { - return row.automation_enabled_info.change_secret_enabled - } - }, { prop: 'name', label: this.$t('assets.Name'), diff --git a/src/views/accounts/ChangeSecreAtutomation/fields.js b/src/views/accounts/ChangeSecreAtutomation/fields.js index 76d4a2ccc..31e10dce1 100644 --- a/src/views/accounts/ChangeSecreAtutomation/fields.js +++ b/src/views/accounts/ChangeSecreAtutomation/fields.js @@ -52,6 +52,11 @@ export const getFields = () => { rules: [ { required: false } ], + el: { + canSelect: (row) => { + return row.automation_enabled_info.change_secret_enabled + } + }, label: i18n.t('xpack.Asset') }, passphrase: {