diff --git a/.env.development b/.env.development index 05d8f17..bf79d41 100644 --- a/.env.development +++ b/.env.development @@ -13,8 +13,8 @@ VITE_PROXY=[["/api","http://60.209.125.238:3008"],["/stage-api","https://www.666 VITE_DROP_CONSOLE = true # 后台接口父地址(必填) -VITE_GLOB_API_URL=http://localhost:3008 -# VITE_GLOB_API_URL="/api" # 开发 测试环境 +# VITE_GLOB_API_URL=http://localhost:3008 +VITE_GLOB_API_URL="/api" # 开发 测试环境 # File upload address, optional #VITE_GLOB_UPLOAD_URL=http://localhost:8091/api/Common/UploadFile diff --git a/src/api/system/permission.ts b/src/api/system/permission.ts index 5c20b23..ed07452 100644 --- a/src/api/system/permission.ts +++ b/src/api/system/permission.ts @@ -7,6 +7,7 @@ enum Api { getPermission = '/adminApi/Permission/GetPermissionInfo', getPermissionTree = '/adminApi/Permission/GetPermissionTree', getPermissionTreeList = '/adminApi/Permission/GetPermissionTreeList', + updatePerm = '/adminApi/Permission/UpdateTenantPermissionInfo' } export function getPermissionList(data: PageRequest) { return request({ @@ -47,3 +48,11 @@ export function getPermissionTreeList() { // params: query, }) } + +export function updatePermission(data: any) { + return request({ + url: Api.updatePerm, + method: 'post', + data, + }) +} diff --git a/src/views/system/permission/columns.tsx b/src/views/system/permission/columns.tsx index 2114c46..e189b9d 100644 --- a/src/views/system/permission/columns.tsx +++ b/src/views/system/permission/columns.tsx @@ -142,6 +142,15 @@ export const formSchema: FormSchema[] = [ extra: '权限名称必须唯一', }, }, + { + field: 'permissionEnName', + label: '权限英文名称', + component: 'Input', + colProps: { span: 12 }, + itemProps: { + extra: '权限名称必须唯一', + } + }, { field: 'parentId', label: '上级权限', @@ -196,7 +205,7 @@ export const formSchema: FormSchema[] = [ label: '菜单图标', colProps: { span: 12 }, component: 'IconPicker', - ifShow: ({ values }) => !isButton(values.menuType), + ifShow: ({ values }) => !isButton(values.menuType) }, { field: 'permissionType', @@ -251,6 +260,19 @@ export const formSchema: FormSchema[] = [ defaultValue: 1, // ifShow: ({ values }) => !isButton(values.menuType), }, + { + field: 'isCache', + label: '是否缓存', + component: 'RadioGroup', + colProps: { span: 12 }, + defaultValue: false, + componentProps: { + options: [ + { label: '是', value: true }, + { label: '否', value: false } + ] + } + }, { field: 'note', component: 'InputTextArea', diff --git a/src/views/system/permission/index.vue b/src/views/system/permission/index.vue index 1bb2ddd..f5a4646 100644 --- a/src/views/system/permission/index.vue +++ b/src/views/system/permission/index.vue @@ -1,3 +1,11 @@ +