From b79fefdee899157321bab8ec83c338aed4885425 Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Sun, 9 Oct 2022 19:00:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=91=BD=E4=BB=A4=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E5=99=A8=E6=94=AF=E6=8C=81=E5=85=B3=E8=81=94=E8=8A=82=E7=82=B9?= =?UTF-8?q?;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CommandFilter/CommandFilterCreateUpdate.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/assets/CommandFilter/CommandFilterCreateUpdate.vue b/src/views/assets/CommandFilter/CommandFilterCreateUpdate.vue index 1716905c1..2844954f6 100644 --- a/src/views/assets/CommandFilter/CommandFilterCreateUpdate.vue +++ b/src/views/assets/CommandFilter/CommandFilterCreateUpdate.vue @@ -15,7 +15,7 @@ export default { }, fields: [ [this.$t('common.Basic'), ['name']], - [this.$t('common.Correlation'), ['users', 'user_groups', 'assets', 'applications', 'system_users']], + [this.$t('common.Correlation'), ['users', 'user_groups', 'nodes', 'assets', 'applications', 'system_users']], [this.$t('common.Other'), ['is_active', 'comment']] ], fieldsMeta: { @@ -36,6 +36,17 @@ export default { url: '/api/v1/users/groups/' } }, + nodes: { + el: { + value: [], + ajax: { + url: '/api/v1/assets/nodes/', + transformOption: (item) => { + return { label: item.full_value, value: item.id } + } + } + } + }, assets: { type: 'assetSelect', component: AssetSelect,