mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 14:38:02 +00:00
fix: 改密计划选择资产组件添加disabled状态
This commit is contained in:
@@ -102,15 +102,8 @@ export default {
|
|||||||
tableConfig: {
|
tableConfig: {
|
||||||
url: this.baseUrl,
|
url: this.baseUrl,
|
||||||
hasTree: true,
|
hasTree: true,
|
||||||
hasSelection: false,
|
|
||||||
canSelect: this.canSelect,
|
canSelect: this.canSelect,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
|
||||||
type: 'selection',
|
|
||||||
selectable(row) {
|
|
||||||
return row.automation_enabled_info.change_secret_enabled
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
label: this.$t('assets.Name'),
|
label: this.$t('assets.Name'),
|
||||||
|
@@ -52,6 +52,11 @@ export const getFields = () => {
|
|||||||
rules: [
|
rules: [
|
||||||
{ required: false }
|
{ required: false }
|
||||||
],
|
],
|
||||||
|
el: {
|
||||||
|
canSelect: (row) => {
|
||||||
|
return row.automation_enabled_info.change_secret_enabled
|
||||||
|
}
|
||||||
|
},
|
||||||
label: i18n.t('xpack.Asset')
|
label: i18n.t('xpack.Asset')
|
||||||
},
|
},
|
||||||
passphrase: {
|
passphrase: {
|
||||||
|
Reference in New Issue
Block a user