Blame view

src/http/modules/dept.js 473 Bytes
e7ab2c09a   alexYang   权限部分
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  import axios from '../axios'
  
  /* 
   * 机构管理模块
   */
  
  // 保存
  export const save = (data) => {
      return axios({
          url: '/dept/save',
          method: 'post',
          data
      })
  }
  // 删除
  export const batchDelete = (data) => {
      return axios({
          url: '/dept/delete',
          method: 'post',
          data
      })
  }
  // 查询机构树
  export const findDeptTree = () => {
      return axios({
          url: '/dept/findTree',
          method: 'get'
      })
  }