Merge branch 'master' into dev

This commit is contained in:
daihh
2022-06-23 10:19:07 +08:00
6 changed files with 502 additions and 453 deletions

View File

@@ -623,21 +623,18 @@ export default {
} }
} }
if($this.coursewareInfo.content.contentType == 40) { if($this.coursewareInfo.content.contentType == 40) {
//console.log(con.content,'con.content');
// if(con.content != '' && con.content.indexOf('.pdf') > -1) {
// $this.coursewareInfo.content.content = con.content;
// }else {
apiCourseFile.detail(con.contentRefId).then(cfrs => { apiCourseFile.detail(con.contentRefId).then(cfrs => {
if (cfrs.status == 200) { if (cfrs.status == 200) {
$this.coursewareInfo.content.content = cfrs.result.previewFilePath; $this.coursewareInfo.content.content = cfrs.result.previewFilePath;
$this.curCFile=cfrs.result; $this.curCFile=cfrs.result;
$this.converStatus = cfrs.result.converStatus; $this.converStatus = cfrs.result.converStatus;
//以下是为了兼容老数据
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('.pdf') > -1) { if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('.pdf') > -1) {
$this.coursewareInfo.content.content = cfrs.result.filePath; $this.coursewareInfo.content.content = cfrs.result.filePath;
} }
//设置状态值
if($this.coursewareInfo.content.content && $this.coursewareInfo.content.content.indexOf('.pdf') > -1){ if($this.coursewareInfo.content.content && $this.coursewareInfo.content.content.indexOf('.pdf') > -1){
if(cfrs.result.converStatus || cfrs.result.converStatus<2){ if(!cfrs.result.converStatus || cfrs.result.converStatus<2){
$this.converStatus=2;//转化完成 $this.converStatus=2;//转化完成
} }
} }
@@ -645,7 +642,6 @@ export default {
$this.$message.error('加载pdf课件文件失败'); $this.$message.error('加载pdf课件文件失败');
} }
}); });
// }
} }
} else if (con.sortIndex == 2) { } else if (con.sortIndex == 2) {
$this.homeworkInfo = con; $this.homeworkInfo = con;

View File

@@ -680,29 +680,27 @@ export default {
} }
} else if(r.contentType == 40) { } else if(r.contentType == 40) {
this.contentData.content=""; this.contentData.content="";
// if (r.content != '' && r.content.indexOf('.pdf') > -1) {
// // this.contentData.content = cfrs.result.previewFilePath;
// }else{
apiCourseFile.detail(r.contentRefId).then(cfrs => { apiCourseFile.detail(r.contentRefId).then(cfrs => {
if (cfrs.status == 200) { if (cfrs.status == 200) {
this.curCFile=cfrs.result;
this.contentData.content = cfrs.result.previewFilePath; this.contentData.content = cfrs.result.previewFilePath;
this.converStatus = cfrs.result.converStatus; this.converStatus = cfrs.result.converStatus;
this.curCFile=cfrs.result; //下面是为了兼容老数据
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) { if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) {
this.contentData.content = cfrs.result.filePath; this.contentData.content = cfrs.result.filePath;
} }
//设置状态
if(this.contentData.content && this.contentData.content.indexOf('pdf') > -1){ if(this.contentData.content && this.contentData.content.indexOf('pdf') > -1){
if(this.converStatus || this.converStatus<2){ if(!this.converStatus || this.converStatus<2){
this.converStatus=2; this.converStatus=2;
} }
} }
//console.log(r.content); //console.log(r.content);
}else { }else {
this.contentData.content="";
this.$message.error('加载pdf课件文件失败'); this.$message.error('加载pdf课件文件失败');
} }
}); });
// }
} }
this.type = 0; this.type = 0;
}, },

View File

@@ -139,8 +139,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.one-line-ellipsis{ .one-line-ellipsis{
display: -webkit-box; display: -webkit-box;
white-space:pre-wrap; white-space:pre-wrap;
// word-wrap: break-word; word-wrap: break-word;
word-break:break-all; word-break:break-all;
overflow: hidden; overflow: hidden;
text-overflow:ellipsis; text-overflow:ellipsis;

View File

@@ -156,12 +156,21 @@ export default {
this.signInShow=false; this.signInShow=false;
}, },
handleCommand(val) { 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 = { let obj = {
one: process.env.VUE_APP_BOE_WEB_URL+'/web/teacherLesson', one: urlPre+'/web/teacherLesson',
two: process.env.VUE_APP_BOE_WEB_URL+'/grow180/login', two: urlPre+'/grow180/login',
three: this.webBaseUrl + '/study/index', three: this.webBaseUrl + '/study/index?study=1',
four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', 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]); window.open(obj[val]);
}, },

View File

@@ -1,5 +1,6 @@
/**页面设置的一些常量*/ /**页面设置的一些常量*/
const caseUser={ const caseUser={
'12345601': '测试',
'00004409': '李玉冰', '00004409': '李玉冰',
'101215': '徐涛', '101215': '徐涛',
'00005011': '邱炜玮', '00005011': '邱炜玮',

File diff suppressed because it is too large Load Diff