|
@@ -16,6 +16,15 @@ export function getAllDept() {
|
|
|
}
|
|
|
|
|
|
export function getDeptSuperior(ids) {
|
|
|
+ const data = ids.length || ids.length === 0 ? ids : Array.of(ids)
|
|
|
+ return request({
|
|
|
+ url: 'api/dept/superior',
|
|
|
+ method: 'post',
|
|
|
+ data: [data]
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+export function getRoleDeptSuperior(ids) {
|
|
|
const data = ids.length || ids.length === 0 ? ids : Array.of(ids)
|
|
|
return request({
|
|
|
url: 'api/dept/superior',
|
|
@@ -48,4 +57,4 @@ export function edit(data) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-export default { add, edit, del, getDepts, getDeptSuperior, getAllDept }
|
|
|
+export default { add, edit, del, getDepts, getDeptSuperior, getAllDept, getRoleDeptSuperior }
|