|
@@ -1,44 +1,32 @@
|
|
|
import request from 'utils/request'
|
|
|
-import { baseApi } from 'utils/config'
|
|
|
-import {fetch,post,put} from 'utils/http';
|
|
|
+import {
|
|
|
+ baseApi
|
|
|
+} from 'utils/config'
|
|
|
+import {
|
|
|
+ fetch,
|
|
|
+ post,
|
|
|
+ put
|
|
|
+} from 'utils/http';
|
|
|
|
|
|
|
|
|
-export function getTeamList (type) {
|
|
|
- return fetch('manageBase/dept/tree',{deptId: 12345,type: type})
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+export function getTeamList(deptId, type) {
|
|
|
+ return fetch('manageBase/dept/tree', {
|
|
|
+ deptId: deptId,
|
|
|
+ type: type
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
-export function getTeamChildList (deptId,type) {
|
|
|
- return fetch('manageBase/dept/child',{deptId: deptId,type:type})
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+export function getTeamChildList(deptId, type) {
|
|
|
+ return fetch('manageBase/dept/child', {
|
|
|
+ deptId: deptId,
|
|
|
+ type: type
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
-export function addTeam (data) {
|
|
|
- return post('manageBase/dept',data)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+export function addTeam(data) {
|
|
|
+ return post('manageBase/dept', data)
|
|
|
}
|
|
|
|
|
|
-export function setTeam (data) {
|
|
|
- return put('manageBase/dept',data)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
+export function setTeam(data) {
|
|
|
+ return put('manageBase/dept', data)
|
|
|
+}
|