From 9397603f9d1c0b3cc3b3237c52fb872a066e2b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 6 Sep 2024 11:54:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-custom/model-custom-content.vue | 1 + src/views/layout/components/main/default/custom.ts | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue index 1818efc9..f69cd9b9 100644 --- a/src/components/model-custom/model-custom-content.vue +++ b/src/components/model-custom/model-custom-content.vue @@ -166,6 +166,7 @@ const changeDataSource = (key: string) => { const url_value_dialog_call_back = (item: any[]) => { if (item.length > 0) { form.data_source_content = item[0]; + form.data_source_content_id = item[0].id; } else { form.data_source_content = {}; } diff --git a/src/views/layout/components/main/default/custom.ts b/src/views/layout/components/main/default/custom.ts index edc2de52..17da1ec3 100644 --- a/src/views/layout/components/main/default/custom.ts +++ b/src/views/layout/components/main/default/custom.ts @@ -5,7 +5,8 @@ interface defaultSearch { height: number; img_key: string; data_source: string; - data_source_content: string[]; + data_source_content_value: string; + data_source_content: object; custom_list: string[]; }; style: { @@ -16,7 +17,8 @@ const defaultSearch: defaultSearch = { content: { height: 390, img_key: '', - data_source_content: [], + data_source_content_value: '', + data_source_content: {}, data_source:'', custom_list: [] },