diff --git a/src/api/server.js b/src/api/server.js index 1023f50..bf03faf 100644 --- a/src/api/server.js +++ b/src/api/server.js @@ -38,6 +38,8 @@ export const Train = new (class { this.insertCaseApi = trainApi + "/trainCaseManage/add";//添加 this.updCaseApi = trainApi + "/trainCaseManage/edit";//修改 this.delCaseApi = trainApi + "/trainCaseManage/remove";//删除 + + this.getTargetListApi = trainApi + "/trainCaseManage/targetList";//量化指标列表 } //实训案例管理列表 @@ -64,6 +66,13 @@ export const Train = new (class { .post(this.delCaseApi, qs.stringify(params)) .then(res => res.data); } + + //量化指标列表 + getTargetList(params) { + return axios + .get(this.getTargetListApi, {params: params}) + .then(res => res.data); + } })(); /** diff --git a/src/common/js/interceptor.js b/src/common/js/interceptor.js index 8a3d6d6..10606d4 100644 --- a/src/common/js/interceptor.js +++ b/src/common/js/interceptor.js @@ -5,7 +5,6 @@ import store from '@/vuex/store.js'; axios.defaults.timeout = 10000; axios.interceptors.request.use( function(config){ - debugger; // return config; // } // config.url = process.env.BASEAPI+process.env.ROOT+config.url; diff --git a/src/views/train/case-detail.vue b/src/views/train/case-detail.vue index bc7f119..9264b10 100644 --- a/src/views/train/case-detail.vue +++ b/src/views/train/case-detail.vue @@ -25,7 +25,7 @@ 量化指标 - @@ -89,6 +89,8 @@