Commit 4ac64d6b by 张杰

增加为空判断

1 parent e8b6f260
...@@ -241,9 +241,9 @@ export default { ...@@ -241,9 +241,9 @@ export default {
devices: [{ sn: value }], devices: [{ sn: value }],
workOrderId: _this.editForm.id, workOrderId: _this.editForm.id,
}; };
_this.gpsloading = true _this.gpsloading = true;
VERIFY_WORKORDER_INFO(oParams).then((res) => { VERIFY_WORKORDER_INFO(oParams).then((res) => {
_this.gpsloading = false _this.gpsloading = false;
if (res.code == 200) { if (res.code == 200) {
console.log(res); console.log(res);
let m = _this.editForm.snList; let m = _this.editForm.snList;
...@@ -264,7 +264,7 @@ export default { ...@@ -264,7 +264,7 @@ export default {
// }); // });
cb(); cb();
} else { } else {
_this.gpsloading = false _this.gpsloading = false;
cb(new Error(res.message)); cb(new Error(res.message));
} }
}); });
...@@ -390,7 +390,7 @@ export default { ...@@ -390,7 +390,7 @@ export default {
formRules: {}, formRules: {},
logList: [], logList: [],
isDisabled: false, isDisabled: false,
gpsloading:false gpsloading: false,
}; };
}, },
watch: { watch: {
...@@ -789,23 +789,23 @@ export default { ...@@ -789,23 +789,23 @@ export default {
let bsInfo = row.gpsBsData ? row.gpsBsData.bsLocation : {}; let bsInfo = row.gpsBsData ? row.gpsBsData.bsLocation : {};
let oParams = {}; let oParams = {};
oParams.sn = row.sn; oParams.sn = row.sn || "";
//oParams.gpsData //oParams.gpsData
oParams.name = row.ownerName; oParams.name = row.ownerName || "";
oParams.standNo = m.vin; oParams.standNo = m.vin || "";
oParams.source = row.source; oParams.source = row.source || "";
// gps 信息 // gps 信息
oParams.lng = gpsInfo.lng; oParams.lng = gpsInfo.lng;
oParams.lat = gpsInfo.lat; oParams.lat = gpsInfo.lat;
oParams.address = gpsInfo.address; oParams.address = gpsInfo.address || "";
oParams.time = gpsInfo.dateTime; oParams.time = gpsInfo.dateTime || "";
//基站信息 //基站信息
oParams.bsLng = bsInfo.lng; oParams.bsLng = bsInfo.lng;
oParams.bsLat = bsInfo.lat; oParams.bsLat = bsInfo.lat;
oParams.bsAddress = bsInfo.address; oParams.bsAddress = bsInfo.address || "";
oParams.bsTime = bsInfo.dateTime; oParams.bsTime = bsInfo.dateTime || "";
// 定位类型 // 定位类型
oParams.type = 2; oParams.type = 2;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!