This commit is contained in:
sjl
2024-10-28 08:39:33 +08:00
10 changed files with 90 additions and 91 deletions

View File

@@ -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)
}
// 切换角色状态

View File

@@ -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",