优化代码生成

This commit is contained in:
不做码农
2022-04-27 17:57:47 +08:00
22 changed files with 744 additions and 93 deletions

View File

@@ -63,8 +63,8 @@ export function delMenu(menuId) {
export function changeMenuSort(data) {
return request({
url: '/system/Menu/ChangeSort',
method: 'post',
data: data
method: 'get',
params: data
})
}
@@ -75,4 +75,4 @@ export const getRouters = (query) => {
method: 'get',
params: query
})
}
}

View File

@@ -425,7 +425,7 @@ export default {
*/
handleChangeSort(item) {
this.editIndex = -1;
changeMenuSort({ orderNum: item.orderNum, menuId: item.menuId }).then(
changeMenuSort({ value: item.orderNum, id: item.menuId }).then(
(response) => {
this.msgSuccess("修改成功");
this.getList();

View File

@@ -155,7 +155,6 @@ import {
changeRoleStatus
} from '@/api/system/role'
import {
treeselect as menuTreeselect,
roleMenuTreeselect
} from '@/api/system/menu'
import {
@@ -277,12 +276,6 @@ export default {
}
)
},
/** 查询菜单树结构 */
getMenuTreeselect() {
menuTreeselect().then((response) => {
this.menuOptions = response.data
})
},
/** 查询部门树结构 */
getDeptTreeselect() {
deptTreeselect().then((response) => {