|
|
@ -673,12 +673,12 @@ |
|
|
|
nextTick(() => { |
|
|
|
nextTick(() => { |
|
|
|
mapState.mapData = cloneDeep(merge(defaultMapData(), options)); |
|
|
|
mapState.mapData = cloneDeep(merge(defaultMapData(), options)); |
|
|
|
// 处理数据格式转换 |
|
|
|
// 处理数据格式转换 |
|
|
|
isString(mapState.mapData.fileId) && (mapState.mapData.fileId = mapState.mapData.fileId.split(',')); |
|
|
|
isString(mapState.mapData.fileId) && (mapState.mapData.fileId ? (mapState.mapData.fileId = mapState.mapData.fileId.split(',')) : []); |
|
|
|
mapState.mapData.mapTask.forEach(item => { |
|
|
|
mapState.mapData.mapTask.forEach(item => { |
|
|
|
isString(item.fileId) && (item.fileId = item.fileId.split(',')); |
|
|
|
isString(item.fileId) && (item.fileId ? (item.fileId = item.fileId.split(',')) : []); |
|
|
|
if (~~item.taskType == 1) { |
|
|
|
if (~~item.taskType == 1) { |
|
|
|
item?.mapTaskPreset?.forEach(childItem => { |
|
|
|
item?.mapTaskPreset?.forEach(childItem => { |
|
|
|
isString(childItem.fileId) && (childItem.fileId = childItem.fileId.split(',')); |
|
|
|
isString(childItem.fileId) && (childItem.fileId ? (childItem.fileId = childItem.fileId.split(',')) : []); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|