系統監控 : 模型改用main_id來當spriteDbId 、 2D定位點預設顏色改成#009100
This commit is contained in:
parent
4ab4aeb7f0
commit
4063c6a92d
@ -63,11 +63,11 @@ const getData = async () => {
|
|||||||
...dev,
|
...dev,
|
||||||
forge_dbid: parseInt(dev.forge_dbid),
|
forge_dbid: parseInt(dev.forge_dbid),
|
||||||
room_dbid: parseInt(dev.room_dbid),
|
room_dbid: parseInt(dev.room_dbid),
|
||||||
device_coordinate_3d: JSON.parse(dev.device_coordinate_3d),
|
device_coordinate_3d: dev.device_coordinate_3d ? JSON.parse(dev.device_coordinate_3d) : "",
|
||||||
alarmMsg: "",
|
alarmMsg: "",
|
||||||
is_show: true,
|
is_show: true,
|
||||||
currentColor: dev.device_normal_point_color,
|
currentColor: dev.device_normal_point_color,
|
||||||
spriteDbId: 10 + index,
|
spriteDbId: 10 + dev.main_id,
|
||||||
sensorTypes: dev.points.map(({ points }) => points),
|
sensorTypes: dev.points.map(({ points }) => points),
|
||||||
floor_guid: d.floor_guid,
|
floor_guid: d.floor_guid,
|
||||||
is2DActive: false
|
is2DActive: false
|
||||||
|
@ -36,7 +36,7 @@ const defaultOption = (map, data = []) => {
|
|||||||
...sameOption,
|
...sameOption,
|
||||||
symbolSize: 10,
|
symbolSize: 10,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: data?.[0]?.[3]?.device_normal_color || "#b02a02",
|
color: data?.[0]?.[3]?.device_normal_color || "#009100",
|
||||||
},
|
},
|
||||||
data,
|
data,
|
||||||
},
|
},
|
||||||
@ -44,7 +44,7 @@ const defaultOption = (map, data = []) => {
|
|||||||
...sameOption,
|
...sameOption,
|
||||||
symbolSize: 20,
|
symbolSize: 20,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: data?.[0]?.[3]?.device_normal_color || "#b02a02",
|
color: data?.[0]?.[3]?.device_normal_color || "#009100",
|
||||||
},
|
},
|
||||||
data: [],
|
data: [],
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user