From 80437b7ed1e13471e086522c3cdf67dac8a162f6 Mon Sep 17 00:00:00 2001 From: zyh Date: Thu, 29 Sep 2022 18:04:25 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2231=20feat=EF=BC=9Aasset=20=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E9=9D=A2=E5=A2=9E=E5=8A=A0comment=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/page/asset/asset.vue | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/page/asset/asset.vue b/nezha-fronted/src/components/page/asset/asset.vue index 75c3e4822..9b4fecb3f 100644 --- a/nezha-fronted/src/components/page/asset/asset.vue +++ b/nezha-fronted/src/components/page/asset/asset.vue @@ -66,7 +66,7 @@ > @@ -315,6 +315,12 @@ export default { id: 'stateIds', readonly: true, disabled: false + }, { + id: 'comment', + name: this.$t('licenseGen.comment'), + type: 'input', + label: 'comment', + disabled: false }] }, @@ -699,7 +705,7 @@ export default { } } }, - getTableData (params) { + async getTableData (params) { if (params && Object.keys(params).length > 0) { for (const key in params) { this.$set(this.searchLabel, key, params[key]) @@ -913,11 +919,26 @@ export default { }, jsonKey: 'valnum' }, + comment: { + target: this.searchLabel, + propertyName: 'comment', + isSearchInput: true, + type: 'string', + defaultJson: { + disabled: false, + id: 'comment', + label: 'comment', + name: this.$t('licenseGen.comment'), + type: 'input', + val: '' + }, + jsonKey: 'val' + }, dcIds: { target: this.searchCheckBox, propertyName: 'dcIds', type: 'string', target2: this.selectValue, type2: 'array' }, - fields: { target: this.searchCheckBox, propertyName: 'fields', type: 'json', target2: this.selectValue, type2: 'json' }, + typeIds: { target: this.searchCheckBox, propertyName: 'typeIds', type: 'string', target2: this.selectValue, type2: 'array' }, ping: { target: this.searchCheckBox, propertyName: 'ping', type: 'string', target2: this.selectValue, type2: 'array' }, modelIds: { target: this.searchCheckBox, propertyName: 'modelIds', type: 'string', target2: this.selectValue, type2: 'array' }, - typeIds: { target: this.searchCheckBox, propertyName: 'typeIds', type: 'string', target2: this.selectValue, type2: 'array' } + fields: { target: this.searchCheckBox, propertyName: 'fields', type: 'json', target2: this.selectValue, type2: 'json' } } this.initQueryFromPath(searchKeys) },