优化代码生成
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user