Merge branch 'xhf' of http://git.znkjfw.com/ak/zn-admin-vue3-wcs into xhf
This commit is contained in:
commit
b5a0f02d4e
@ -174,23 +174,26 @@ 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
|
||||||
) {
|
) {
|
||||||
list.push(form.value.dataList[index])
|
item.id = form.value.dataList[index].id
|
||||||
} else {
|
item.locationNo = form.value.dataList[index].locationNo
|
||||||
list.push({
|
item.mapItemId = form.value.dataList[index].mapItemId
|
||||||
positionMapId: props.positionMapId,
|
item.laneId = form.value.dataList[index].laneId
|
||||||
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