From 66dd0e5fccfd37a4ea49c4143d68b918cc454b0c Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 20 Oct 2021 19:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/quill/index.vue | 11 ++++++++++- src/utils/api.js | 3 ++- src/views/course/AddCurriculum.vue | 4 ++-- src/views/course/assetConfig.vue | 2 +- src/views/course/courseconfig.vue | 2 +- src/views/serve/AddConfigure.vue | 3 +-- src/views/serve/Configure.vue | 8 ++++---- src/views/serve/projectAdd.vue | 10 +++++----- src/views/user/User.vue | 26 +++++++++----------------- 9 files changed, 35 insertions(+), 34 deletions(-) diff --git a/src/components/quill/index.vue b/src/components/quill/index.vue index 953c290..7c750d4 100644 --- a/src/components/quill/index.vue +++ b/src/components/quill/index.vue @@ -2,7 +2,13 @@
- + 点击上传
@@ -50,6 +56,9 @@ }, data () { return { + headers: { + token: sessionStorage.getItem('token') + }, Quill: null, currentValue: '', options: { diff --git a/src/utils/api.js b/src/utils/api.js index 387d4da..d407973 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -124,7 +124,8 @@ export default { fileDeletion: `${uploadURL}/oss/manage/fileDeletion`, // 删除OSS文件 fileupload: `${uploadURL}/oss/manage/fileupload`, // 文件上传 getPlayAuth: `${uploadURL}/oss/manage/getPlayAuth`, // 获取播放凭证 - + removeMoreVideo: `${uploadURL}/oss/manage/removeMoreVideo`, // 批量删除视频文件 + removeVideo: `${uploadURL}/oss/manage/removeVideo`, // 删除视频文件 queryProvince: `${host}/nakadai/nakadai/province/queryProvince`, //查询省份 queryCity: `${host}/nakadai/nakadai/city/queryCity`, //查询城市 diff --git a/src/views/course/AddCurriculum.vue b/src/views/course/AddCurriculum.vue index 730c1f2..501755d 100644 --- a/src/views/course/AddCurriculum.vue +++ b/src/views/course/AddCurriculum.vue @@ -314,8 +314,8 @@ export default { ProfessionalList: [], systemBelongKeys: { - 0: "外部产品", - 1: "内部系统" + 1: "外部产品", + 0: "内部系统" }, systemTypeKeys: { 0: "编程类", diff --git a/src/views/course/assetConfig.vue b/src/views/course/assetConfig.vue index 64808fc..5572e1e 100644 --- a/src/views/course/assetConfig.vue +++ b/src/views/course/assetConfig.vue @@ -477,7 +477,7 @@ export default { preview(row) { if (this.transferType(row.fileType) == "视频") { this.$get(`${this.api.getPlayAuth}/${row.fileId}`).then(res => { - this.playAuth = res.playAuth; + this.playAuth = res.data.playAuth; if (this.player) { this.player.replayByVidAndPlayAuth(row.fileId, this.playAuth); } else { diff --git a/src/views/course/courseconfig.vue b/src/views/course/courseconfig.vue index 464f07b..8d9d0db 100644 --- a/src/views/course/courseconfig.vue +++ b/src/views/course/courseconfig.vue @@ -460,7 +460,7 @@ export default { preview(row) { if (this.transferType(row.fileType) == "视频") { this.$get(`${this.api.getPlayAuth}/${row.fileId}`).then(res => { - this.playAuth = res.playAuth; + this.playAuth = res.data.playAuth; if (this.player) { this.player.replayByVidAndPlayAuth(row.fileId, this.playAuth); } else { diff --git a/src/views/serve/AddConfigure.vue b/src/views/serve/AddConfigure.vue index fc17c8d..a123ebe 100644 --- a/src/views/serve/AddConfigure.vue +++ b/src/views/serve/AddConfigure.vue @@ -197,7 +197,6 @@ storeName: '1个月', total: '2019.01.02 11:00', payamount: '2019.01.02 11:00', - payamount: '700d12h1min', swtich: true, Intranet: '', extranet: '' @@ -214,7 +213,7 @@ }, { name: '内部系统', - value: 2 + value: 0 }], systemTypeList: [{ name: '工具', diff --git a/src/views/serve/Configure.vue b/src/views/serve/Configure.vue index d85f095..c2462b6 100644 --- a/src/views/serve/Configure.vue +++ b/src/views/serve/Configure.vue @@ -113,16 +113,16 @@ export default { systemBelongList: [ { label: "外部产品", - value: 0 + value: 1 }, { label: "内部系统", - value: 1 + value: 0 } ], systemBelongKeys: { - 0: '外部产品', - 1: '内部系统' + 1: '外部产品', + 0: '内部系统' }, systemTypeList: [ { diff --git a/src/views/serve/projectAdd.vue b/src/views/serve/projectAdd.vue index 0db9af1..2b8a8dc 100644 --- a/src/views/serve/projectAdd.vue +++ b/src/views/serve/projectAdd.vue @@ -123,13 +123,13 @@ {{ scope.row.sort }} - + - + @@ -140,7 +140,7 @@ - +