|
|
@@ -12,14 +12,17 @@ import {
|
|
|
import { CameraIPItem, CameraNVRItem, CameraSRS, CameraShowItem } from '../type';
|
|
|
import { useRequest } from 'vue-hooks-plus';
|
|
|
|
|
|
+const ALL = -1;
|
|
|
+
|
|
|
export const useCameraOverview = defineStore('camera-overview', () => {
|
|
|
const queryType = ref('');
|
|
|
const queryTypeContent = ref('');
|
|
|
const queryCameraType = ref('');
|
|
|
const queryWorkSpace = ref('');
|
|
|
const querySourceType = ref('');
|
|
|
- const networkingState = ref<number>(-1);
|
|
|
- const integrationState = ref<number>(-1);
|
|
|
+ const networkingState = ref<number>(ALL);
|
|
|
+ const integrationState = ref<number>(ALL);
|
|
|
+ const openEagle = ref<number>(ALL);
|
|
|
const total = ref(0);
|
|
|
const page = ref(1);
|
|
|
const size = ref(10);
|
|
|
@@ -55,12 +58,15 @@ export const useCameraOverview = defineStore('camera-overview', () => {
|
|
|
console.log('queryCameraType.value', querySourceType.value);
|
|
|
params.sourceType = querySourceType.value;
|
|
|
}
|
|
|
- if (networkingState.value != -1) {
|
|
|
+ if (networkingState.value != ALL) {
|
|
|
params.networkingState = networkingState.value;
|
|
|
}
|
|
|
- if (integrationState.value != -1) {
|
|
|
+ if (integrationState.value != ALL) {
|
|
|
params.integrationState = integrationState.value;
|
|
|
}
|
|
|
+ if (openEagle.value != ALL) {
|
|
|
+ params.openEagle = openEagle.value;
|
|
|
+ }
|
|
|
return getCameraList(params).then((res) => {
|
|
|
return res;
|
|
|
});
|
|
|
@@ -143,6 +149,7 @@ export const useCameraOverview = defineStore('camera-overview', () => {
|
|
|
querySourceType,
|
|
|
queryWorkSpace,
|
|
|
integrationState,
|
|
|
+ openEagle,
|
|
|
networkingState,
|
|
|
cameraItems,
|
|
|
loading,
|