|
@@ -141,13 +141,15 @@
|
|
|
taskCount
|
|
|
].taskDetail != ''
|
|
|
"
|
|
|
- v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
+ v-html="
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
taskCount
|
|
|
].taskDetail
|
|
|
? chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
taskCount
|
|
|
].taskDetail
|
|
|
- : '暂无描述'"
|
|
|
+ : '暂无描述'
|
|
|
+ "
|
|
|
>
|
|
|
<!-- <span style="color: #cbcbcb">任务描述</span> -->
|
|
|
<!-- {{
|
|
@@ -607,7 +609,7 @@
|
|
|
<!-- <div class="toolTitle">工具描述</div> -->
|
|
|
<div v-html="contentConvent(tool.toolDetail)">
|
|
|
<!-- {{ contentConvent(tool.toolDetail) }} -->
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
@@ -1627,7 +1629,7 @@ export default {
|
|
|
var el = e.currentTarget;
|
|
|
el.getElementsByTagName("input")[0].click();
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
addCourseWorks(i) {
|
|
|
var typesql;
|
|
|
if (this.fileType === 0) {
|
|
@@ -2210,31 +2212,34 @@ export default {
|
|
|
w[m].id = l + "-" + m;
|
|
|
}
|
|
|
}
|
|
|
- if (
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].chapterData.length > 0 &&
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].chapterData[0].type == 3
|
|
|
- ) {
|
|
|
- this.showType = 2;
|
|
|
- this.pptImgUrl =
|
|
|
- "https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
+ if (this.vedio[this.taskCount][0].url == "") {
|
|
|
+ if (
|
|
|
this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
this.taskCount
|
|
|
- ].chapterData[0].url;
|
|
|
- } else if (
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].chapterData.length > 0 &&
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].chapterData[0].type == 6
|
|
|
- ) {
|
|
|
- this.showType = 1;
|
|
|
- this.text = this.textList[this.taskCount][0];
|
|
|
+ ].chapterData.length > 0 &&
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].chapterData[0].type == 3
|
|
|
+ ) {
|
|
|
+ this.showType = 2;
|
|
|
+ this.pptImgUrl =
|
|
|
+ "https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].chapterData[0].url;
|
|
|
+ } else if (
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].chapterData.length > 0 &&
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].chapterData[0].type == 6
|
|
|
+ ) {
|
|
|
+ this.showType = 1;
|
|
|
+ this.text = this.textList[this.taskCount][0];
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
this.$nextTick(function () {
|
|
|
setTimeout(() => {
|
|
|
// for (
|
|
@@ -2760,12 +2765,17 @@ export default {
|
|
|
destroyed() {
|
|
|
window.onresize = null;
|
|
|
},
|
|
|
- computed:{
|
|
|
- contentConvent(){
|
|
|
- return function(c){
|
|
|
- return c ? c.replaceAll(/\r\n/g, '<br/>').replaceAll(/\n/g, '<br/>').replaceAll(/\s/g, '  ') : "";
|
|
|
- }
|
|
|
- }
|
|
|
+ computed: {
|
|
|
+ contentConvent() {
|
|
|
+ return function (c) {
|
|
|
+ return c
|
|
|
+ ? c
|
|
|
+ .replaceAll(/\r\n/g, "<br/>")
|
|
|
+ .replaceAll(/\n/g, "<br/>")
|
|
|
+ .replaceAll(/\s/g, "  ")
|
|
|
+ : "";
|
|
|
+ };
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
this.getCourseDetail();
|