Commit 2af2a121 by 张杰

修复bug

1 parent 6b67bc0a
...@@ -248,9 +248,9 @@ export default { ...@@ -248,9 +248,9 @@ export default {
let idx = m.findIndex((k) => k.sn == value); let idx = m.findIndex((k) => k.sn == value);
let _arr = res.data || []; let _arr = res.data || [];
let nd = _arr.find((k) => k.sn == value); let nd = _arr.find((k) => k.sn == value);
if (nd) { //if (nd) {
_this.$set(_this.editForm.snList, idx, nd); _this.$set(_this.editForm.snList, idx, nd || { sn: value });
} //}
// GET_CLASSIFYNAME_INFO({ sn: value }).then((response) => { // GET_CLASSIFYNAME_INFO({ sn: value }).then((response) => {
// if (response.data) { // if (response.data) {
// //let idx = m.findIndex((k) => k.sn == value); // //let idx = m.findIndex((k) => k.sn == value);
...@@ -811,7 +811,7 @@ export default { ...@@ -811,7 +811,7 @@ export default {
// 展开地图 // 展开地图
lookLocation(row, index) { lookLocation(row, index) {
let list = this.editForm.snList; let list = deepClone(this.editForm.snList);
let gpsInfo = row.gpsBsData ? row.gpsBsData.gpsLocation : {}; let gpsInfo = row.gpsBsData ? row.gpsBsData.gpsLocation : {};
let bsInfo = row.gpsBsData ? row.gpsBsData.bsLocation : {}; let bsInfo = row.gpsBsData ? row.gpsBsData.bsLocation : {};
if (!gpsInfo.lng || !bsInfo.lng) { if (!gpsInfo.lng || !bsInfo.lng) {
...@@ -824,11 +824,13 @@ export default { ...@@ -824,11 +824,13 @@ export default {
list.map((k) => { list.map((k) => {
if (k.sn != row.sn) { if (k.sn != row.sn) {
k.showMap = false; k.showMap = false;
} else {
k.showMap = true;
} }
return k; return k;
}); });
row.showMap = true; //row.showMap = true;
this.$set(this.editForm.snList, index, row); this.$set(this.editForm, "snList", list);
}, },
// 批量查询校验sn // 批量查询校验sn
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!