diff --git a/src/api/monitor/job.js b/src/api/monitor/job.js index cc40c0fa..101abec4 100644 --- a/src/api/monitor/job.js +++ b/src/api/monitor/job.js @@ -29,8 +29,8 @@ export function addJob(data) { // 修改定时任务调度 export function updateJob(data) { return request({ - url: '/schedule/job', - method: 'put', + url: '/schedule/job/edit', + method: 'post', data: data }) } @@ -51,7 +51,7 @@ export function changeJobStatus(jobId, status) { } return request({ url: '/schedule/job/changeStatus', - method: 'put', + method: 'post', data: data }) } @@ -65,7 +65,7 @@ export function runJob(jobId, jobGroup) { } return request({ url: '/schedule/job/run', - method: 'put', + method: 'post', data: data }) } \ No newline at end of file diff --git a/src/api/system/config.js b/src/api/system/config.js index 30ad8aa8..d20c6d56 100644 --- a/src/api/system/config.js +++ b/src/api/system/config.js @@ -37,8 +37,8 @@ export function addConfig(data) { // 修改参数配置 export function updateConfig(data) { return request({ - url: '/system/config', - method: 'put', + url: '/system/config/edit', + method: 'post', data: data }) } diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 52e3e17e..566a70b2 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -37,8 +37,8 @@ export function addDept(data) { // 修改部门 export function updateDept(data) { return request({ - url: '/system/dept', - method: 'put', + url: '/system/dept/edit', + method: 'post', data: data }) } diff --git a/src/api/system/dict/data.js b/src/api/system/dict/data.js index a9998db9..6fd1b7db 100644 --- a/src/api/system/dict/data.js +++ b/src/api/system/dict/data.js @@ -37,8 +37,8 @@ export function addData(data) { // 修改字典数据 export function updateData(data) { return request({ - url: '/system/dict/data', - method: 'put', + url: '/system/dict/data/edit', + method: 'post', data: data }) } diff --git a/src/api/system/dict/type.js b/src/api/system/dict/type.js index bc601ffe..16e6aac4 100644 --- a/src/api/system/dict/type.js +++ b/src/api/system/dict/type.js @@ -29,8 +29,8 @@ export function addType(data) { // 修改字典类型 export function updateType(data) { return request({ - url: '/system/dict/type', - method: 'put', + url: '/system/dict/type/edit', + method: 'post', data: data }) } diff --git a/src/api/system/menu.js b/src/api/system/menu.js index 58cc4d27..0dff19c6 100644 --- a/src/api/system/menu.js +++ b/src/api/system/menu.js @@ -45,8 +45,8 @@ export function addMenu(data) { // 修改菜单 export function updateMenu(data) { return request({ - url: '/system/menu', - method: 'put', + url: '/system/menu/edit', + method: 'post', data: data }) } diff --git a/src/api/system/notice.js b/src/api/system/notice.js index 9ea09732..4fdee030 100644 --- a/src/api/system/notice.js +++ b/src/api/system/notice.js @@ -29,8 +29,8 @@ export function addNotice(data) { // 修改公告 export function updateNotice(data) { return request({ - url: '/system/notice', - method: 'put', + url: '/system/notice/edit', + method: 'post', data: data }) } diff --git a/src/api/system/post.js b/src/api/system/post.js index 20aa0d50..6103fd6b 100644 --- a/src/api/system/post.js +++ b/src/api/system/post.js @@ -29,8 +29,8 @@ export function addPost(data) { // 修改岗位 export function updatePost(data) { return request({ - url: '/system/post', - method: 'put', + url: '/system/post/edit', + method: 'post', data: data }) } diff --git a/src/api/system/role.js b/src/api/system/role.js index 8e2e2d3f..abbe6cba 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -29,8 +29,8 @@ export function addRole(data) { // 修改角色 export function updateRole(data) { return request({ - url: '/system/role', - method: 'put', + url: '/system/role/edit', + method: 'post', data: data }) } @@ -38,8 +38,8 @@ export function updateRole(data) { // 角色数据权限 export function dataScope(data) { return request({ - url: '/system/role/dataScope', - method: 'put', + url: '/system/role/dataScope/edit', + method: 'post', data: data }) } @@ -52,7 +52,7 @@ export function changeRoleStatus(roleId, status) { } return request({ url: '/system/role/changeStatus', - method: 'put', + method: 'post', data: data }) } @@ -87,7 +87,7 @@ export function unallocatedUserList(query) { export function authUserCancel(data) { return request({ url: '/system/role/authUser/cancel', - method: 'put', + method: 'post', data: data }) } @@ -96,7 +96,7 @@ export function authUserCancel(data) { export function authUserCancelAll(data) { return request({ url: '/system/role/authUser/cancelAll', - method: 'put', + method: 'post', params: data }) } @@ -105,7 +105,7 @@ export function authUserCancelAll(data) { export function authUserSelectAll(data) { return request({ url: '/system/role/authUser/selectAll', - method: 'put', + method: 'post', params: data }) } diff --git a/src/api/system/user.js b/src/api/system/user.js index 97c70e60..07c7190d 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -30,8 +30,8 @@ export function addUser(data) { // 修改用户 export function updateUser(data) { return request({ - url: '/system/user', - method: 'put', + url: '/system/user/edit', + method: 'post', data: data }) } @@ -52,7 +52,7 @@ export function resetUserPwd(userId, password) { } return request({ url: '/system/user/resetPwd', - method: 'put', + method: 'post', data: data }) } @@ -65,7 +65,7 @@ export function changeUserStatus(userId, status) { } return request({ url: '/system/user/changeStatus', - method: 'put', + method: 'post', data: data }) } @@ -81,8 +81,8 @@ export function getUserProfile() { // 修改用户个人信息 export function updateUserProfile(data) { return request({ - url: '/system/user/profile', - method: 'put', + url: '/system/user/profile/edit', + method: 'post', data: data }) } @@ -95,7 +95,7 @@ export function updateUserPwd(oldPassword, newPassword) { } return request({ url: '/system/user/profile/updatePwd', - method: 'put', + method: 'post', params: data }) } @@ -123,8 +123,8 @@ export function getAuthRole(userId) { // 保存授权角色 export function updateAuthRole(data) { return request({ - url: '/system/user/authRole', - method: 'put', + url: '/system/user/authRole/edit', + method: 'post', params: data }) } diff --git a/src/api/tool/gen.js b/src/api/tool/gen.js index 104a4575..ba9a22f7 100644 --- a/src/api/tool/gen.js +++ b/src/api/tool/gen.js @@ -28,8 +28,8 @@ export function getGenTable(tableId) { // 修改代码生成信息 export function updateGenTable(data) { return request({ - url: '/code/gen', - method: 'put', + url: '/code/gen/edit', + method: 'post', data: data }) }