编辑地图
This commit is contained in:
parent
2853959c19
commit
8078e1f041
@ -174,14 +174,7 @@ const submit = async (formEl) => {
|
|||||||
|
|
||||||
let list = []
|
let list = []
|
||||||
for (let index = 0; index < form.value.layersNumber; index++) {
|
for (let index = 0; index < form.value.layersNumber; index++) {
|
||||||
if (
|
let item = {
|
||||||
form.value.dataList.length > 0 &&
|
|
||||||
form.value.dataList[index] &&
|
|
||||||
form.value.dataList[index].id
|
|
||||||
) {
|
|
||||||
list.push(form.value.dataList[index])
|
|
||||||
} else {
|
|
||||||
list.push({
|
|
||||||
positionMapId: props.positionMapId,
|
positionMapId: props.positionMapId,
|
||||||
locationWide: form.value.locationWide || undefined,
|
locationWide: form.value.locationWide || undefined,
|
||||||
locationDeep: form.value.locationDeep || undefined,
|
locationDeep: form.value.locationDeep || undefined,
|
||||||
@ -189,8 +182,18 @@ const submit = async (formEl) => {
|
|||||||
inDirection: form.value.inDirection || undefined, //进入方向
|
inDirection: form.value.inDirection || undefined, //进入方向
|
||||||
outDirection: form.value.outDirection || undefined, //离开方向
|
outDirection: form.value.outDirection || undefined, //离开方向
|
||||||
locationStorey: index + 1 //层数
|
locationStorey: index + 1 //层数
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
form.value.dataList.length > 0 &&
|
||||||
|
form.value.dataList[index] &&
|
||||||
|
form.value.dataList[index].id
|
||||||
|
) {
|
||||||
|
item.id = form.value.dataList[index].id
|
||||||
|
item.locationNo = form.value.dataList[index].locationNo
|
||||||
|
item.mapItemId = form.value.dataList[index].mapItemId
|
||||||
|
item.laneId = form.value.dataList[index].laneId
|
||||||
|
}
|
||||||
|
list.push(item)
|
||||||
}
|
}
|
||||||
form.value.dataList = list
|
form.value.dataList = list
|
||||||
//dataJson数据
|
//dataJson数据
|
||||||
|
Loading…
Reference in New Issue
Block a user