通用对象查询封装、权限封装
This commit is contained in:
@@ -1,22 +1,11 @@
|
||||
import myaxios from '@/util/myaxios'
|
||||
import {objctToDic} from '@/util/objctHandle'
|
||||
export default {
|
||||
getList() {
|
||||
return myaxios({
|
||||
url: '/Role/GetList',
|
||||
method: 'post',
|
||||
data: {
|
||||
parameters: [
|
||||
{
|
||||
key: "isDeleted",
|
||||
value: "0",
|
||||
type: 0
|
||||
|
||||
}
|
||||
],
|
||||
orderBys: [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
data: objctToDic()
|
||||
})
|
||||
},
|
||||
giveRoleSetMenu(roleList, menuList) {
|
||||
|
||||
@@ -1,14 +1,5 @@
|
||||
import myaxios from '@/util/myaxios'
|
||||
export default {
|
||||
SetRoleByUser(userIds, roleIds) {
|
||||
return myaxios({
|
||||
url: '/User/SetRoleByUser',
|
||||
method: 'post',
|
||||
data: { "ids1": userIds, "ids2": roleIds }
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
|
||||
GetUserInRolesByHttpUser() {
|
||||
return myaxios({
|
||||
|
||||
Reference in New Issue
Block a user