From 5d2e826baefe912714c2711494538a9e5fb96674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Fri, 11 Nov 2022 18:18:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E6=97=B6=EF=BC=8C=E5=88=87=E6=8D=A2=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E9=BB=98=E8=AE=A4=E5=80=BC=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E5=87=86=E7=A1=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/assets/Platform/PlatformCreateUpdate.vue | 4 ++++ src/views/assets/Platform/const.js | 1 + 2 files changed, 5 insertions(+) diff --git a/src/views/assets/Platform/PlatformCreateUpdate.vue b/src/views/assets/Platform/PlatformCreateUpdate.vue index a73429202..7b046dd07 100644 --- a/src/views/assets/Platform/PlatformCreateUpdate.vue +++ b/src/views/assets/Platform/PlatformCreateUpdate.vue @@ -7,6 +7,7 @@ :fields-meta="fieldsMeta" :clean-form-value="cleanFormValue" :after-get-form-value="afterGetFormValue" + :after-get-remote-meta="handleAfterGetRemoteMeta" /> @@ -74,6 +75,9 @@ export default { } }, methods: { + handleAfterGetRemoteMeta(meta) { + this.fieldsMeta.su_method.options = meta?.su_method?.choices || [] + }, async setCategories() { const category = this.$route.query.category const type = this.$route.query.type diff --git a/src/views/assets/Platform/const.js b/src/views/assets/Platform/const.js index 163ca1a01..87f6a7768 100644 --- a/src/views/assets/Platform/const.js +++ b/src/views/assets/Platform/const.js @@ -72,6 +72,7 @@ export const platformFieldsMeta = (vm) => { }, su_method: { type: 'select', + options: [], hidden: (form) => !form['su_enabled'] } }