1
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
import http from '@/utils/http'
|
||||
class RolePermissionServer {
|
||||
async getRoles(callback) {
|
||||
let res = await http.get('/SysRolePermission/Query', {})
|
||||
let res = await window.framework.httpget('/SysRolePermission/Query', {})
|
||||
return res
|
||||
}
|
||||
|
||||
async getRole(row) {
|
||||
let res = await http.get('/SysRolePermission/QueryByRoleId', row)
|
||||
let res = await window.framework.httpget('/SysRolePermission/QueryByRoleId', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await http.post('/SysRolePermission/add', row)
|
||||
let res = await window.framework.http.post('/SysRolePermission/add', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await http.post('/SysRolePermission/edit', row)
|
||||
let res = await window.framework.http.post('/SysRolePermission/edit', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await http.post('/SysRolePermission/del', row)
|
||||
let res = await window.framework.http.post('/SysRolePermission/del', row)
|
||||
return res
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user