-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
136 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,56 @@ | ||
import fetch from '@/utils/fetch' | ||
export function List(){ | ||
export function MenuList(){ | ||
return fetch({ | ||
url: '/menu/list', | ||
method: 'post' | ||
}) | ||
} | ||
|
||
export function Delete(id){ | ||
export function MenuTree(){ | ||
return fetch({ | ||
url: '/menu/treelist', | ||
method: 'post' | ||
}) | ||
} | ||
|
||
export function DeleteMenu(id){ | ||
return fetch({ | ||
url: '/menu/delete', | ||
method: 'post', | ||
params:{id} | ||
}) | ||
} | ||
|
||
export function Detail(id){ | ||
export function GetMenuDetail(id){ | ||
return fetch({ | ||
url: '/menu/detail', | ||
method: 'post', | ||
params:{id} | ||
}) | ||
} | ||
|
||
export function Add(data){ | ||
export function AddMenu(data){ | ||
return fetch({ | ||
url: '/menu/add', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
export function Update(data){ | ||
export function UpdateMenu(data){ | ||
return fetch({ | ||
url: '/menu/update', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
export function GetMenuTreeByRoleID(roleid){ | ||
return fetch({ | ||
url: '/menu/MenuTreeByRoleID', | ||
method: 'post', | ||
params:{ | ||
roleid | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.