| 对比新文件 |
| | |
| | | import request from '@/utils/request'
|
| | |
|
| | | // 鏌ヨ閮ㄩ棬鍒楄〃
|
| | | export function listDept(query) {
|
| | | return request({
|
| | | url: '/system/dept/list',
|
| | | method: 'get',
|
| | | params: query
|
| | | })
|
| | | }
|
| | |
|
| | | // 鏌ヨ閮ㄩ棬鍒楄〃锛堟帓闄よ妭鐐癸級
|
| | | export function listDeptExcludeChild(deptId) {
|
| | | return request({
|
| | | url: '/system/dept/list/exclude/' + deptId,
|
| | | method: 'get'
|
| | | })
|
| | | }
|
| | |
|
| | | // 鏌ヨ閮ㄩ棬璇︾粏
|
| | | export function getDept(deptId) {
|
| | | return request({
|
| | | url: '/system/dept/' + deptId,
|
| | | method: 'get'
|
| | | })
|
| | | }
|
| | |
|
| | | // 鏂板閮ㄩ棬
|
| | | export function addDept(data) {
|
| | | return request({
|
| | | url: '/system/dept',
|
| | | method: 'post',
|
| | | data: data
|
| | | })
|
| | | }
|
| | |
|
| | | // 淇敼閮ㄩ棬
|
| | | export function updateDept(data) {
|
| | | return request({
|
| | | url: '/system/dept',
|
| | | method: 'put',
|
| | | data: data
|
| | | })
|
| | | }
|
| | |
|
| | | // 鍒犻櫎閮ㄩ棬
|
| | | export function delDept(deptId) {
|
| | | return request({
|
| | | url: '/system/dept/' + deptId,
|
| | | method: 'delete'
|
| | | })
|
| | | } |