diff --git a/mock/asyncRoutes.ts b/mock/asyncRoutes.ts index 1a20d1d11..fa0e8473e 100644 --- a/mock/asyncRoutes.ts +++ b/mock/asyncRoutes.ts @@ -12,15 +12,6 @@ const systemRouter = { rank: 11 }, children: [ - // { - // path: "/system/dict/index", - // name: "dict", - // meta: { - // title: "menus.hsDict", - // i18n: true, - // keepAlive: true - // } - // }, { path: "/system/user/index", name: "user", @@ -34,7 +25,7 @@ const systemRouter = { path: "/system/role/index", name: "role", meta: { - icon: "peoples", + icon: "role", title: "menus.hsRole", i18n: true } @@ -43,10 +34,20 @@ const systemRouter = { path: "/system/dept/index", name: "dept", meta: { - icon: "office-building", + icon: "dept", title: "menus.hsDept", i18n: true } + }, + { + path: "/system/dict/index", + name: "dict", + meta: { + icon: "dict", + title: "menus.hsDict", + i18n: true, + keepAlive: true + } } ] }; diff --git a/mock/list.ts b/mock/list.ts index 385899d34..e968d1113 100644 --- a/mock/list.ts +++ b/mock/list.ts @@ -448,8 +448,7 @@ export default [ "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" } ] - }, - msg: "" + } }; } } diff --git a/mock/system.ts b/mock/system.ts index 184f4a6a6..a0ef492e2 100644 --- a/mock/system.ts +++ b/mock/system.ts @@ -62,8 +62,7 @@ export default [ } ], total: 3 - }, - msg: "" + } }; } }, @@ -76,6 +75,7 @@ export default [ data: [ { name: "杭州总公司", + type: 1, // 1 公司 2 分公司 3 部门 parentId: 0, sort: 0, leaderUserId: 1, @@ -88,6 +88,7 @@ export default [ }, { name: "郑州分公司", + type: 2, parentId: 100, sort: 1, leaderUserId: 104, @@ -100,6 +101,7 @@ export default [ }, { name: "研发部门", + type: 3, parentId: 101, sort: 1, leaderUserId: 104, @@ -112,6 +114,7 @@ export default [ }, { name: "市场部门", + type: 3, parentId: 102, sort: 1, leaderUserId: null, @@ -124,6 +127,7 @@ export default [ }, { name: "深圳分公司", + type: 2, parentId: 100, sort: 2, leaderUserId: null, @@ -136,6 +140,7 @@ export default [ }, { name: "市场部门", + type: 3, parentId: 101, sort: 2, leaderUserId: null, @@ -148,6 +153,7 @@ export default [ }, { name: "财务部门", + type: 3, parentId: 102, sort: 2, leaderUserId: null, @@ -160,6 +166,7 @@ export default [ }, { name: "测试部门", + type: 3, parentId: 101, sort: 3, leaderUserId: null, @@ -172,6 +179,7 @@ export default [ }, { name: "财务部门", + type: 3, parentId: 101, sort: 4, leaderUserId: 103, @@ -184,6 +192,7 @@ export default [ }, { name: "运维部门", + type: 3, parentId: 101, sort: 5, leaderUserId: null, @@ -194,8 +203,85 @@ export default [ createTime: 1609837427000, remark: "备注、备注、备注、备注、备注、备注、备注" } - ], - msg: "" + ] + }; + } + }, + { + url: "/user", + method: "post", + response: () => { + return { + code: 0, + data: { + list: [ + { + username: "admin", + nickname: "admin", + remark: "管理员", + deptId: 103, + postIds: [1], + mobile: "15888888888", + sex: 0, + id: 1, + status: 0, + createTime: 1609837427000, + dept: { + id: 103, + name: "研发部门" + } + }, + { + username: "pure", + nickname: "pure", + remark: "不要吓我", + deptId: 104, + postIds: [1], + mobile: "15888888888", + sex: 0, + id: 100, + status: 1, + createTime: 1609981637000, + dept: { + id: 104, + name: "市场部门" + } + }, + { + username: "小姐姐", + nickname: "girl", + remark: null, + deptId: 106, + postIds: null, + mobile: "15888888888", + sex: 1, + id: 103, + status: 1, + createTime: 1610553035000, + dept: { + id: 106, + name: "财务部门" + } + }, + { + username: "小哥哥", + nickname: "boy", + remark: null, + deptId: 107, + postIds: [], + mobile: "15888888888", + sex: 0, + id: 104, + status: 0, + createTime: 1611166433000, + dept: { + id: 107, + name: "运维部门" + } + } + ], + total: 4 + } }; } } diff --git a/package.json b/package.json index 74ab68fcd..15a1cd6ac 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,7 @@ "devDependencies": { "@commitlint/cli": "13.1.0", "@commitlint/config-conventional": "13.1.0", + "@iconify-icons/carbon": "^1.2.4", "@iconify-icons/ep": "^1.2.4", "@iconify-icons/fa": "^1.2.2", "@iconify-icons/fa-solid": "^1.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7486653b4..1f306e879 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,7 @@ specifiers: "@commitlint/cli": 13.1.0 "@commitlint/config-conventional": 13.1.0 "@ctrl/tinycolor": ^3.4.0 + "@iconify-icons/carbon": ^1.2.4 "@iconify-icons/ep": ^1.2.4 "@iconify-icons/fa": ^1.2.2 "@iconify-icons/fa-solid": ^1.2.2 @@ -151,6 +152,7 @@ dependencies: devDependencies: "@commitlint/cli": 13.1.0 "@commitlint/config-conventional": 13.1.0 + "@iconify-icons/carbon": 1.2.4 "@iconify-icons/ep": 1.2.4 "@iconify-icons/fa": 1.2.2 "@iconify-icons/fa-solid": 1.2.2 @@ -963,6 +965,15 @@ packages: } dev: true + /@iconify-icons/carbon/1.2.4: + resolution: + { + integrity: sha512-RhLB8EwYz32oSSQZjafhWbyAqOoPIcj59VQmsrY/+8MR083c8XwOjepIwKVzZNMjWSL966ykqZxNrXwEjk7jrg== + } + dependencies: + "@iconify/types": 1.1.0 + dev: true + /@iconify-icons/ep/1.2.4: resolution: { diff --git a/src/api/system.ts b/src/api/system.ts index 76d6ce49f..4dcd15f46 100644 --- a/src/api/system.ts +++ b/src/api/system.ts @@ -6,6 +6,11 @@ interface ResponseType extends Promise { msg?: string; } +// 获取用户管理列表 +export const getUserList = (data?: object): ResponseType => { + return http.request("post", "/user", { data }); +}; + // 获取角色管理列表 export const getRoleList = (data?: object): ResponseType => { return http.request("post", "/role", { data }); diff --git a/src/components/ReCard/src/index.vue b/src/components/ReCard/src/index.vue index de4ea6b0f..ed39ff7a7 100644 --- a/src/components/ReCard/src/index.vue +++ b/src/components/ReCard/src/index.vue @@ -64,7 +64,7 @@ const cardLogoClass = computed(() => [ :disabled="!product.isSetup" max-height="2" > - +