|
|
@ -13,6 +13,7 @@ import {app} from "./app"; |
|
|
|
// const sysconfApi = "http://127.0.0.1:9131";
|
|
|
|
// const sysconfApi = "http://127.0.0.1:9131";
|
|
|
|
// const loginApi = "http://127.0.0.1:9121";
|
|
|
|
// const loginApi = "http://127.0.0.1:9121";
|
|
|
|
// const userApi = "http://127.0.0.1:9101";
|
|
|
|
// const userApi = "http://127.0.0.1:9101";
|
|
|
|
|
|
|
|
const trainApi = app.trainUrl; |
|
|
|
const sysconfApi = app.sysconfUrl; |
|
|
|
const sysconfApi = app.sysconfUrl; |
|
|
|
const loginApi = app.loginUrl; |
|
|
|
const loginApi = app.loginUrl; |
|
|
|
const userApi = app.userUrl; |
|
|
|
const userApi = app.userUrl; |
|
|
@ -28,6 +29,43 @@ const botApi = app.botUrl; |
|
|
|
export const FILE_URL = app.FILE_URL_APP; |
|
|
|
export const FILE_URL = app.FILE_URL_APP; |
|
|
|
// export const FILE_URL = "http://127.0.0.1:8088/";
|
|
|
|
// export const FILE_URL = "http://127.0.0.1:8088/";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 实训管理模块 Train |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
export const Train = new (class { |
|
|
|
|
|
|
|
constructor() { |
|
|
|
|
|
|
|
this.getTrainListApi = trainApi + "/trainManage/list"; //实训管理列表
|
|
|
|
|
|
|
|
this.insertTrainApi = trainApi + "/trainManage/add";//添加
|
|
|
|
|
|
|
|
this.updTrainApi = trainApi + "/trainManage/edit";//修改
|
|
|
|
|
|
|
|
this.delTrainApi = trainApi + "/trainManage/remove";//删除
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//实训管理列表
|
|
|
|
|
|
|
|
getTrainList(params) { |
|
|
|
|
|
|
|
return axios |
|
|
|
|
|
|
|
.post(this.getTrainListApi, qs.stringify(params)) |
|
|
|
|
|
|
|
.then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//添加
|
|
|
|
|
|
|
|
insertTrain(params) { |
|
|
|
|
|
|
|
return axios |
|
|
|
|
|
|
|
.post(this.insertTrainApi, qs.stringify(params)) |
|
|
|
|
|
|
|
.then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//修改
|
|
|
|
|
|
|
|
updTrain(params) { |
|
|
|
|
|
|
|
return axios |
|
|
|
|
|
|
|
.post(this.updTrainApi, qs.stringify(params)) |
|
|
|
|
|
|
|
.then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//删除
|
|
|
|
|
|
|
|
delTrain(params) { |
|
|
|
|
|
|
|
return axios |
|
|
|
|
|
|
|
.post(this.delTrainApi, qs.stringify(params)) |
|
|
|
|
|
|
|
.then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 用户管理api模块 |
|
|
|
* 用户管理api模块 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|