diff --git a/Web/src/views/system/role/component/editRole.vue b/Web/src/views/system/role/component/editRole.vue index c0ae912f..b08f46d2 100644 --- a/Web/src/views/system/role/component/editRole.vue +++ b/Web/src/views/system/role/component/editRole.vue @@ -10,39 +10,39 @@ - - + + - - + + - - + + - + - 启用 - 禁用 + {{ $t('message.list.enable') }} + {{ $t('message.list.disable') }} - - + + diff --git a/Web/src/views/system/role/component/grantApi.vue b/Web/src/views/system/role/component/grantApi.vue index 7ca43956..adc3dced 100644 --- a/Web/src/views/system/role/component/grantApi.vue +++ b/Web/src/views/system/role/component/grantApi.vue @@ -12,7 +12,7 @@
- +
@@ -50,8 +50,8 @@ @@ -65,6 +65,10 @@ import { Search } from '@element-plus/icons-vue'; import { getAPI } from '/@/utils/axios-utils'; import { SysCommonApi, SysRoleApi } from '/@/api-services/api'; +import { useI18n } from 'vue-i18n'; + +const { t } = useI18n(); + const filterText = ref(''); const treeRef = ref>(); @@ -103,7 +107,9 @@ const initTreeData = async () => { const openDrawer = async (row: any) => { state.selectedTabName = 0; state.roleId = row.id; - state.drawerTitle = '设置角色接口黑名单【' + row.name + '】'; + state.drawerTitle = t('message.list.setApiBlacklist', { name: row.name }); + + state.loading = true; // 获取已有接口资源 diff --git a/Web/src/views/system/role/component/grantData.vue b/Web/src/views/system/role/component/grantData.vue index 909413a0..50cf502a 100644 --- a/Web/src/views/system/role/component/grantData.vue +++ b/Web/src/views/system/role/component/grantData.vue @@ -10,14 +10,14 @@ - - + + - +
@@ -27,8 +27,8 @@
@@ -38,6 +38,7 @@