替换权限标识

This commit is contained in:
lai
2024-07-22 19:11:32 +08:00
parent 636c7a5939
commit d9b2b6b567
6 changed files with 761 additions and 9 deletions

View File

@@ -16,6 +16,7 @@ import { parseDateToStr } from '@/utils/date-utils';
import useDictStore from '@/store/modules/dict';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import useI18n from '@/hooks/useI18n';
import { TENANTADMIN_ROLE_KEY } from '@/constants/admin-constants';
const { t } = useI18n();
const { getDict } = useDictStore();
@@ -406,7 +407,7 @@ onMounted(() => {
<a-input v-model:value="queryParams.title" allow-clear></a-input>
</a-form-item>
</a-col>
<a-col :lg="8" :md="12" :xs="24" v-roles:has="['administrator']">
<a-col :lg="8" :md="12" :xs="24" v-roles:has="[TENANTADMIN_ROLE_KEY]">
<a-form-item
:label="t('views.system.log.operate.operUser')"
name="operName"