|
@@ -125,13 +125,14 @@
|
|
|
import { useIssueType } from '../../hooks/useIssueType';
|
|
import { useIssueType } from '../../hooks/useIssueType';
|
|
|
import { useWorkLocation } from '../../hooks/useWorkLocation';
|
|
import { useWorkLocation } from '../../hooks/useWorkLocation';
|
|
|
import { useUserStore } from '@/store/modules/user';
|
|
import { useUserStore } from '@/store/modules/user';
|
|
|
|
|
+ import { PERM_DATA } from '@/types/permission/constants';
|
|
|
|
|
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
const hasDataDeletePermisson = () => {
|
|
const hasDataDeletePermisson = () => {
|
|
|
// isShowTab = true 展示数据
|
|
// isShowTab = true 展示数据
|
|
|
- if (props.isShowTab) return userStore.checkPermission('back:data:violation:fake:delete');
|
|
|
|
|
|
|
+ if (props.isShowTab) return userStore.checkPermission(PERM_DATA.VIOLATION_FAKE_DELETE);
|
|
|
// isShowTab = false 默认数据
|
|
// isShowTab = false 默认数据
|
|
|
- else return userStore.checkPermission('back:data:violation:general:delete');
|
|
|
|
|
|
|
+ else return userStore.checkPermission(PERM_DATA.VIOLATION_DELETE);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const { aiOptions, manualOptions, getAIOptions, getManualOptions, getNameByType } =
|
|
const { aiOptions, manualOptions, getAIOptions, getManualOptions, getNameByType } =
|