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: [] },