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 = []
|
||||
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 (
|
||||
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,
|
||||
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 //层数
|
||||
})
|
||||
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
|
||||
//dataJson数据
|
||||
|
Loading…
Reference in New Issue
Block a user