From d895e769792a4a55af72a3b3837334d202a96187 Mon Sep 17 00:00:00 2001 From: nisen Date: Fri, 11 Aug 2023 14:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=88=E4=BE=8B=E7=BB=84=E7=BB=87=E9=A2=86?= =?UTF-8?q?=E5=9F=9F=E9=85=8D=E4=B8=80=E4=B8=8B=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 +++ .env.production | 3 +++ .env.testing | 3 +++ src/views/portal/case/Index.vue | 5 ++++- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.env.development b/.env.development index 83473a3e..d2297b04 100644 --- a/.env.development +++ b/.env.development @@ -45,3 +45,6 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true # scorm课件的播放url地址 VUE_APP_SCORM_URL = 'http://localhost:9083/scorm-player' + +#案例组织领域类型 +VUE_APP_CASE_TYPE = '90' diff --git a/.env.production b/.env.production index 22880556..195e48a9 100644 --- a/.env.production +++ b/.env.production @@ -43,3 +43,6 @@ VUE_APP_LOGIN_URL='https://u.boe.com/web/' # scorm课件的播放url地址 VUE_APP_SCORM_URL = 'https://u.boe.com/newscorm/scorm-player' + +#案例组织领域类型 +VUE_APP_CASE_TYPE = '155' diff --git a/.env.testing b/.env.testing index 955282d6..d6c3ac9f 100644 --- a/.env.testing +++ b/.env.testing @@ -42,3 +42,6 @@ VUE_APP_LOGIN_URL='https://u-pre.boe.com/web/' # scorm课件的播放url地址 VUE_APP_SCORM_URL = 'https://u-pre.boe.com/newscorm/scorm-player' + +#案例组织领域类型 +VUE_APP_CASE_TYPE = '90' diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index d6c47028..ae914955 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -361,6 +361,7 @@ export default { }, data() { return { + caseType:process.env.VUE_APP_CASE_TYPE,//类型 caseYears:[], refId: '',//消息跳转案例的id selectList: [],//点击选中的list @@ -574,7 +575,9 @@ export default { console.log(isBack, 'isBack'); // Promise.all([apiType.items("org_domain"), apiCase.majorTypes()]).then(rs => { // 90是测试环境,155是生产环境 - Promise.all([apiType.treeList(1,155,1), apiCase.majorTypes()]).then(rs => { + console.log(this.caseType); + + Promise.all([apiType.treeList(1,Number(this.caseType ?? 155),1), apiCase.majorTypes()]).then(rs => { if (rs[0].code == 200) { const {records} = rs[0].data records.forEach(item => {