修改自定义显示逻辑

v1.0.0
于肖磊 2024-09-06 11:58:18 +08:00
parent 78f0121d3a
commit 91dec94df8
2 changed files with 4 additions and 2 deletions

View File

@ -166,7 +166,7 @@ const changeDataSource = (key: string) => {
const url_value_dialog_call_back = (item: any[]) => { const url_value_dialog_call_back = (item: any[]) => {
if (item.length > 0) { if (item.length > 0) {
form.data_source_content = item[0]; form.data_source_content = item[0];
form.data_source_content_id = item[0].id; form.data_source_content_value = item[0].id;
} else { } else {
form.data_source_content = {}; form.data_source_content = {};
} }

View File

@ -168,7 +168,9 @@ const save_formmat_form_data = (data: diy_data_item, close: boolean = false) =>
// item1.goods_ids = item.goods_list.map((item2: any) => item2.data.id).join(',') || ''; // item1.goods_ids = item.goods_list.map((item2: any) => item2.data.id).join(',') || '';
// item1.goods_list = []; // item1.goods_list = [];
// }); // });
// } // } else if (item.key == 'custom') {
// item.com_data.content.data_source_content = {};
//}
return { return {
...item, ...item,
show_tabs: '0', show_tabs: '0',