From cb97962ddabeca96cc4cc15789c0ded3ee49181a Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Sat, 9 Oct 2021 20:48:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AE=A2=E5=8D=95=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E3=80=81=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/setting.js | 9 +- src/utils/api.js | 4 +- src/views/course/assetConfig.vue | 15 +- src/views/order/AddOrder.vue | 726 ++++++++++++++++--------------- src/views/order/Order.vue | 241 +++++----- src/views/serve/Configure.vue | 1 + 6 files changed, 519 insertions(+), 477 deletions(-) diff --git a/src/setting.js b/src/setting.js index dcf186d..7e80f78 100644 --- a/src/setting.js +++ b/src/setting.js @@ -3,19 +3,18 @@ * */ const url = location.host; const isDev = process.env.NODE_ENV === 'development'; // 开发环境 -const isTest = url.includes('10.196.131.73'); //测试服 +const isTest = url.includes('39.108.250.202'); //测试服 const isPro = url.includes('120.78.127.12'); //正式服 - let jumpPath = ""; let host = ""; if (isDev) { jumpPath = "http://192.168.31.154:8087/"; // host = 'http://192.168.31.216:9000'// 榕 - host = 'http://192.168.31.125:9000'// 坤 - // host = 'http://192.168.31.137:9000'// 陈赓 + // host = 'http://192.168.31.125:9000'// 坤 + host = 'http://192.168.31.137:9000'// 赓 } else if (isTest) { - jumpPath = ""; + jumpPath = "http://39.108.250.202/judgmentPoint/"; host = "http://39.108.250.202:9000"; } else if (isPro) { jumpPath = ""; diff --git a/src/utils/api.js b/src/utils/api.js index 08f3d51..ddb499f 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -1,9 +1,7 @@ import Setting from '@/setting'; -// let host = Setting.host; +let host = Setting.host; let uploadURL = "http://8.134.8.197:8001"; -let host = "http://192.168.31.151:9000"; // 榕 - export default { logins: `${host}/users/users/user/login`, //登录 diff --git a/src/views/course/assetConfig.vue b/src/views/course/assetConfig.vue index 5b5d92c..9fad8ce 100644 --- a/src/views/course/assetConfig.vue +++ b/src/views/course/assetConfig.vue @@ -262,7 +262,7 @@ export default { getData() { this.$get(`${this.api.queryChaptersAndSubsections}/${this.id}`) .then(res => { - this.chapters = res.data.chapterList; + this.chapters = res.chapterList; }) .catch(err => { @@ -324,11 +324,12 @@ export default { ); }, uploadSuccess(res, file, fileList) { + console.log(res); this.uploading = false; - this.fileId = res.data.filesResult.fileId; - this.fileType = res.data.filesResult.fileType; - this.fileUrl = res.data.filesResult.fileUrl; - this.fileName = res.data.filesResult.ossFileName; + this.fileId = res.filesResult.fileId; + this.fileType = res.filesResult.fileType; + this.fileUrl = res.filesResult.fileUrl; + this.fileName = res.filesResult.ossFileName; }, uploadError(err, file, fileList) { this.$message({ @@ -476,7 +477,7 @@ export default { preview(row) { if (this.transferType(row.fileType) == "视频") { this.$get(`${this.api.getPlayAuth}/${row.fileId}`).then(res => { - this.playAuth = res.data.playAuth; + this.playAuth = res.playAuth; if (this.player) { this.player.replayByVidAndPlayAuth(row.fileId, this.playAuth); } else { @@ -518,7 +519,7 @@ export default { this.isWord = false; this.isExcel = false; } - this.iframeSrc = res.data.previewUrl; + this.iframeSrc = res.previewUrl; this.$nextTick(() => { this.iframeOnload(); }); diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue index 588c4c6..022a596 100644 --- a/src/views/order/AddOrder.vue +++ b/src/views/order/AddOrder.vue @@ -6,18 +6,13 @@
-
+
返回 订单处理
- - 确定 - - - 确定 + 确定
@@ -109,67 +104,71 @@

课程权限
- 添加 + 添加 - - + + - + - + - + @@ -179,15 +178,34 @@ 配置 - + @@ -202,58 +220,55 @@

数据平台权限 - 添加 - - + + + - + - + - + - + - + - +