fix: 改密计划选择资产组件添加disabled状态

This commit is contained in:
“huailei000” 2022-12-05 16:25:36 +08:00 committed by huailei
parent 2ec9c02d0c
commit 94955cb0d8
2 changed files with 5 additions and 7 deletions

View File

@ -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'),

View File

@ -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: {