diff --git a/frontend/src/api/role/role.ts b/frontend/src/api/role/role.ts index 2cde151..dcd57f7 100644 --- a/frontend/src/api/role/role.ts +++ b/frontend/src/api/role/role.ts @@ -20,7 +20,7 @@ export const getRoleList = (params: Role.ReqRoleParams) => { // 新增角色 export const addRole = (params: { id: string }) => { - return http.post(`${rePrefix}/role/add`, params) + return http.post(`/RoleList_Add`, params) } // 批量添加角色 @@ -35,7 +35,7 @@ export const editRole = (params: { id: string }) => { // 删除角色 export const deleteRole = (params: { id: string[] }) => { - return http.post(`${rePrefix}/role/delete`, params) + return http.post(`/RoleList_Del`, params) } // 切换角色状态 diff --git a/frontend/src/api/system/dict/dictExample.ts b/frontend/src/api/system/dict/dictExample.ts index bee602d..852ab4f 100644 --- a/frontend/src/api/system/dict/dictExample.ts +++ b/frontend/src/api/system/dict/dictExample.ts @@ -5,10 +5,10 @@ export const dictTypeList: Dict.ResDictType[] = [ id: "1", name: "用户性别", code: "EXAMPLE_CODE1", - sort: 1, + sort: 100, openLevel: 1, openDescribe: 1, - remark: "示例描述1221", + remark: "示例描述示例描述示例描述12231", state: 1, createBy: "admin", createTime: "2023-10-01 12:00:00", @@ -19,10 +19,10 @@ export const dictTypeList: Dict.ResDictType[] = [ id: "231", name: "菜单状态", code: "EXAMPLE_CODE2", - sort: 1, + sort: 100, openLevel: 1, openDescribe: 1, - remark: "示例描述11133", + remark: "示例描述示例描述示例描述11133", state: 0, createBy: "admin", createTime: "2023-10-01 12:00:00", @@ -33,10 +33,10 @@ export const dictTypeList: Dict.ResDictType[] = [ id: "33", name: "系统开关", code: "EXAMPLE_CODE3", - sort: 1, + sort: 100, openLevel: 1, openDescribe: 1, - remark: "示例描述111344", + remark: "示例描述示例描述示例描述11144", state: 1, createBy: "admin", createTime: "2023-10-01 12:00:00", @@ -51,7 +51,7 @@ export const dictDataList: Dict.ResDictData[] = [ typeId: "101", name: "字典项1", code: "EXAMPLE_00111", - sort: 1, + sort:100, level: 1, algoDescribe: null, value: "字典值1", @@ -66,7 +66,7 @@ export const dictDataList: Dict.ResDictData[] = [ typeId: "101", name: "字典项2", code: "EXAMPLE_00121", - sort: 1, + sort:100, level: 2, algoDescribe: null, value: "字典值2", @@ -81,7 +81,7 @@ export const dictDataList: Dict.ResDictData[] = [ typeId: "101", name: "字典项3", code: "EXAMPLE_00141", - sort: 1, + sort:100, level: 3, algoDescribe: null, value: "字典值3", @@ -96,7 +96,7 @@ export const dictDataList: Dict.ResDictData[] = [ typeId: "101", name: "字典项4", code: "EXAMPLE_00311", - sort: 1, + sort:100, level: null, algoDescribe: null, value: "字典值4", @@ -111,7 +111,7 @@ export const dictDataList: Dict.ResDictData[] = [ typeId: "101", name: "字典项5", code: "EXAMPLE_00341", - sort: 1, + sort:100, level: undefined, algoDescribe: null, value: "字典值5", @@ -126,7 +126,7 @@ export const dictDataList: Dict.ResDictData[] = [ typeId: "101", name: "字典项6", code: "EXAMPLE_00318", - sort: 1, + sort:100, level: 0, algoDescribe: null, value: "字典值6", diff --git a/frontend/src/views/authority/role/components/roleUnit.vue b/frontend/src/views/authority/role/components/roleUnit.vue index 36d2cd9..1483d04 100644 --- a/frontend/src/views/authority/role/components/roleUnit.vue +++ b/frontend/src/views/authority/role/components/roleUnit.vue @@ -3,13 +3,13 @@
- - + + - - + + - + - - + +