|
@@ -347,8 +347,10 @@
|
|
console.log(addLines)
|
|
console.log(addLines)
|
|
var addLines = addData.map(item=>{
|
|
var addLines = addData.map(item=>{
|
|
return {
|
|
return {
|
|
- inspectLineVo: item,
|
|
|
|
- tasktype: '巡检路线'
|
|
|
|
|
|
+ inspectLineVo: item, // 不需要传给后端,前端显示用的
|
|
|
|
+ tasktype: '巡检路线', // 需要传后端的
|
|
|
|
+ ifmustexec: 1, // 需要传后端的
|
|
|
|
+ relid: item.id, // 需要传后端的(所选择的巡检路线或巡检点的真正id)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.tableData.push(...addLines)
|
|
this.tableData.push(...addLines)
|
|
@@ -378,8 +380,10 @@
|
|
console.log(addSpots)
|
|
console.log(addSpots)
|
|
var addSpots = addData.map(item=>{
|
|
var addSpots = addData.map(item=>{
|
|
return {
|
|
return {
|
|
- inspectSpotVo: item,
|
|
|
|
- tasktype: '巡检点'
|
|
|
|
|
|
+ inspectSpotVo: item, // 不需要传给后端,前端显示用的
|
|
|
|
+ tasktype: '巡检点', // 需要传后端的
|
|
|
|
+ ifmustexec: 1, // 需要传后端的
|
|
|
|
+ relid: item.id, // 需要传后端的(所选择的巡检路线或巡检点的真正id)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.tableData.push(...addSpots)
|
|
this.tableData.push(...addSpots)
|