inleft
2022-02-09 9bcb19959eeb9da9bde2561e7278f6d0a55eb151
commit | author | age
9bcb19 1 import { axios } from '@/utils/request'
I 2
3 /**
4  * 获取机构树
5  *
6  * @author yubaoshan
7  * @date 2020/4/26 12:08
8  */
9 export function getOrgTree (parameter) {
10   return axios({
11     url: '/sysOrg/tree',
12     method: 'get',
13     params: parameter
14   })
15 }
16
17 /**
18  * 获取机构列表
19  *
20  * @author yubaoshan
21  * @date 2020/5/11 12:59
22  */
23 export function getOrgList (parameter) {
24   return axios({
25     url: '/sysOrg/list',
26     method: 'get',
27     params: parameter
28   })
29 }
30
31 /**
32  * 获取机构列表
33  *
34  * @author yubaoshan
35  * @date 2020/5/11 16:17
36  */
37 export function getOrgPage (parameter) {
38   return axios({
39     url: '/sysOrg/page',
40     method: 'get',
41     params: parameter
42   })
43 }
44
45 /**
46  * 新增机构
47  *
48  * @author yubaoshan
49  * @date 2020/5/11 13:56
50  */
51 export function sysOrgAdd (parameter) {
52   return axios({
53     url: '/sysOrg/add',
54     method: 'post',
55     data: parameter
56   })
57 }
58
59 /**
60  * 编辑机构
61  *
62  * @author yubaoshan
63  * @date 2020/5/11 13:56
64  */
65 export function sysOrgEdit (parameter) {
66   return axios({
67     url: '/sysOrg/edit',
68     method: 'post',
69     data: parameter
70   })
71 }
72
73 /**
74  * 删除机构
75  *
76  * @author yubaoshan
77  * @date 2020/5/11 12:59
78  */
79 export function sysOrgDelete (parameter) {
80   return axios({
81     url: '/sysOrg/delete',
82     method: 'post',
83     data: parameter
84   })
85 }
86
87 /**
88  * 导出系统机构
89  *
90  * @author yubaoshan
91  * @date 2021/5/30 12:58
92  */
93 export function sysOrgExport (parameter) {
94   return axios({
95     url: '/sysOrg/export',
96     method: 'get',
97     params: parameter,
98     responseType: 'blob'
99   })
100 }