增加单位管理的接口
This commit is contained in:
@@ -12,7 +12,7 @@ const install = (Vue, vm) => {
|
||||
|
||||
|
||||
login: (params = {}) => vm.$u.post(config.adminPath+'/auth/login', params),
|
||||
getUserInfo: (params = {}) => vm.$u.get(config.adminPath+'/system/user/profile', params),
|
||||
getUserInfo: (params = {}) => vm.$u.get(config.adminPath+'/property/xcx/person/getInfo', params),
|
||||
//工作台列表
|
||||
getFunList:(params = {})=>vm.$u.get(config.adminPath+'/system/funList/list', params),
|
||||
//我的访客列表
|
||||
@@ -112,7 +112,13 @@ const install = (Vue, vm) => {
|
||||
office: {
|
||||
treeData: (params = {}) => vm.$u.get(config.adminPath+'/sys/office/treeData', params),
|
||||
},
|
||||
|
||||
// 单位管理
|
||||
unit:{
|
||||
addEmployee:(params = {}) => vm.$u.post(config.adminPath+'/property/xcx/person', params),
|
||||
queryEmployeeById:(params = {}) => vm.$u.get(config.adminPath+'/property/xcx/person/'+ params.id),
|
||||
queryEmployee:(params = {}) => vm.$u.get(config.adminPath+'/property/xcx/person/list', params),
|
||||
updateEmployee:(params = {}) => vm.$u.put(config.adminPath+'/property/xcx/person', params),
|
||||
},
|
||||
// 增删改查例子
|
||||
testData: {
|
||||
form: (params = {}) => vm.$u.post(config.adminPath+'/test/testData/form', params),
|
||||
|
@@ -25,7 +25,7 @@ const install = (Vue, vm) => {
|
||||
req.header = [];
|
||||
}
|
||||
req.header["source"] = "uniapp";
|
||||
req.header["clientId"] = "dab457a1ea14411787c240db05bb0832"
|
||||
req.header["clientId"] = "22b351e7583881d0a608dd44371bae41"
|
||||
// 默认指定返回 JSON 数据
|
||||
if (!req.header[ajaxHeader]){
|
||||
req.header[ajaxHeader] = 'json';
|
||||
|
@@ -46,7 +46,7 @@ function uploadSingleFile({
|
||||
const headers = {
|
||||
'x-requested-with': 'XMLHttpRequest',
|
||||
source: 'uniapp',
|
||||
clientId: 'dab457a1ea14411787c240db05bb0832',
|
||||
clientId: '22b351e7583881d0a608dd44371bae41',
|
||||
};
|
||||
|
||||
// 手动加上 Token
|
||||
|
Reference in New Issue
Block a user