|
@@ -2111,7 +2111,8 @@
|
|
|
" class="xuan_right_box">
|
|
|
<div v-if="courseDetail.userid == userid" style="display: flex;justify-content: flex-end;">
|
|
|
<el-button type="primary" size="small"
|
|
|
- @click="addTools(49, toolIndex, taskCount)">分组设置</el-button></div>
|
|
|
+ @click="addTools(49, toolIndex, taskCount)">分组设置</el-button>
|
|
|
+ </div>
|
|
|
<div v-if="groupStudentUid[toolIndex]" class="group_staic_box">
|
|
|
<div v-for="(gp, gd) in tool.groupJson.group" :key="gd" class="group_staic">
|
|
|
<span> {{ gp.name }}</span>
|
|
@@ -5811,241 +5812,245 @@ export default {
|
|
|
if (type != 2) {
|
|
|
loading.close();
|
|
|
|
|
|
- }
|
|
|
- var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
|
|
|
- .chapterInfo[0].taskJson;
|
|
|
- var b = [
|
|
|
- "AVI",
|
|
|
- "NAVI",
|
|
|
- "MPEG",
|
|
|
- "ASF",
|
|
|
- "MOV",
|
|
|
- "WMV",
|
|
|
- "3GP",
|
|
|
- "RM",
|
|
|
- "RMVB",
|
|
|
- "FLV",
|
|
|
- "F4V",
|
|
|
- "H.264",
|
|
|
- "H.265",
|
|
|
- "REAL VIDEO",
|
|
|
- "MKV",
|
|
|
- "WebM",
|
|
|
- "HDDVD",
|
|
|
- "MP4",
|
|
|
- "MPG",
|
|
|
- "M4V",
|
|
|
- "MGV",
|
|
|
- "OGV",
|
|
|
- "QTM",
|
|
|
- "STR",
|
|
|
- "AMC",
|
|
|
- "DVX",
|
|
|
- "EVO",
|
|
|
- "DAT",
|
|
|
- "OGG",
|
|
|
- "OGM",
|
|
|
- ];
|
|
|
- for (var i = 0; i < a.length; i++) {
|
|
|
- var c = a[i].chapterData;
|
|
|
- this.vedio[i] = [];
|
|
|
- this.textList[i] = [];
|
|
|
- this.lineList[i] = [];
|
|
|
- this.chapToolList[i] = [];
|
|
|
- this.file[i] = [];
|
|
|
- for (var j = 0; j < c.length; j++) {
|
|
|
- if (c[j].type == 7) {
|
|
|
- this.chapToolList[i].push(c[j]);
|
|
|
- } else if (c[j].type == 8) {
|
|
|
- this.lineList[i].push(c[j]);
|
|
|
- } else if (c[j].type == 6) {
|
|
|
- this.textList[i].push(c[j]);
|
|
|
- } else {
|
|
|
- if (
|
|
|
- b.indexOf(
|
|
|
- c[j].url
|
|
|
- .split(".")
|
|
|
- [c[j].url.split(".").length - 1].toLocaleUpperCase()
|
|
|
- ) != -1
|
|
|
- ) {
|
|
|
- this.vedio[i].push(c[j]);
|
|
|
+ var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
|
|
|
+ .chapterInfo[0].taskJson;
|
|
|
+ var b = [
|
|
|
+ "AVI",
|
|
|
+ "NAVI",
|
|
|
+ "MPEG",
|
|
|
+ "ASF",
|
|
|
+ "MOV",
|
|
|
+ "WMV",
|
|
|
+ "3GP",
|
|
|
+ "RM",
|
|
|
+ "RMVB",
|
|
|
+ "FLV",
|
|
|
+ "F4V",
|
|
|
+ "H.264",
|
|
|
+ "H.265",
|
|
|
+ "REAL VIDEO",
|
|
|
+ "MKV",
|
|
|
+ "WebM",
|
|
|
+ "HDDVD",
|
|
|
+ "MP4",
|
|
|
+ "MPG",
|
|
|
+ "M4V",
|
|
|
+ "MGV",
|
|
|
+ "OGV",
|
|
|
+ "QTM",
|
|
|
+ "STR",
|
|
|
+ "AMC",
|
|
|
+ "DVX",
|
|
|
+ "EVO",
|
|
|
+ "DAT",
|
|
|
+ "OGG",
|
|
|
+ "OGM",
|
|
|
+ ];
|
|
|
+ for (var i = 0; i < a.length; i++) {
|
|
|
+ var c = a[i].chapterData;
|
|
|
+ this.vedio[i] = [];
|
|
|
+ this.textList[i] = [];
|
|
|
+ this.lineList[i] = [];
|
|
|
+ this.chapToolList[i] = [];
|
|
|
+ this.file[i] = [];
|
|
|
+ for (var j = 0; j < c.length; j++) {
|
|
|
+ if (c[j].type == 7) {
|
|
|
+ this.chapToolList[i].push(c[j]);
|
|
|
+ } else if (c[j].type == 8) {
|
|
|
+ this.lineList[i].push(c[j]);
|
|
|
+ } else if (c[j].type == 6) {
|
|
|
+ this.textList[i].push(c[j]);
|
|
|
} else {
|
|
|
- this.file[i].push(c[j]);
|
|
|
+ if (
|
|
|
+ b.indexOf(
|
|
|
+ c[j].url
|
|
|
+ .split(".")
|
|
|
+ [c[j].url.split(".").length - 1].toLocaleUpperCase()
|
|
|
+ ) != -1
|
|
|
+ ) {
|
|
|
+ this.vedio[i].push(c[j]);
|
|
|
+ } else {
|
|
|
+ this.file[i].push(c[j]);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ var d = JSON.parse(JSON.stringify(this.playerOptions));
|
|
|
+ d.sources[0].src =
|
|
|
+ this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
|
|
|
+ this.playerO[i] = d;
|
|
|
}
|
|
|
- var d = JSON.parse(JSON.stringify(this.playerOptions));
|
|
|
- d.sources[0].src =
|
|
|
- this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
|
|
|
- this.playerO[i] = d;
|
|
|
- }
|
|
|
- this.courseDetail = res.data[0][0];
|
|
|
- this.evalua = res.data[0][0].evaId;
|
|
|
- this.chapInfo = JSON.parse(this.courseDetail.chapters)[
|
|
|
- this.courseType
|
|
|
- ];
|
|
|
- this.chapInfoList = JSON.parse(this.courseDetail.chapters);
|
|
|
- // if (this.navList.length == 0) {
|
|
|
- // this.navList = [];
|
|
|
- // for (var l = 0; l < this.chapInfoList.length; l++) {
|
|
|
- // var q = this.chapInfoList[l].dyName;
|
|
|
- // var w = this.chapInfoList[l].chapterInfo[0].taskJson;
|
|
|
- // var e;
|
|
|
- // this.navList.push({
|
|
|
- // dyName: q,
|
|
|
- // isOpen: l === 0 ? true : false,
|
|
|
- // task: [],
|
|
|
- // });
|
|
|
- // for (var r = 0; r < w.length; r++) {
|
|
|
- // e = w[r].task;
|
|
|
- // this.navList[l].task.push({ taskName: e, id: l + "-" + r });
|
|
|
- // this.navId = this.navId ? this.navId : l + "-" + r;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // this.navList[0].isOpen = false;
|
|
|
- // this.navList[this.courseType].isOpen = true;
|
|
|
- // this.navId = this.navList[this.courseType].task[this.taskCount].id;
|
|
|
- for (var l = 0; l < this.chapInfoList.length; l++) {
|
|
|
- var w = this.chapInfoList[l].chapterInfo[0].taskJson;
|
|
|
- for (var m = 0; m < w.length; m++) {
|
|
|
- w[m].id = l + "-" + m;
|
|
|
+ this.courseDetail = res.data[0][0];
|
|
|
+ this.evalua = res.data[0][0].evaId;
|
|
|
+ this.chapInfo = JSON.parse(this.courseDetail.chapters)[
|
|
|
+ this.courseType
|
|
|
+ ];
|
|
|
+ this.chapInfoList = JSON.parse(this.courseDetail.chapters);
|
|
|
+ // if (this.navList.length == 0) {
|
|
|
+ // this.navList = [];
|
|
|
+ // for (var l = 0; l < this.chapInfoList.length; l++) {
|
|
|
+ // var q = this.chapInfoList[l].dyName;
|
|
|
+ // var w = this.chapInfoList[l].chapterInfo[0].taskJson;
|
|
|
+ // var e;
|
|
|
+ // this.navList.push({
|
|
|
+ // dyName: q,
|
|
|
+ // isOpen: l === 0 ? true : false,
|
|
|
+ // task: [],
|
|
|
+ // });
|
|
|
+ // for (var r = 0; r < w.length; r++) {
|
|
|
+ // e = w[r].task;
|
|
|
+ // this.navList[l].task.push({ taskName: e, id: l + "-" + r });
|
|
|
+ // this.navId = this.navId ? this.navId : l + "-" + r;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // this.navList[0].isOpen = false;
|
|
|
+ // this.navList[this.courseType].isOpen = true;
|
|
|
+ // this.navId = this.navList[this.courseType].task[this.taskCount].id;
|
|
|
+ for (var l = 0; l < this.chapInfoList.length; l++) {
|
|
|
+ var w = this.chapInfoList[l].chapterInfo[0].taskJson;
|
|
|
+ for (var m = 0; m < w.length; m++) {
|
|
|
+ w[m].id = l + "-" + m;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- if (
|
|
|
- !this.vedio[this.taskCount][0] ||
|
|
|
- this.vedio[this.taskCount][0].url == ""
|
|
|
- ) {
|
|
|
if (
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].chapterData.length > 0
|
|
|
+ !this.vedio[this.taskCount][0] ||
|
|
|
+ this.vedio[this.taskCount][0].url == ""
|
|
|
) {
|
|
|
- // if (
|
|
|
- // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- // this.taskCount
|
|
|
- // ].chapterData[0].type != 8
|
|
|
- // ) {
|
|
|
- let _url =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].chapterData[0].url;
|
|
|
if (
|
|
|
this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
this.taskCount
|
|
|
- ].chapterData[0].type == 8
|
|
|
- ) {
|
|
|
- this.showType = 2;
|
|
|
- if (
|
|
|
- _url.indexOf("https://") == -1 &&
|
|
|
- _url.indexOf("http://") == -1
|
|
|
- ) {
|
|
|
- _url = "https://" + _url;
|
|
|
- }
|
|
|
- this.pptImgUrl1 = _url;
|
|
|
- this.isClickNav = "line0";
|
|
|
- } else if (
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].chapterData[0].type == 3
|
|
|
+ ].chapterData.length > 0
|
|
|
) {
|
|
|
+ // if (
|
|
|
+ // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ // this.taskCount
|
|
|
+ // ].chapterData[0].type != 8
|
|
|
+ // ) {
|
|
|
+ let _url =
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].chapterData[0].url;
|
|
|
if (
|
|
|
- _url
|
|
|
- .split(".")
|
|
|
- [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].chapterData[0].type == 8
|
|
|
) {
|
|
|
- this.showType = 3;
|
|
|
+ this.showType = 2;
|
|
|
+ if (
|
|
|
+ _url.indexOf("https://") == -1 &&
|
|
|
+ _url.indexOf("http://") == -1
|
|
|
+ ) {
|
|
|
+ _url = "https://" + _url;
|
|
|
+ }
|
|
|
this.pptImgUrl1 = _url;
|
|
|
- this.isClickNav = "word0";
|
|
|
+ this.isClickNav = "line0";
|
|
|
} else if (
|
|
|
- this.isAssetTypeAnImage(
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].chapterData[0].type == 3
|
|
|
+ ) {
|
|
|
+ if (
|
|
|
_url
|
|
|
.split(".")
|
|
|
- [_url.split(".").length - 1].toLocaleLowerCase()
|
|
|
- )
|
|
|
+ [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
|
|
|
+ ) {
|
|
|
+ this.showType = 3;
|
|
|
+ this.pptImgUrl1 = _url;
|
|
|
+ this.isClickNav = "word0";
|
|
|
+ } else if (
|
|
|
+ this.isAssetTypeAnImage(
|
|
|
+ _url
|
|
|
+ .split(".")
|
|
|
+ [_url.split(".").length - 1].toLocaleLowerCase()
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ this.showType = 4;
|
|
|
+ this.pptImgUrl1 = _url;
|
|
|
+ this.isClickNav = "word0";
|
|
|
+ } else {
|
|
|
+ this.showType = 2;
|
|
|
+ this.pptImgUrl1 =
|
|
|
+ "https://view.officeapps.live.com/op/view.aspx?src=" + _url;
|
|
|
+ this.isClickNav = "word0";
|
|
|
+ }
|
|
|
+ } else if (
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.taskCount
|
|
|
+ ].chapterData[0].type == 6
|
|
|
) {
|
|
|
- this.showType = 4;
|
|
|
- this.pptImgUrl1 = _url;
|
|
|
- this.isClickNav = "word0";
|
|
|
- } else {
|
|
|
- this.showType = 2;
|
|
|
- this.pptImgUrl1 =
|
|
|
- "https://view.officeapps.live.com/op/view.aspx?src=" + _url;
|
|
|
- this.isClickNav = "word0";
|
|
|
+ this.showType = 1;
|
|
|
+ this.text = this.textList[this.taskCount][0];
|
|
|
+ this.isClickNav = "text0";
|
|
|
}
|
|
|
- } else if (
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].chapterData[0].type == 6
|
|
|
- ) {
|
|
|
- this.showType = 1;
|
|
|
- this.text = this.textList[this.taskCount][0];
|
|
|
- this.isClickNav = "text0";
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
+ // for (
|
|
|
+ // var y = 0;
|
|
|
+ // y <
|
|
|
+ // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ // this.taskCount
|
|
|
+ // ].chapterData.length;
|
|
|
+ // y++
|
|
|
+ // ) {
|
|
|
+ // if (
|
|
|
+ // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ // this.taskCount
|
|
|
+ // ].chapterData[y].type != 8
|
|
|
+ // ) {
|
|
|
+ // if (
|
|
|
+ // this.chapInfoList[this.courseType].chapterInfo[0]
|
|
|
+ // .taskJson[this.taskCount].chapterData[y].type == 3
|
|
|
+ // ) {
|
|
|
+ // let _url =
|
|
|
+ // this.chapInfoList[this.courseType].chapterInfo[0]
|
|
|
+ // .taskJson[this.taskCount].chapterData[y].url;
|
|
|
+ // if (
|
|
|
+ // _url
|
|
|
+ // .split(".")
|
|
|
+ // [_url.split(".").length - 1].toLocaleUpperCase() ==
|
|
|
+ // "PDF"
|
|
|
+ // ) {
|
|
|
+ // this.showType = 3;
|
|
|
+ // this.pptImgUrl1 = _url;
|
|
|
+ // } else if (
|
|
|
+ // this.isAssetTypeAnImage(
|
|
|
+ // _url
|
|
|
+ // .split(".")
|
|
|
+ // [_url.split(".").length - 1].toLocaleLowerCase()
|
|
|
+ // )
|
|
|
+ // ) {
|
|
|
+ // this.showType = 4;
|
|
|
+ // this.pptImgUrl1 = _url;
|
|
|
+ // } else {
|
|
|
+ // this.showType = 2;
|
|
|
+ // this.pptImgUrl1 =
|
|
|
+ // "https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
+ // _url;
|
|
|
+ // }
|
|
|
+ // } else if (
|
|
|
+ // this.chapInfoList[this.courseType].chapterInfo[0]
|
|
|
+ // .taskJson[this.taskCount].chapterData[y].type == 6
|
|
|
+ // ) {
|
|
|
+ // this.showType = 1;
|
|
|
+ // this.text = this.textList[this.taskCount][0];
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.showType = 2;
|
|
|
+ // this.pptImgUrl1 =
|
|
|
+ // "https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
+ // _url;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
- // }
|
|
|
- // else {
|
|
|
- // for (
|
|
|
- // var y = 0;
|
|
|
- // y <
|
|
|
- // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- // this.taskCount
|
|
|
- // ].chapterData.length;
|
|
|
- // y++
|
|
|
- // ) {
|
|
|
- // if (
|
|
|
- // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- // this.taskCount
|
|
|
- // ].chapterData[y].type != 8
|
|
|
- // ) {
|
|
|
- // if (
|
|
|
- // this.chapInfoList[this.courseType].chapterInfo[0]
|
|
|
- // .taskJson[this.taskCount].chapterData[y].type == 3
|
|
|
- // ) {
|
|
|
- // let _url =
|
|
|
- // this.chapInfoList[this.courseType].chapterInfo[0]
|
|
|
- // .taskJson[this.taskCount].chapterData[y].url;
|
|
|
- // if (
|
|
|
- // _url
|
|
|
- // .split(".")
|
|
|
- // [_url.split(".").length - 1].toLocaleUpperCase() ==
|
|
|
- // "PDF"
|
|
|
- // ) {
|
|
|
- // this.showType = 3;
|
|
|
- // this.pptImgUrl1 = _url;
|
|
|
- // } else if (
|
|
|
- // this.isAssetTypeAnImage(
|
|
|
- // _url
|
|
|
- // .split(".")
|
|
|
- // [_url.split(".").length - 1].toLocaleLowerCase()
|
|
|
- // )
|
|
|
- // ) {
|
|
|
- // this.showType = 4;
|
|
|
- // this.pptImgUrl1 = _url;
|
|
|
- // } else {
|
|
|
- // this.showType = 2;
|
|
|
- // this.pptImgUrl1 =
|
|
|
- // "https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
- // _url;
|
|
|
- // }
|
|
|
- // } else if (
|
|
|
- // this.chapInfoList[this.courseType].chapterInfo[0]
|
|
|
- // .taskJson[this.taskCount].chapterData[y].type == 6
|
|
|
- // ) {
|
|
|
- // this.showType = 1;
|
|
|
- // this.text = this.textList[this.taskCount][0];
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // this.showType = 2;
|
|
|
- // this.pptImgUrl1 =
|
|
|
- // "https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
- // _url;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
+ } else {
|
|
|
+ this.isClickNav = "video0";
|
|
|
}
|
|
|
- } else {
|
|
|
- this.isClickNav = "video0";
|
|
|
+ }else{
|
|
|
+ this.courseDetail = res.data[0][0];
|
|
|
+ this.chapInfoList = JSON.parse(this.courseDetail.chapters);
|
|
|
}
|
|
|
+
|
|
|
this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
|
this.checkEva();
|