Commit d9e40e1f by 张杰

增加地图显示

1 parent 7a686b99
...@@ -89,9 +89,9 @@ ...@@ -89,9 +89,9 @@
<el-input v-model="item.model" disabled></el-input> <el-input v-model="item.model" disabled></el-input>
</el-form-item> </el-form-item>
<span class="device_tips" :class="!item.checkResult?'cred':''">{{item.checkResult?'验证通过':'验证不通过'}}</span> <span class="device_tips" :class="!item.checkResult?'cred':''">{{item.checkResult?'验证通过':'验证不通过'}}</span>
<el-button type="primary" size="mini" class="el_btn" :disabled="!item.gpsBsData">查看定位</el-button> <el-button type="primary" size="mini" class="el_btn" @click="lookLocation(item,index)">查看定位</el-button>
</div> </div>
<map-location :info="getMapInfo(item)" :key="index" v-if="item.showMap"></map-location> <map-location :info="getMapInfo(item)" :key="`map_${index}`" v-if="item.showMap"></map-location>
</template> </template>
</template> </template>
<!-- 设备信息 end --> <!-- 设备信息 end -->
...@@ -728,6 +728,20 @@ export default { ...@@ -728,6 +728,20 @@ export default {
//oParams.gpsData //oParams.gpsData
return oParams; return oParams;
}, },
// 展开地图
lookLocation(row, index) {
let list = this.editForm.snList;
row.showMap = !row.showMap;
list.map((k) => {
if (k.sn != row.sn) {
k.showMap = false;
}
return k;
});
this.$set(this.editForm.snList, index, row);
},
}, },
}; };
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!