通用对象查询封装、权限封装

This commit is contained in:
橙子
2022-05-04 15:54:40 +08:00
parent b934ce2893
commit 3994f14010
9 changed files with 46 additions and 61 deletions

View File

@@ -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) {

View File

@@ -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({