|
|
@@ -6,6 +6,7 @@
|
|
|
type="primary"
|
|
|
@click="createGroupDialog = true"
|
|
|
style="margin-top: 24px; margin-bottom: 16px; width: 138px"
|
|
|
+ v-permission="{ action: [PERM_ALGO.CONFIG_ADD_GROUP] }"
|
|
|
>
|
|
|
<img src="@/assets/images/create.png" style="margin-top: -1px; margin-right: 5px" />新建相机分组
|
|
|
</el-button>
|
|
|
@@ -47,7 +48,10 @@
|
|
|
</el-tooltip>
|
|
|
|
|
|
<el-tooltip effect="light" content="删除" placement="bottom">
|
|
|
- <img src="@/views/message/alarmMessages/img/delete.png" @click="handleDelete(scope.row)" />
|
|
|
+ <img src="@/views/message/alarmMessages/img/delete.png"
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
+ v-permission="{ action: [PERM_ALGO.CONFIG_DELETE_GROUP] }"
|
|
|
+ />
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -108,6 +112,7 @@ import useCameraGroupQuery from './hooks/useCameraGroupQuery';
|
|
|
import { CameraGroupTableItem, CameraGroupStatus, IsMainCamera } from '@/types/camera/camera-preview';
|
|
|
import { deleteDetectionGroup, updateGroupStatus, saveDetectionGroup } from '@/api/camera/camera-preview-group';
|
|
|
import SettingCamera from './components/SettingCamera.vue'
|
|
|
+import { PERM_ALGO } from '@/types/permission/constants';
|
|
|
|
|
|
const router = useRouter();
|
|
|
const { requestParams, total, queryCameraGroupPage, cameraGroupList, loading } = useCameraGroupQuery();
|