删除自定义的默认数据显示
parent
66bb9b184d
commit
bf7e0f9c8d
|
|
@ -293,8 +293,6 @@ const dragEndHandle = (item: any, index: number) => {
|
|||
// {x: number, y: number, w: number, h: number}
|
||||
const resizingHandle = (new_location: any, key: string, index: number) => {
|
||||
const { x, y, w, h } = new_location;
|
||||
console.log(new_location);
|
||||
|
||||
diy_data.value[index].location = { x, y, record_x: x, record_y: y, staging_y: y };
|
||||
const com_data = diy_data.value[index].com_data;
|
||||
com_data.com_width = w;
|
||||
|
|
|
|||
|
|
@ -195,6 +195,8 @@ const save_formmat_form_data = (data: diy_data_item, close: boolean = false, is_
|
|||
const new_array_3 = ['coupon'];
|
||||
// 层级更深
|
||||
const new_array_4 = ['data-magic'];
|
||||
// 自定义数据
|
||||
const new_array_5 = ['custom'];
|
||||
clone_form.diy_data = clone_form.diy_data.map((item: any) => {
|
||||
if (new_array_1.includes(item.key)) {
|
||||
item.com_data.content.data_ids = item.com_data.content.data_list.map((item: any) => item.data.id).join(',') || '';
|
||||
|
|
@ -230,6 +232,8 @@ const save_formmat_form_data = (data: diy_data_item, close: boolean = false, is_
|
|||
};
|
||||
});
|
||||
});
|
||||
} else if (new_array_5.includes(item.key)) {
|
||||
item.com_data.content.data_source_content = {};
|
||||
}
|
||||
return {
|
||||
...item,
|
||||
|
|
|
|||
Loading…
Reference in New Issue