huibing.xie | 1f1606f | 2018-08-20 15:46:55 +0800 | [diff] [blame] | 1 | import request from '@/utils/request' |
| 2 | |
| 3 | export function getList(params) { |
| 4 | return request({ |
| 5 | url: '/api/system/department/list-api', |
| 6 | // url: 'http://localhost:8080/leaveschool/api/v1/base/department', |
| 7 | method: 'get', |
| 8 | params |
| 9 | }) |
| 10 | } |
huibing.xie | bba5eb9 | 2018-08-27 11:12:36 +0800 | [diff] [blame] | 11 | export function getDeptList(params) { |
huibing.xie | 1f1606f | 2018-08-20 15:46:55 +0800 | [diff] [blame] | 12 | return request({ |
huibing.xie | bba5eb9 | 2018-08-27 11:12:36 +0800 | [diff] [blame] | 13 | url: '/api/system/department/dept-list', |
| 14 | method: 'get', |
| 15 | params |
| 16 | }) |
| 17 | } |
| 18 | export function getSectionList(params) { |
| 19 | return request({ |
| 20 | url: '/api/system/department/section-list', |
huibing.xie | 1f1606f | 2018-08-20 15:46:55 +0800 | [diff] [blame] | 21 | method: 'get', |
| 22 | params |
| 23 | }) |
| 24 | } |
| 25 | export function getItem(params) { |
| 26 | return request({ |
| 27 | url: '/api/system/department/get-item', |
| 28 | method: 'get', |
| 29 | params |
| 30 | }) |
| 31 | } |
| 32 | |
| 33 | export function createDepartment(data) { |
| 34 | return request({ |
| 35 | url: '/api/system/department/create-department', |
| 36 | method: 'post', |
| 37 | data |
| 38 | }) |
| 39 | } |
| 40 | |
| 41 | export function deleteDepartment(data) { |
| 42 | return request({ |
| 43 | url: '/api/system/department/delete-department', |
| 44 | method: 'delete', |
| 45 | data |
| 46 | }) |
| 47 | } |