Commit 4ac64d6b by 张杰

增加为空判断

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