|
|
|
@ -34,34 +34,34 @@ export const FILE_URL = app.FILE_URL_APP; |
|
|
|
|
*/ |
|
|
|
|
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";//删除
|
|
|
|
|
this.getCaseListApi = trainApi + "/trainCaseManage/list"; //实训管理列表
|
|
|
|
|
this.insertCaseApi = trainApi + "/trainCaseManage/add";//添加
|
|
|
|
|
this.updCaseApi = trainApi + "/trainCaseManage/edit";//修改
|
|
|
|
|
this.delCaseApi = trainApi + "/trainCaseManage/remove";//删除
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//实训管理列表
|
|
|
|
|
getTrainList(params) { |
|
|
|
|
//实训案例管理列表
|
|
|
|
|
getCaseList(params) { |
|
|
|
|
return axios |
|
|
|
|
.post(this.getTrainListApi, qs.stringify(params)) |
|
|
|
|
.post(this.getCaseListApi, qs.stringify(params), {headers: {requestType: "noToken"}}) |
|
|
|
|
.then(res => res.data); |
|
|
|
|
} |
|
|
|
|
//添加
|
|
|
|
|
insertTrain(params) { |
|
|
|
|
insertCase(params) { |
|
|
|
|
return axios |
|
|
|
|
.post(this.insertTrainApi, qs.stringify(params)) |
|
|
|
|
.post(this.insertCaseApi, qs.stringify(params)) |
|
|
|
|
.then(res => res.data); |
|
|
|
|
} |
|
|
|
|
//修改
|
|
|
|
|
updTrain(params) { |
|
|
|
|
updCase(params) { |
|
|
|
|
return axios |
|
|
|
|
.post(this.updTrainApi, qs.stringify(params)) |
|
|
|
|
.post(this.updCaseApi, qs.stringify(params)) |
|
|
|
|
.then(res => res.data); |
|
|
|
|
} |
|
|
|
|
//删除
|
|
|
|
|
delTrain(params) { |
|
|
|
|
delCase(params) { |
|
|
|
|
return axios |
|
|
|
|
.post(this.delTrainApi, qs.stringify(params)) |
|
|
|
|
.post(this.delCaseApi, qs.stringify(params)) |
|
|
|
|
.then(res => res.data); |
|
|
|
|
} |
|
|
|
|
})(); |
|
|
|
|