diff --git a/.env.development b/.env.development index c5518361..24a9a462 100644 --- a/.env.development +++ b/.env.development @@ -14,7 +14,10 @@ VUE_APP_BOE_WEB_URL = 'https://u.boe.com' VUE_APP_BOE_MOBILE_URL = 'http://192.168.0.10:8082/mobile' # File路径的基础url -VUE_APP_FILE_BASE_URL = 'http://192.168.0.10:9090/cdn/upload' +VUE_APP_FILE_BASE_URL = 'http://localhost:9090/cdn/upload' + +# File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 +VUE_APP_FILE_RELATIVE_PATH = 'http://localhost:9090/cdn/upload' # 登录地址 VUE_APP_LOGIN_URL='/pc/login' diff --git a/.env.preview b/.env.preview new file mode 100644 index 00000000..1bfad93f --- /dev/null +++ b/.env.preview @@ -0,0 +1,26 @@ +# 生产环境配置 +ENV = 'preview' + +# 管理系统/生产环境 +VUE_APP_BASE_API = '/systemapi' + +# BOE管理系统/开发环境 +VUE_APP_BOE_BASE_API = '/uboeApi' + +# BOE系统网址 +VUE_APP_BOE_WEB_URL = 'https://u.boe.com/preview' + +# BOE 移动端url +VUE_APP_BOE_MOBILE_URL = 'http://u.boe.com' + +# File路径的基础url +VUE_APP_FILE_BASE_URL='http://u-pre.boe.com/upload' + +# File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 +VUE_APP_FILE_RELATIVE_PATH = '/upload' + +# 虚拟目录的变量,结尾的/在vue.config.js中添加 +VUE_APP_PUBLIC_PATH='/pc' + +# 登录地址 +VUE_APP_LOGIN_URL='https://u-pre.boe.com/web/' diff --git a/.env.production b/.env.production index d0939629..e55f5aa8 100644 --- a/.env.production +++ b/.env.production @@ -8,7 +8,7 @@ VUE_APP_BASE_API = '/systemapi' VUE_APP_BOE_BASE_API = '/uboeApi' # BOE系统网址 -VUE_APP_BOE_WEB_URL = 'https://u.boe.com' +VUE_APP_BOE_WEB_URL = 'https://u.boe.com/production' # BOE 移动端url VUE_APP_BOE_MOBILE_URL = 'http://u.boe.com' @@ -16,6 +16,9 @@ VUE_APP_BOE_MOBILE_URL = 'http://u.boe.com' # File路径的基础url VUE_APP_FILE_BASE_URL='http://u-pre.boe.com/upload' +# File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 +VUE_APP_FILE_RELATIVE_PATH = '/upload' + # 虚拟目录的变量,结尾的/在vue.config.js中添加 VUE_APP_PUBLIC_PATH='/pc' diff --git a/.env.testing b/.env.testing new file mode 100644 index 00000000..41401462 --- /dev/null +++ b/.env.testing @@ -0,0 +1,26 @@ +# 生产环境配置 +ENV = 'testing' + +# 管理系统/生产环境 +VUE_APP_BASE_API = '/systemapi' + +# BOE管理系统/开发环境 +VUE_APP_BOE_BASE_API = '/uboeApi' + +# BOE系统网址 +VUE_APP_BOE_WEB_URL = 'https://u-pre.boe.com/testing' + +# BOE 移动端url +VUE_APP_BOE_MOBILE_URL = 'http://u-pre.boe.com' + +# File路径的基础url +VUE_APP_FILE_BASE_URL='http://u-pre.boe.com/upload' + +# File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 +VUE_APP_FILE_RELATIVE_PATH = '/upload' + +# 虚拟目录的变量,结尾的/在vue.config.js中添加 +VUE_APP_PUBLIC_PATH='/pc' + +# 登录地址 +VUE_APP_LOGIN_URL='https://u-pre.boe.com/web/' diff --git a/.gitignore b/.gitignore index 4e637713..acd58038 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules node_modules +/dist diff --git a/package.json b/package.json index edc3f42e..09f69ff6 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,12 @@ "scripts": { "dev": "vue-cli-service serve", "serve": "vue-cli-service serve", + "serve:testing": "vue-cli-service serve --mode testing", + "serve:preview": "vue-cli-service serve --mode preview", "build": "vue-cli-service build", "build:development": "vue-cli-service build --mode development", + "build:preview": "vue-cli-service build --mode preview", + "build:testing": "vue-cli-service build --mode testing", "lint": "vue-cli-service lint" }, "dependencies": { diff --git a/src/api/modules/course.js b/src/api/modules/course.js index aa531f6c..e54bf161 100644 --- a/src/api/modules/course.js +++ b/src/api/modules/course.js @@ -280,6 +280,32 @@ const auditList = function(query) { return ajax.post('/xboe/m/course/manage/audit-pagelist', query); } +/** + * 指定审核人,转审核人 + * @param {Object} data + * {courseId:课程id,teacherId:课程的名称,teacherName:教师名称,remark:备注} + */ +const auditAppoint = function(data) { + return ajax.post('/xboe/m/course/audit/appoint', data); +} + +/** + * 获取审核信息 + * @param {courseId:'',teacherId:'可以不填写,系统会查询当前人'} data + */ +const getAuditInfo = function(data) { + return ajax.post('/xboe/m/course/audit/infos', data); +} + +/** + * 获取审核日志 + * @param {courseId:'',teacherId:'可以不填写,系统会查询当前人'} data + */ +const getAuditLogs = function(data) { + return ajax.post('/xboe/m/course/audit/logs', data); +} + + /** * 管理员的课程审核处理 * @param {Object} query {id:课程id,title:课程的名称, Boolean pass 是否通过,remark 备注} @@ -337,19 +363,19 @@ const detailFew=function(id){ const sumbits=function(id){ return ajax.get('/xboe/m/course/manage/sumbits?id='+id); } -/* +/* 教师授课记录 */ const teacherCourse=function(teacherId){ return ajax.get('/xboe/m/course/manage/teacher-course?teacherId='+teacherId); } -/* +/* 教师授课记录导出 @param teacherId 教师id */ const exportTeacherCourse=function(teacherId){ return ajax.post('/xboe/m/course/manage/export-teacher-course?teacherId='+teacherId) -} +} /* *待审核课程记录导出 * resOwner1:资源归属一级的id @@ -401,6 +427,9 @@ export default { getHomework, countWaitAudit, auditList, + auditAppoint, + getAuditInfo, + getAuditLogs, audit, auditAndPublish, getAssess, @@ -420,5 +449,5 @@ export default { exportCourseAudit, exportCourse, queryCrowd - + } diff --git a/src/components/Article/ucItems.vue b/src/components/Article/ucItems.vue index c537e725..b5d9de4b 100644 --- a/src/components/Article/ucItems.vue +++ b/src/components/Article/ucItems.vue @@ -26,14 +26,10 @@ {{item.name}}{{(item.orgInfo)}} --> - - + 时间:{{item.sysCreateTime|sysCreateTimeFilter}} - - 已下架 - - + 已下架
@@ -312,8 +308,9 @@ width: 100%; color: #7b7b7b; margin-left:5px; } - .problem{ + .article-time{ margin-left: -5px; + border:0px; span{ font-size: 14px; } diff --git a/src/components/Course/auditCourse1.vue b/src/components/Course/auditCourse1.vue index 685784ab..fa6543ce 100644 --- a/src/components/Course/auditCourse1.vue +++ b/src/components/Course/auditCourse1.vue @@ -162,11 +162,11 @@ -->
-
+
文档文件转化中,还未转化完成,
上传时间:{{curCFile.sysCreateTime}}
-
+
文件转化失败,请重新上传(不要上传加密的文件)或联系管理员
@@ -285,7 +285,7 @@ export default { homeworkInfo: {}, examInfo: {}, assessInfo: {}, - fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL, + fileBaseUrl: this.$Constants.fileBaseUrl, btnLoading: false, curCFile:{},//课件内容 coursewareInfo: { @@ -600,11 +600,16 @@ export default { apiCourseFile.detail(con.contentRefId).then(cfrs => { if (cfrs.status == 200) { $this.coursewareInfo.content.content = cfrs.result.previewFilePath; - if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) { - $this.coursewareInfo.content.content = cfrs.result.filePath; - } else { - $this.curCFile=cfrs.result; - $this.converStatus = cfrs.result.converStatus; + $this.curCFile=cfrs.result; + $this.converStatus = cfrs.result.converStatus; + + if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('.pdf') > -1) { + $this.coursewareInfo.content.content = cfrs.result.filePath; + } + if($this.coursewareInfo.content.content && $this.coursewareInfo.content.content.indexOf('.pdf') > -1){ + if(cfrs.result.converStatus || cfrs.result.converStatus<2){ + $this.converStatus=2;//转化完成 + } } } else { $this.$message.error('加载pdf课件文件失败'); diff --git a/src/components/Course/auditCourse2.vue b/src/components/Course/auditCourse2.vue index 7eb77481..d94db1fd 100644 --- a/src/components/Course/auditCourse2.vue +++ b/src/components/Course/auditCourse2.vue @@ -175,11 +175,11 @@ -->
-
+
文档文件转化中,还未转化完成,
上传时间:{{curCFile.sysCreateTime}}
-
+
文件转化失败,请重新上传(不要上传加密的文件)或联系管理员
@@ -323,7 +323,7 @@ export default { }, contentDataShow:true,//预览页面和课程内容的切换 isEdit: true, - fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL, + fileBaseUrl: this.$Constants.fileBaseUrl, contentData: {}, curCFile:{},//课件内容 getType: getType, @@ -656,11 +656,15 @@ export default { apiCourseFile.detail(r.contentRefId).then(cfrs => { if (cfrs.status == 200) { this.contentData.content = cfrs.result.previewFilePath; + this.converStatus = cfrs.result.converStatus; + this.curCFile=cfrs.result; if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) { this.contentData.content = cfrs.result.filePath; - } else { - this.converStatus = cfrs.result.converStatus; - this.curCFile=cfrs.result; + } + if(this.contentData.content && this.contentData.content.indexOf('pdf') > -1){ + if(this.converStatus || this.converStatus<2){ + this.converStatus=2; + } } //console.log(r.content); }else { diff --git a/src/components/Course/catalogCourseware.vue b/src/components/Course/catalogCourseware.vue index 19646e5a..215e9d33 100644 --- a/src/components/Course/catalogCourseware.vue +++ b/src/components/Course/catalogCourseware.vue @@ -361,7 +361,7 @@ data(){ return { converStatus:4, - fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL, + fileBaseUrl:this.$Constants.fileBaseUrl, curPdfPath:'', curCFile:{},//当前课件的内容 comTypes:[ diff --git a/src/components/Course/weikeContent.vue b/src/components/Course/weikeContent.vue index bde41fe9..f1650329 100644 --- a/src/components/Course/weikeContent.vue +++ b/src/components/Course/weikeContent.vue @@ -562,7 +562,7 @@ courseFileShow:false, curContent:{id:'',contentType:0,contenRefId:''}, curCFile:{},//当前课件的内容 - fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL, + fileBaseUrl:this.$Constants.fileBaseUrl, imageShowUrl: '', activeName: 'courseware', getType: getType, diff --git a/src/components/PdfPreview/view.vue b/src/components/PdfPreview/view.vue new file mode 100644 index 00000000..a038f5fa --- /dev/null +++ b/src/components/PdfPreview/view.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/src/components/PortalFooter.vue b/src/components/PortalFooter.vue index b3a77c2c..a32c0f20 100644 --- a/src/components/PortalFooter.vue +++ b/src/components/PortalFooter.vue @@ -1,5 +1,5 @@