Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/daas/src/directives/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ export function installDirectives(app) {
app.provide('hasPermissionByCode', hasPermissionByCode)

app.directive('readonlybtn', {
mounted(el, binding, vnode) {
mounted(el, binding) {
const code = binding.value

if (!hasPermissionByCode(code)) {
el.remove()
vnode.child && vnode.child.$destroy()
}
},
})
Expand Down
1 change: 1 addition & 0 deletions apps/daas/src/i18n/langs/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,7 @@ export default {
account_editFail: 'User name modification failed',
role_allData: 'All role data',
role_functionDataPermission: 'Function and data permissions',
role_dataPermission: 'Data Permissions',
role_module: 'Module',
role_choosePermissionTip:
'Please select the functions and data permissions available for this role (checking all role data means you can browse or operate the data of all roles, unchecking means you can only browse or operate your own data )',
Expand Down
1 change: 1 addition & 0 deletions apps/daas/src/i18n/langs/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -1861,6 +1861,7 @@ export default {
account_editFail: '用户名修改失败',
role_allData: '全部角色数据',
role_functionDataPermission: '功能与数据权限',
role_dataPermission: '数据权限',
role_module: '模块',
role_choosePermissionTip:
'请选择此角色可用的功能和数据权限 (勾选全部角色数据表示可对全部角色的数据进行浏览或操作,不勾选则表示只能对自己的数据进行浏览或操作)',
Expand Down
1 change: 1 addition & 0 deletions apps/daas/src/i18n/langs/zh-TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,7 @@ export default {
account_editFail: '用戶名修改失敗',
role_allData: '全部角色數據',
role_functionDataPermission: '功能與數據權限',
role_dataPermission: '數據權限',
role_module: '模塊',
role_choosePermissionTip:
'請選擇此角色可用的功能和數據權限 (勾選全部角色數據表示可對全部角色的數據進行瀏覽或操作,不勾選則表示只能對自己的數據進行瀏覽或操作)',
Expand Down
2 changes: 2 additions & 0 deletions apps/daas/src/router/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,7 @@ export const routes = [
import('@/views/data-import-export/ProjectManagement.vue'),
meta: {
title: 'page_title_project_management',
code: 'v2_project_management',
},
},
{
Expand All @@ -899,6 +900,7 @@ export const routes = [
component: () => import('@/views/data-import-export/List.vue'),
meta: {
title: 'page_title_data_import_export',
code: 'v2_project_import_and_export',
},
},
],
Expand Down
Loading
Loading