lyh
5 天以前 c150c4b99e3f3eec5825c4f921830ec06b1efe2c
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
30
31
32
33
34
35
36
37
38
39
import http from './public'
import querystring from 'querystring'
let sysConfig = require('@/../config/sysConfig');
let apiUrl = sysConfig.lxznApiUrlPre;
 
/*用户按钮权限*/
export const button_list = (param) => {
  let querys = querystring.stringify(param);
  return http.requestQuickGet(apiUrl+'/nc/user/get/button/perms?'+querys)
};
 
/*获取jwt令牌*/
export const getjwt= () => {
  return http.requestQuickGet(apiUrl+'/auth/user/jwt')
}
 
 
/*获取用户列表*/
export const user_select_list=()=> {
  return http.requestQuickGet(apiUrl+'/ucenter/user/find/all')
}
 
//根据类型编码获取按钮类型
export const single_dic_list = (typeCode) => {
  return http.requestGet(apiUrl + '/base/single/find/list?typeCode=' + typeCode)
};
 
//根据类型编码获取按钮类型
export const multiple_dic_list = (typeCode) => {
  return http.requestGet(apiUrl + '/multilevel/dictionary/find/select/list?typeCode=' + typeCode)
};
/*获取部门列表*/
export const depart_list = () => {
  return http.requestQuickGet(apiUrl+'/ucenter/depart/list/all')
};
/*获取所有多级部门数据(父子关系)*/
export const get_depart_tree = () => {
  return http.requestQuickGet(apiUrl+'/ucenter/depart/load/tree')
};