diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index 21ece828dd..5dfb189195 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -815,6 +815,8 @@ export default { input_limit_0_50: '0-50 chars' }, panel: { + no_auth_role: 'Unshared roles', + auth_role: 'Shared roles', picture_limit: 'Only pictures can be inserted', drag_here: 'Please drag the left field here', copy_link_passwd: 'Copy link and password', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index 3d88a4efd5..83386d5d25 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -814,6 +814,8 @@ export default { input_limit_0_50: '0-50字符' }, panel: { + no_auth_role: '未分享角色', + auth_role: '已分享角色', picture_limit: '只能插入圖片', drag_here: '請將左側字段拖至此處', copy_link_passwd: '複製鏈接及密碼', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 673e9832f5..35526b5896 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -816,6 +816,8 @@ export default { input_limit_0_50: '0-50字符' }, panel: { + no_auth_role: '未分享角色', + auth_role: '已分享角色', picture_limit: '只能插入图片', drag_here: '请将左侧字段拖至此处', copy_link_passwd: '复制链接及密码', diff --git a/frontend/src/views/panel/GrantAuth/dept/index.vue b/frontend/src/views/panel/GrantAuth/dept/index.vue index 83fb58d7d0..dc2778b9fd 100644 --- a/frontend/src/views/panel/GrantAuth/dept/index.vue +++ b/frontend/src/views/panel/GrantAuth/dept/index.vue @@ -162,7 +162,7 @@ export default { const rows = this.$refs.table.store.states.selection const request = this.buildRequest(rows) saveShare(request).then(res => { - this.$success('保存成功') + this.$success(this.$t('commons.save_success')) return true }).catch(err => { this.$error(err.message) diff --git a/frontend/src/views/panel/GrantAuth/role/index.vue b/frontend/src/views/panel/GrantAuth/role/index.vue index dbb2881a04..1af7f475d3 100644 --- a/frontend/src/views/panel/GrantAuth/role/index.vue +++ b/frontend/src/views/panel/GrantAuth/role/index.vue @@ -33,9 +33,9 @@ export default { data() { return { data: [], - defaultHeadName: '全部', + defaultHeadName: this.$t('commons.all'), columnLabel: null, - filter_options: [{ text: '未分享角色', value: 0 }, { text: '已分享角色', value: 1 }], + filter_options: [{ text: this.$t('panel.no_auth_role'), value: 0 }, { text: this.$t('panel.auth_role'), value: 1 }], fieldName: 'name', type: 1, // 类型1代表角色 shares: []