diff --git a/pom.xml b/pom.xml
index 967baf8ca..83d372add 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,15 +22,15 @@
${java.version}
3.8.0
- 2.4.2
+ 2.4.4
3.0.2
1.5.22
5.1.46
1.2.4
- 3.4.1
- 3.14.1
+ 3.4.2
+ 3.15.1
1.7.0
@@ -42,7 +42,7 @@
1.16.14
1.4.1.Final
- 5.5.6
+ 5.6.1
2.2.7
2.2
1.0.5
@@ -249,27 +249,7 @@
cn.hutool
- hutool-core
- ${hutool.version}
-
-
- cn.hutool
- hutool-extra
- ${hutool.version}
-
-
- cn.hutool
- hutool-captcha
- ${hutool.version}
-
-
- cn.hutool
- hutool-http
- ${hutool.version}
-
-
- cn.hutool
- hutool-crypto
+ hutool-all
${hutool.version}
diff --git a/ruoyi-ui/src/api/system/dept.js b/ruoyi-ui/src/api/system/dept.js
index c22f0f4a8..d8c59cf9a 100644
--- a/ruoyi-ui/src/api/system/dept.js
+++ b/ruoyi-ui/src/api/system/dept.js
@@ -46,7 +46,7 @@ export function addDept(data) {
export function updateDept(data) {
return request({
url: '/system/dept/update',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -55,6 +55,6 @@ export function updateDept(data) {
export function delDept(id) {
return request({
url: '/system/dept/delete?id=' + id,
- method: 'post'
+ method: 'delete'
})
}
diff --git a/ruoyi-ui/src/api/system/dict/data.js b/ruoyi-ui/src/api/system/dict/data.js
index c29b2f81f..00e614b15 100644
--- a/ruoyi-ui/src/api/system/dict/data.js
+++ b/ruoyi-ui/src/api/system/dict/data.js
@@ -38,7 +38,7 @@ export function addData(data) {
export function updateData(data) {
return request({
url: '/system/dict-data/update',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -47,7 +47,7 @@ export function updateData(data) {
export function delData(dictCode) {
return request({
url: '/system/dict-data/delete?id=' + dictCode,
- method: 'post'
+ method: 'delete'
})
}
diff --git a/ruoyi-ui/src/api/system/dict/type.js b/ruoyi-ui/src/api/system/dict/type.js
index a1423f1d6..9fe10d418 100644
--- a/ruoyi-ui/src/api/system/dict/type.js
+++ b/ruoyi-ui/src/api/system/dict/type.js
@@ -30,7 +30,7 @@ export function addType(data) {
export function updateType(data) {
return request({
url: '/system/dict-type/update',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -39,7 +39,7 @@ export function updateType(data) {
export function delType(dictId) {
return request({
url: '/system/dict-type/delete?id=' + dictId,
- method: 'post'
+ method: 'delete'
})
}
diff --git a/ruoyi-ui/src/api/system/menu.js b/ruoyi-ui/src/api/system/menu.js
index fb3fa6e98..b378b01d9 100644
--- a/ruoyi-ui/src/api/system/menu.js
+++ b/ruoyi-ui/src/api/system/menu.js
@@ -38,7 +38,7 @@ export function addMenu(data) {
export function updateMenu(data) {
return request({
url: '/system/menu/update',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -47,6 +47,6 @@ export function updateMenu(data) {
export function delMenu(id) {
return request({
url: '/system/menu/delete?id=' + id,
- method: 'post'
+ method: 'delete'
})
}
diff --git a/ruoyi-ui/src/api/system/notice.js b/ruoyi-ui/src/api/system/notice.js
index 744bba745..b8c7cf709 100644
--- a/ruoyi-ui/src/api/system/notice.js
+++ b/ruoyi-ui/src/api/system/notice.js
@@ -30,7 +30,7 @@ export function addNotice(data) {
export function updateNotice(data) {
return request({
url: '/system/notice/update',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -39,6 +39,6 @@ export function updateNotice(data) {
export function delNotice(noticeId) {
return request({
url: '/system/notice/delete?id=' + noticeId,
- method: 'post'
+ method: 'delete'
})
}
diff --git a/ruoyi-ui/src/api/system/post.js b/ruoyi-ui/src/api/system/post.js
index cb1dfc3e5..3ef4a9906 100644
--- a/ruoyi-ui/src/api/system/post.js
+++ b/ruoyi-ui/src/api/system/post.js
@@ -38,7 +38,7 @@ export function addPost(data) {
export function updatePost(data) {
return request({
url: '/system/post/update',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -47,7 +47,7 @@ export function updatePost(data) {
export function delPost(postId) {
return request({
url: '/system/post/delete?id=' + postId,
- method: 'post'
+ method: 'delete'
})
}
diff --git a/ruoyi-ui/src/api/system/role.js b/ruoyi-ui/src/api/system/role.js
index 36edcc2dd..27bb0500b 100644
--- a/ruoyi-ui/src/api/system/role.js
+++ b/ruoyi-ui/src/api/system/role.js
@@ -38,7 +38,7 @@ export function addRole(data) {
export function updateRole(data) {
return request({
url: '/system/role/update',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -51,7 +51,7 @@ export function changeRoleStatus(id, status) {
}
return request({
url: '/system/role/update-status',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -60,7 +60,7 @@ export function changeRoleStatus(id, status) {
export function delRole(roleId) {
return request({
url: '/system/role/delete?id=' + roleId,
- method: 'post'
+ method: 'delete'
})
}
diff --git a/ruoyi-ui/src/api/system/user.js b/ruoyi-ui/src/api/system/user.js
index 7676e2bcb..cf0f007d5 100644
--- a/ruoyi-ui/src/api/system/user.js
+++ b/ruoyi-ui/src/api/system/user.js
@@ -31,7 +31,7 @@ export function addUser(data) {
export function updateUser(data) {
return request({
url: '/system/user/update',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -62,7 +62,7 @@ export function resetUserPwd(id, password) {
}
return request({
url: '/system/user/update-password',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -75,7 +75,7 @@ export function changeUserStatus(id, status) {
}
return request({
url: '/system/user/update-status',
- method: 'post',
+ method: 'put',
data: data
})
}
@@ -83,7 +83,7 @@ export function changeUserStatus(id, status) {
// 查询用户个人信息
export function getUserProfile() {
return request({
- url: '/system/user/profile',
+ url: '/system/user/profile/get',
method: 'get'
})
}
@@ -91,7 +91,7 @@ export function getUserProfile() {
// 修改用户个人信息
export function updateUserProfile(data) {
return request({
- url: '/system/user/profile',
+ url: '/system/user/profile/update',
method: 'put',
data: data
})
@@ -104,9 +104,9 @@ export function updateUserPwd(oldPassword, newPassword) {
newPassword
}
return request({
- url: '/system/user/profile/updatePwd',
+ url: '/system/user/profile/update-password',
method: 'put',
- params: data
+ data: data
})
}
@@ -114,7 +114,7 @@ export function updateUserPwd(oldPassword, newPassword) {
export function uploadAvatar(data) {
return request({
url: '/system/user/profile/avatar',
- method: 'post',
+ method: 'put',
data: data
})
}
diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js
index 82b2b18fa..f7084c59c 100644
--- a/ruoyi-ui/src/store/modules/user.js
+++ b/ruoyi-ui/src/store/modules/user.js
@@ -53,7 +53,7 @@ const user = {
getInfo(state.token).then(res => {
res = res.data; // 读取 data 数据
const user = res.user
- const avatar = user.avatar === "" ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar;
+ const avatar = user.avatar === "" ? require("@/assets/images/profile.jpg") : user.avatar;
if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组
commit('SET_ROLES', res.roles)
commit('SET_PERMISSIONS', res.permissions)
diff --git a/ruoyi-ui/src/views/system/dept/index.vue b/ruoyi-ui/src/views/system/dept/index.vue
index 5485703ac..0fc5a8733 100644
--- a/ruoyi-ui/src/views/system/dept/index.vue
+++ b/ruoyi-ui/src/views/system/dept/index.vue
@@ -2,22 +2,11 @@
-
+
-
+
@@ -28,24 +17,13 @@
- 新增
+ 新增
-
+
@@ -56,28 +34,12 @@
- 修改
- 新增
- 删除
+ 修改
+ 新增
+ 删除
@@ -119,11 +81,8 @@
- {{dict.label}}
+
+ {{dict.label}}
diff --git a/ruoyi-ui/src/views/system/dict/data.vue b/ruoyi-ui/src/views/system/dict/data.vue
index 262ea31bb..13d262303 100644
--- a/ruoyi-ui/src/views/system/dict/data.vue
+++ b/ruoyi-ui/src/views/system/dict/data.vue
@@ -3,31 +3,15 @@
-
+
-
+
-
+
@@ -38,22 +22,12 @@
- 新增
+ 新增
- 导出
+ 导出
@@ -72,31 +46,16 @@
- 修改
- 删除
+ 修改
+ 删除
-
+
@@ -115,11 +74,7 @@
- {{dict.label}}
+ {{dict.label}}
diff --git a/ruoyi-ui/src/views/system/dict/index.vue b/ruoyi-ui/src/views/system/dict/index.vue
index 4f92859a0..a730e61bf 100644
--- a/ruoyi-ui/src/views/system/dict/index.vue
+++ b/ruoyi-ui/src/views/system/dict/index.vue
@@ -2,52 +2,19 @@
-
+
-
+
-
-
+
+
-
+
搜索
@@ -57,22 +24,12 @@
- 新增
+ 新增
- 导出
+ 导出
@@ -96,31 +53,16 @@
- 修改
- 删除
+ 修改
+ 删除
-
+
@@ -133,11 +75,7 @@
- {{dict.label}}
+ {{dict.label}}
diff --git a/ruoyi-ui/src/views/system/loginlog/index.vue b/ruoyi-ui/src/views/system/loginlog/index.vue
index 601c9420f..5e572aa94 100644
--- a/ruoyi-ui/src/views/system/loginlog/index.vue
+++ b/ruoyi-ui/src/views/system/loginlog/index.vue
@@ -2,56 +2,22 @@
-
+
-
+
-
-
-
+
+
+
-
+
搜索
@@ -61,13 +27,8 @@
- 导出
+ 导出
@@ -76,7 +37,7 @@
- {{ scope.row.logType === 1 ? '登录' : '退出' }}
+ {{ scope.row.logType === 100 ? '登录' : '退出' }}
@@ -95,13 +56,8 @@
-
+
diff --git a/ruoyi-ui/src/views/system/menu/index.vue b/ruoyi-ui/src/views/system/menu/index.vue
index e2e759eeb..767878e2e 100644
--- a/ruoyi-ui/src/views/system/menu/index.vue
+++ b/ruoyi-ui/src/views/system/menu/index.vue
@@ -2,22 +2,11 @@
-
+
-
+
@@ -28,23 +17,14 @@
- 新增
+ 新增
-
+
@@ -62,26 +42,12 @@
- 修改
- 新增
- 删除
+ 修改
+ 新增
+ 删除
@@ -92,43 +58,25 @@
-
+
- {{dict.label}}
+
+ {{dict.label}}
-
+
-
+
diff --git a/ruoyi-ui/src/views/system/notice/index.vue b/ruoyi-ui/src/views/system/notice/index.vue
index bc46b0d1b..30f17bcf2 100644
--- a/ruoyi-ui/src/views/system/notice/index.vue
+++ b/ruoyi-ui/src/views/system/notice/index.vue
@@ -2,31 +2,14 @@
-
+
-
+
-
+
@@ -37,39 +20,16 @@
- 新增
+ 新增
-
-
-
+
+
+
@@ -78,31 +38,16 @@
- 修改
- 删除
+ 修改
+ 删除
-
+
diff --git a/ruoyi-ui/src/views/system/operatelog/index.vue b/ruoyi-ui/src/views/system/operatelog/index.vue
index 0ba07c6c8..8833a749e 100644
--- a/ruoyi-ui/src/views/system/operatelog/index.vue
+++ b/ruoyi-ui/src/views/system/operatelog/index.vue
@@ -2,72 +2,28 @@
-
+
-
+
-
-
+
+
-
-
-
+
+
+
-
+
搜索
@@ -77,13 +33,8 @@
- 导出
+ 导出
diff --git a/ruoyi-ui/src/views/system/post/index.vue b/ruoyi-ui/src/views/system/post/index.vue
index 9a66f964c..80cab5d49 100644
--- a/ruoyi-ui/src/views/system/post/index.vue
+++ b/ruoyi-ui/src/views/system/post/index.vue
@@ -2,31 +2,14 @@
-
+
-
+
-
+
@@ -37,22 +20,12 @@
- 新增
+ 新增
- 导出
+ 导出
@@ -70,31 +43,16 @@
- 修改
- 删除
+ 修改
+ 删除
-
+
@@ -110,11 +68,8 @@
- {{dict.label}}
+
+ {{dict.label}}
diff --git a/ruoyi-ui/src/views/system/role/index.vue b/ruoyi-ui/src/views/system/role/index.vue
index eadb4cc31..744f5f90d 100644
--- a/ruoyi-ui/src/views/system/role/index.vue
+++ b/ruoyi-ui/src/views/system/role/index.vue
@@ -2,52 +2,21 @@
-
+
-
+
-
-
+
+
-
+
搜索
@@ -57,22 +26,12 @@
- 新增
+ 新增
- 导出
+ 导出
@@ -85,12 +44,7 @@
-
+
@@ -100,45 +54,20 @@
- 修改
- 菜单权限
- 数据权限
- 删除
+ 修改
+ 菜单权限
+ 数据权限
+ 删除
-
+
diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue
index 021716b78..8c836c28f 100644
--- a/ruoyi-ui/src/views/system/user/index.vue
+++ b/ruoyi-ui/src/views/system/user/index.vue
@@ -4,77 +4,32 @@
-
+
-
+
-
+
-
+
-
-
+
+
-
+
搜索
@@ -84,31 +39,16 @@
- 新增
+ 新增
- 导入
+ 导入
- 导出
+ 导出
@@ -121,12 +61,7 @@
-
+
@@ -134,60 +69,29 @@
{{ parseTime(scope.row.createTime) }}
-
+
- 修改
+ 修改
handleCommand(command, scope.$index, scope.row)">
更多操作
- 删除
- 重置
- 分配角色
+ 删除
+ 重置密码
+ 分配角色
-
+
@@ -203,8 +107,7 @@
+ placeholder="请选择归属部门" :normalizer="normalizer"/>
@@ -236,12 +139,7 @@
-
+
@@ -333,8 +231,18 @@