Compare commits
No commits in common. "130bc36460fcb8adce4454fe68da41397ff836b4" and "168c46345157ff45b35693c4e6477e1b297f018f" have entirely different histories.
130bc36460
...
168c463451
@ -174,26 +174,23 @@ 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++) {
|
||||||
let item = {
|
|
||||||
positionMapId: props.positionMapId,
|
|
||||||
locationWide: form.value.locationWide || undefined,
|
|
||||||
locationDeep: form.value.locationDeep || undefined,
|
|
||||||
direction: form.value.direction || undefined, //方向
|
|
||||||
inDirection: form.value.inDirection || undefined, //进入方向
|
|
||||||
outDirection: form.value.outDirection || undefined, //离开方向
|
|
||||||
locationStorey: index + 1 //层数
|
|
||||||
}
|
|
||||||
if (
|
if (
|
||||||
form.value.dataList.length > 0 &&
|
form.value.dataList.length > 0 &&
|
||||||
form.value.dataList[index] &&
|
form.value.dataList[index] &&
|
||||||
form.value.dataList[index].id
|
form.value.dataList[index].id
|
||||||
) {
|
) {
|
||||||
item.id = form.value.dataList[index].id
|
list.push(form.value.dataList[index])
|
||||||
item.locationNo = form.value.dataList[index].locationNo
|
} else {
|
||||||
item.mapItemId = form.value.dataList[index].mapItemId
|
list.push({
|
||||||
item.laneId = form.value.dataList[index].laneId
|
positionMapId: props.positionMapId,
|
||||||
|
locationWide: form.value.locationWide || undefined,
|
||||||
|
locationDeep: form.value.locationDeep || undefined,
|
||||||
|
direction: form.value.direction || undefined, //方向
|
||||||
|
inDirection: form.value.inDirection || undefined, //进入方向
|
||||||
|
outDirection: form.value.outDirection || undefined, //离开方向
|
||||||
|
locationStorey: index + 1 //层数
|
||||||
|
})
|
||||||
}
|
}
|
||||||
list.push(item)
|
|
||||||
}
|
}
|
||||||
form.value.dataList = list
|
form.value.dataList = list
|
||||||
//dataJson数据
|
//dataJson数据
|
||||||
|
Loading…
Reference in New Issue
Block a user