修改自定义逻辑处理
parent
fa10cedb9e
commit
4c1539a415
|
|
@ -201,10 +201,13 @@ const operation_end = (title:string, is_compare: boolean = true) => {
|
||||||
let old_compare_data = {};
|
let old_compare_data = {};
|
||||||
if (props.configType == 'custom') {
|
if (props.configType == 'custom') {
|
||||||
old_index = data_source_store.custom_records_index;
|
old_index = data_source_store.custom_records_index;
|
||||||
old_compare_data = cloneDeep(data_source_store.custom_records[old_index].value) || {};
|
old_compare_data = cloneDeep(data_source_store?.custom_records[old_index]?.value || {}) || {};
|
||||||
} else {
|
} else {
|
||||||
old_index = data_source_store.custom_group_records_index;
|
old_index = data_source_store.custom_group_records_index;
|
||||||
old_compare_data = cloneDeep(data_source_store.custom_group_records[old_index].value) || {};
|
old_compare_data = cloneDeep(data_source_store?.custom_group_records[old_index]?.value || {}) || {};
|
||||||
|
}
|
||||||
|
if (old_index == -1) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
// 新的数据
|
// 新的数据
|
||||||
const new_compare_data = cloneDeep(draglist.value.diy_data);
|
const new_compare_data = cloneDeep(draglist.value.diy_data);
|
||||||
|
|
|
||||||
|
|
@ -721,6 +721,7 @@ const start_drag_area_box = (index: number, event: MouseEvent) => {
|
||||||
const { x, y } = cloneDeep(item.location);
|
const { x, y } = cloneDeep(item.location);
|
||||||
item.location.record_x = x;
|
item.location.record_x = x;
|
||||||
item.location.record_y = y;
|
item.location.record_y = y;
|
||||||
|
item.location.staging_y = y;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (hot_list?.data.length > 0) {
|
if (hot_list?.data.length > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue