|
@@ -352,7 +352,7 @@
|
|
timer = await setTimeout(
|
|
timer = await setTimeout(
|
|
async () => {
|
|
async () => {
|
|
if (props.deviceId) {
|
|
if (props.deviceId) {
|
|
- await getDataSource(props.deviceId);
|
|
|
|
|
|
+ await getDataSource(props.deviceId, flag);
|
|
}
|
|
}
|
|
if (timer) {
|
|
if (timer) {
|
|
timer = null;
|
|
timer = null;
|
|
@@ -364,7 +364,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- async function getDataSource(systemID) {
|
|
|
|
|
|
+ async function getDataSource(systemID, flag = false) {
|
|
const res = await getDevice({ devicetype: 'sys', systemID, type: 'all' });
|
|
const res = await getDevice({ devicetype: 'sys', systemID, type: 'all' });
|
|
if (res) {
|
|
if (res) {
|
|
const result = res;
|
|
const result = res;
|
|
@@ -405,7 +405,7 @@
|
|
echartData.value = dataArr;
|
|
echartData.value = dataArr;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- monitorDataGroupNum.value = monitorData.value.length;
|
|
|
|
|
|
+ if (flag) monitorDataGroupNum.value = monitorData.value.length;
|
|
refresh.value = true;
|
|
refresh.value = true;
|
|
nextTick(() => {
|
|
nextTick(() => {
|
|
refresh.value = false;
|
|
refresh.value = false;
|
|
@@ -487,6 +487,7 @@
|
|
async (deviceId) => {
|
|
async (deviceId) => {
|
|
if (deviceId) {
|
|
if (deviceId) {
|
|
await getCamera(deviceId, playerRef.value, 'nitrogen');
|
|
await getCamera(deviceId, playerRef.value, 'nitrogen');
|
|
|
|
+ getDataSource(props.deviceId, true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
);
|
|
);
|