From b75b7f814e53ebdbbfb18229523b0a3b9b7ef565 Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 2 Jun 2022 11:20:11 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- src/components/Course/auditCourse1.vue | 6 +++--- src/components/Course/auditCourse2.vue | 10 ++++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 07e6e472..3c3629e6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/node_modules +node_modules diff --git a/src/components/Course/auditCourse1.vue b/src/components/Course/auditCourse1.vue index edf1a8c0..94ce7f8e 100644 --- a/src/components/Course/auditCourse1.vue +++ b/src/components/Course/auditCourse1.vue @@ -176,9 +176,9 @@
- - -
+ + +
diff --git a/src/components/Course/auditCourse2.vue b/src/components/Course/auditCourse2.vue index 9c79582d..8d9c6f43 100644 --- a/src/components/Course/auditCourse2.vue +++ b/src/components/Course/auditCourse2.vue @@ -650,21 +650,23 @@ export default { } } else if(r.contentType == 40) { this.contentData.content=""; - if (r.content != '' && r.content.indexOf('.pdf') > -1) { - this.contentData.content = cfrs.result.previewFilePath; - }else{ + apiCourseFile.detail(r.contentRefId).then(cfrs => { if (cfrs.status == 200) { this.curCFile=cfrs.result; this.converStatus = cfrs.result.converStatus; this.contentData.content = cfrs.result.previewFilePath; + //下面是为了兼容老数据 + if(!cfrs.result.previewFilePath && cfrs.result.filePath.index('.pdf')>-1){ + this.contentData.content=cfrs.result.filePath; + } //console.log(r.content); }else { this.contentData.content=""; this.$message.error('加载pdf课件文件失败'); } }); - } + } this.type = 0; }, From 481af75d69f4dcd031db771d7b256c49dfe893bd Mon Sep 17 00:00:00 2001 From: daihh Date: Mon, 13 Jun 2022 22:41:17 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=95=99=E5=B8=88?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserCenter/menu.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue index 8ce03334..33d65541 100644 --- a/src/components/UserCenter/menu.vue +++ b/src/components/UserCenter/menu.vue @@ -74,10 +74,10 @@ - + 案例管理 From 508f589728bb2dcd4e65b0ddecdb04b9fedf0636 Mon Sep 17 00:00:00 2001 From: daihh Date: Mon, 13 Jun 2022 23:56:08 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A1=88=E4=BE=8B?= =?UTF-8?q?=E8=AF=A6=E7=BB=86=E9=A1=B5=E7=9A=84=E5=8C=BA=E5=9F=9F=E8=89=B2?= =?UTF-8?q?=E4=B8=BA=E7=81=B0=E8=89=B2=EF=BC=8C=E7=99=BD=E8=89=B2=E7=9A=84?= =?UTF-8?q?=E8=AF=9D=EF=BC=8C=E5=88=86=E9=A1=B5=E4=B8=8D=E5=A5=BD=E5=8C=BA?= =?UTF-8?q?=E5=88=86=EF=BC=8C=E5=A6=82=E6=9E=9Cpdf=E6=98=AF=E7=99=BD?= =?UTF-8?q?=E5=BA=95=E7=9A=84=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/case/Detail.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index 96c2f8c6..f39add64 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -420,7 +420,7 @@ export default { // border: 1px solid #eee; // z-index: 999; .postfixt-bot-box{ - + // text-align: right; background-color: #fff; // border: 1px solid #eee; @@ -501,13 +501,13 @@ export default { color: #0079fe; } - + .clearfix:after{ - content: "020"; - display: block; - height: 0; - clear: both; - visibility: hidden; + content: "020"; + display: block; + height: 0; + clear: both; + visibility: hidden; } .btn-div { margin: 0px 0 5px 0; @@ -535,7 +535,7 @@ export default { } .jianjie { // margin: 15px 0; - background-color: #fff; + background-color: #f5f7fa; min-height: 300px; padding: 0px 0px 10px 0px; .content { From b6c8b092262b941cc4b47a2d78b16302fe3c5a29 Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 14 Jun 2022 00:10:37 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=88=E5=B9=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PdfPreview/view.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/PdfPreview/view.vue b/src/components/PdfPreview/view.vue index 26ad41cb..8154484e 100644 --- a/src/components/PdfPreview/view.vue +++ b/src/components/PdfPreview/view.vue @@ -162,10 +162,11 @@ export default { let innerHeight = document.querySelector('#pdf-perView').clientHeight let outerHeight = document.documentElement.clientHeight let scrollTop = document.documentElement.scrollTop - if(this.isscroll){ + let $this=this; + if(this.isscroll){ this.showPages++; this.moreState = 2; - this.debounce(this.loadInitPdf(),5000); + this.debounce(this.loadInitPdf($this.filePath),5000); } if(this.pdfpage >= this.totalPages){ this.isscroll = false; From da19bb9e5ab77e0b99be86f927da11a62d6ac943 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 22 Jun 2022 16:54:23 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E8=80=81=E6=95=B0=E6=8D=AE=E6=9F=A5=E8=AF=A2=E4=B8=8D=E5=87=BA?= =?UTF-8?q?=E6=9D=A5=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 902 ++++++++++++++++-------------- 1 file changed, 473 insertions(+), 429 deletions(-) diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 564218e6..878f32ac 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -194,26 +194,26 @@ From 1651a734c95020a07f158faa3ad709701aefe671 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 22 Jun 2022 19:07:56 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TopNav/Index.vue | 17 +++++++++++++---- src/utils/caseShow.js | 1 + 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/layout/components/TopNav/Index.vue b/src/layout/components/TopNav/Index.vue index e260a65b..8d64ba88 100644 --- a/src/layout/components/TopNav/Index.vue +++ b/src/layout/components/TopNav/Index.vue @@ -156,12 +156,21 @@ export default { this.signInShow=false; }, handleCommand(val) { + // let obj = { + // one: process.env.VUE_APP_BOE_WEB_URL+'/web/teacherLesson', + // two: process.env.VUE_APP_BOE_WEB_URL+'/grow180/login', + // three: this.webBaseUrl + '/study/index', + // four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', + // five: process.env.VUE_APP_BOE_WEB_URL+'/boe/new-employee/index.html' + // }; + let urlPre=window.location.protocol+'//'+window.location.host; + // process.env.VUE_APP_BOE_WEB_URL let obj = { - one: process.env.VUE_APP_BOE_WEB_URL+'/web/teacherLesson', - two: process.env.VUE_APP_BOE_WEB_URL+'/grow180/login', - three: this.webBaseUrl + '/study/index', + one: urlPre+'/web/teacherLesson', + two: urlPre+'/grow180/login', + three: this.webBaseUrl + '/study/index?study=1', four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', - five: process.env.VUE_APP_BOE_WEB_URL+'/boe/new-employee/index.html' + five: urlPre+'/boe/new-employee/index.html' }; window.open(obj[val]); }, diff --git a/src/utils/caseShow.js b/src/utils/caseShow.js index 6c378221..ae1f771d 100644 --- a/src/utils/caseShow.js +++ b/src/utils/caseShow.js @@ -1,5 +1,6 @@ /**页面设置的一些常量*/ const caseUser={ + '12345601': '测试', '00004409': '李玉冰', '101215': '徐涛', '00005011': '邱炜玮',