|
@@ -27,8 +27,6 @@
|
|
|
<el-badge :value="totalRow" :hidden="totalRow < 1" class="item">
|
|
<el-badge :value="totalRow" :hidden="totalRow < 1" class="item">
|
|
|
<el-button color="#1890FF" @click="showSharedPopover = true" plain>共享相机</el-button>
|
|
<el-button color="#1890FF" @click="showSharedPopover = true" plain>共享相机</el-button>
|
|
|
</el-badge>
|
|
</el-badge>
|
|
|
-
|
|
|
|
|
- <!-- <div class="add-tip" v-if="unAddlength > 0">{{ unAddlength }}</div> -->
|
|
|
|
|
</template>
|
|
</template>
|
|
|
<template #empty>
|
|
<template #empty>
|
|
|
<div class="empty-content flex flex-col items-center">
|
|
<div class="empty-content flex flex-col items-center">
|
|
@@ -70,22 +68,11 @@
|
|
|
import { CameraIPItem, CameraShowItem } from './type';
|
|
import { CameraIPItem, CameraShowItem } from './type';
|
|
|
import { deleteCameraItem } from '@/api/camera/camera-overview';
|
|
import { deleteCameraItem } from '@/api/camera/camera-overview';
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
|
- import useCameraShared from './stores/useSharedCamera';
|
|
|
|
|
import useCameraShare from './stores/useCameraShare';
|
|
import useCameraShare from './stores/useCameraShare';
|
|
|
|
|
|
|
|
const useShare = useCameraShare();
|
|
const useShare = useCameraShare();
|
|
|
- const {
|
|
|
|
|
- cameraShareList,
|
|
|
|
|
- totalRow,
|
|
|
|
|
- queryName,
|
|
|
|
|
- queryAccount,
|
|
|
|
|
- queryToTenantId,
|
|
|
|
|
- isAddState,
|
|
|
|
|
- queryCameraId,
|
|
|
|
|
- conditionSearch,
|
|
|
|
|
- } = useShare;
|
|
|
|
|
|
|
+ const { totalRow, queryToTenantId, isAddState, conditionSearch } = useShare;
|
|
|
|
|
|
|
|
- const unAddlength = ref<number>();
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
isAddState.value = false;
|
|
isAddState.value = false;
|
|
|
console.log('isAddState', isAddState.value);
|
|
console.log('isAddState', isAddState.value);
|
|
@@ -93,9 +80,6 @@
|
|
|
conditionSearch();
|
|
conditionSearch();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // const CameraShared = useCameraShared();
|
|
|
|
|
- // const { unAddlength } = storeToRefs(CameraShared);
|
|
|
|
|
-
|
|
|
|
|
const cameraOverview = useCameraOverview();
|
|
const cameraOverview = useCameraOverview();
|
|
|
const { cameraItems, loading, total, page, size } = storeToRefs(cameraOverview);
|
|
const { cameraItems, loading, total, page, size } = storeToRefs(cameraOverview);
|
|
|
const { getCameraItems, openInterval, closeInterval } = cameraOverview;
|
|
const { getCameraItems, openInterval, closeInterval } = cameraOverview;
|