|
@@ -1,4 +1,4 @@
|
|
|
-import { getCameraState } from '@/api/camera/camera-overview';
|
|
|
|
|
|
|
+import { getCameraStateByCodes } from '@/api/camera/camera-overview';
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
/** 轮询相机异常的频率,5s */
|
|
/** 轮询相机异常的频率,5s */
|
|
@@ -10,7 +10,7 @@ export const useCameraStatus = () => {
|
|
|
|
|
|
|
|
const getState = (codeList, callback) => {
|
|
const getState = (codeList, callback) => {
|
|
|
if (codeList.length === 0) return;
|
|
if (codeList.length === 0) return;
|
|
|
- getCameraState({ cameraCodeList: codeList }).then((res) => {
|
|
|
|
|
|
|
+ getCameraStateByCodes({ cameraCodeList: codeList }).then((res) => {
|
|
|
const filterData = res.filter((item) => item.status === 1);
|
|
const filterData = res.filter((item) => item.status === 1);
|
|
|
noNetworkingNum.value = filterData.length;
|
|
noNetworkingNum.value = filterData.length;
|
|
|
callback(res);
|
|
callback(res);
|