Commit 2af2a121 by 张杰

修复bug

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