diff --git a/index.html b/index.html
index e5c8853..0dec1a7 100644
--- a/index.html
+++ b/index.html
@@ -19,6 +19,9 @@
#app-navs > * {
margin: 0 12px;
}
+ #app-navs .el-form-item{
+ margin-bottom: 0;
+ }
diff --git a/src/api/roleManagement.ts b/src/api/roleManagement.ts
new file mode 100644
index 0000000..4704059
--- /dev/null
+++ b/src/api/roleManagement.ts
@@ -0,0 +1,55 @@
+import request from '@/utils/request'
+
+export function getList(data) {
+ return request({
+ url: '/role/queryRoleByPage',
+ method: 'post',
+ data,
+ })
+}
+
+export function doAdd(data) {
+ return request({
+ url: '/role/create',
+ method: 'post',
+ data,
+ })
+}
+export function doUpdate(data) {
+ return request({
+ url: '/role/update',
+ method: 'post',
+ data,
+ })
+}
+
+export function doDelete(data) {
+ return request({
+ url: '/role/destroy',
+ method: 'post',
+ data,
+ })
+}
+/**
+ * 获取角色列表
+ * @return {Promise>}
+ */
+export function getRoleList() {
+ return request({
+ url: '/role/list',
+ method: 'get',
+ })
+}
+
+/**
+ * 根据用户ID获取角色ID
+ */
+export function getRoleByUserId(userId) {
+ return request({
+ url: '/userRole/getByUserId',
+ method: 'get',
+ params: {
+ userId,
+ },
+ })
+}
diff --git a/src/utils/common-util.ts b/src/utils/common-util.ts
index c2cf483..4c7bb0e 100644
--- a/src/utils/common-util.ts
+++ b/src/utils/common-util.ts
@@ -133,3 +133,13 @@ export function allIcons(): string[] {
.filter((it) => !it.endsWith('-1'))
return aIcons
}
+
+/**
+ * 等待一段时间
+ * @param ms 毫秒
+ */
+export async function delay(ms: number) {
+ await new Promise((r) => {
+ setTimeout(r, ms)
+ })
+}
diff --git a/src/views/menuManagement/index.vue b/src/views/menuManagement/index.vue
index ed620fe..e436e83 100644
--- a/src/views/menuManagement/index.vue
+++ b/src/views/menuManagement/index.vue
@@ -138,7 +138,7 @@
},
}
-
diff --git a/src/views/roleManagement/index.vue b/src/views/roleManagement/index.vue
new file mode 100644
index 0000000..741aa09
--- /dev/null
+++ b/src/views/roleManagement/index.vue
@@ -0,0 +1,193 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.menuTitle.toString() }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+