mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-30 12:55:37 +00:00
fix: 改密计划选择资产组件添加disabled状态
This commit is contained in:
parent
2ec9c02d0c
commit
94955cb0d8
@ -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'),
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user