Commit 423191c0 authored by zhangjianqian's avatar zhangjianqian

应急设置标签图标

parent 4d7a9fde
......@@ -35,6 +35,7 @@ export const svgUrl = {
10: require("@/assets/mapImages/mark02.png"),
11: require("@/assets/mapImages/mark03.png"),
12: require("@/assets/mapImages/mark04.png"),
13: require("@/assets/mapImages/mark01.png"),
};
export const svgAlarm = {
2: require("@/assets/mapImages/tyxAlarm.svg"),
......
......@@ -328,25 +328,25 @@ export default {
],
arr2: [
{
val: 9,
val: 10,
ischeck: false,
imgurl: require("@/assets/image/tyxsub.svg"),
name: "救援队伍",
},
{
val: 10,
val: 11,
ischeck: false,
imgurl: require("@/assets/image/fmjsub.svg"),
name: "救援物资",
},
{
val: 11,
val: 12,
ischeck: false,
imgurl: require("@/assets/image/czsub.svg"),
name: "救援车辆",
},
{
val: 12,
val: 13,
ischeck: false,
imgurl: require("@/assets/image/usersub.svg"),
name: "医 院",
......@@ -485,11 +485,11 @@ export default {
};
listDevice(params).then(response => {
response.rows.forEach((item) => {
item.iconType = item.deviceType+8;
item.iconType = item.deviceType+9;
});
this.deviceList = response.rows;
//console.log(this.deviceList)
this.addDevice({"data":this.deviceList},Company)
this.addDevice({"data":this.deviceList},null)
this.arr2.forEach((item) => (item.ischeck = true));
});
},
......@@ -594,6 +594,7 @@ export default {
},
// 设备上图
addDevice(data, component) {
console.log(data,data)
for (let comp in data) {
data[comp].forEach((pipe) => {
this.map.addDevice(pipe, component);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment