From 097817e02cbfcdc80a98e89509de451185f9d36b Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:09:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=E6=A8=A1=E7=89=88?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=8F=82=E6=95=B0=E6=97=A0=E6=B3=95=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=20(#3402)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: 修改模版平台参数无法设置 * perf: remove debug --------- Co-authored-by: ibuler --- src/components/Apps/AutomationParams/index.vue | 2 -- .../AccountTemplate/AccountTemplateCreateUpdate.vue | 7 ------- src/views/accounts/AccountTemplate/const.js | 2 +- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/Apps/AutomationParams/index.vue b/src/components/Apps/AutomationParams/index.vue index 1d0c1c119..a3f0b57af 100644 --- a/src/components/Apps/AutomationParams/index.vue +++ b/src/components/Apps/AutomationParams/index.vue @@ -112,7 +112,6 @@ export default { }, platforms: { handler(newVal) { - console.log('Found platforms change, ', newVal.length) this.onFieldChangeHandler() }, deep: true, @@ -129,7 +128,6 @@ export default { this.remoteMeta = data.actions[this.config.method.toUpperCase()] || {} }, async getFilterPlatforms() { - console.log('this.Platforms', this.platforms) return await this.$axios.post( '/api/v1/assets/platforms/filter-nodes-assets/', { diff --git a/src/views/accounts/AccountTemplate/AccountTemplateCreateUpdate.vue b/src/views/accounts/AccountTemplate/AccountTemplateCreateUpdate.vue index 4f72ab4b2..7ef7fecba 100644 --- a/src/views/accounts/AccountTemplate/AccountTemplateCreateUpdate.vue +++ b/src/views/accounts/AccountTemplate/AccountTemplateCreateUpdate.vue @@ -27,13 +27,6 @@ export default { fieldsMeta: { ...templateFieldsMeta(vm) }, - afterGetFormValue(value) { - if (!value.platforms) { - return - } - vm.fieldsMeta['push_params'].el.platforms = value['platforms'] - return value - }, cleanFormValue(value) { Object.keys(value).forEach((item, index, arr) => { if (['ssh_key', 'token', 'access_key', 'api_key'].includes(item)) { diff --git a/src/views/accounts/AccountTemplate/const.js b/src/views/accounts/AccountTemplate/const.js index c0228bbed..ea8960f1e 100644 --- a/src/views/accounts/AccountTemplate/const.js +++ b/src/views/accounts/AccountTemplate/const.js @@ -115,7 +115,7 @@ export const templateFieldsMeta = (vm) => { } }, on: { - change: ([event], updateForm) => { + input: ([event], updateForm) => { platformIds.splice(0, platformIds.length) platformIds.push(...event) }