From 2f2f95f5509841c7ccfe2c369d6c8387b32d4708 Mon Sep 17 00:00:00 2001 From: CherrysChang <1935003650@qq.com> Date: Tue, 21 Apr 2020 17:50:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E6=A1=88=E4=BE=8B=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=88=97=E8=A1=A8=E3=80=81=E6=96=B0=E5=A2=9E=E5=90=8E?= =?UTF-8?q?=E5=8F=B0init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/server.js | 9 +++++++++ src/common/js/interceptor.js | 1 - src/views/train/case-detail.vue | 15 ++++++++++++++- src/views/train/case-list.vue | 31 ++++++++++++------------------- 4 files changed, 35 insertions(+), 21 deletions(-) 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 @@