|
@@ -1,9 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="pb_content" style="overflow: unset; background: #eff7ff">
|
|
<div class="pb_content" style="overflow: unset; background: #eff7ff">
|
|
- <div
|
|
|
|
- class="pb_content_body"
|
|
|
|
- style="display: flex; height: 900px; position: relative"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="pb_content_body" style="display: flex; height: 900px; position: relative">
|
|
<div class="pb_left">
|
|
<div class="pb_left">
|
|
<div class="courseTitle">{{ courseDetail.title }}</div>
|
|
<div class="courseTitle">{{ courseDetail.title }}</div>
|
|
<div class="ml">目录</div>
|
|
<div class="ml">目录</div>
|
|
@@ -14,11 +11,7 @@
|
|
<div>{{ item.dyName }}</div>
|
|
<div>{{ item.dyName }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="twoChild" :class="{ navActive: item.isOpen }">
|
|
<div class="twoChild" :class="{ navActive: item.isOpen }">
|
|
- <div
|
|
|
|
- class="navChild"
|
|
|
|
- v-for="(nav, navIndex) in item.task"
|
|
|
|
- :key="navIndex"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
|
|
<div
|
|
<div
|
|
class="navTask"
|
|
class="navTask"
|
|
@click="openTask(stageIndex, navIndex, nav.id)"
|
|
@click="openTask(stageIndex, navIndex, nav.id)"
|
|
@@ -106,17 +99,14 @@
|
|
class="vedioBox"
|
|
class="vedioBox"
|
|
v-if="
|
|
v-if="
|
|
vedio[taskCount].length > 0 ||
|
|
vedio[taskCount].length > 0 ||
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
- .taskDetail != ''
|
|
|
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail != ''
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<div class="checkbox">
|
|
<div class="checkbox">
|
|
<div
|
|
<div
|
|
class="check"
|
|
class="check"
|
|
style="font-size: 25px"
|
|
style="font-size: 25px"
|
|
- :id="
|
|
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
|
|
|
|
- "
|
|
|
|
|
|
+ :id="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id"
|
|
>
|
|
>
|
|
<!-- {{ taskCount + 1 }}
|
|
<!-- {{ taskCount + 1 }}
|
|
{{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
|
|
{{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
|
|
@@ -129,8 +119,8 @@
|
|
vedio[taskCount].length > 0 ||
|
|
vedio[taskCount].length > 0 ||
|
|
textList[taskCount].length > 0 ||
|
|
textList[taskCount].length > 0 ||
|
|
file[taskCount].length > 0 ||
|
|
file[taskCount].length > 0 ||
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
- .taskDetail != ''
|
|
|
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail !=
|
|
|
|
+ ''
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<div class="taskBox">
|
|
<div class="taskBox">
|
|
@@ -150,17 +140,14 @@
|
|
overflow: auto;
|
|
overflow: auto;
|
|
"
|
|
"
|
|
v-if="
|
|
v-if="
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
|
- taskCount
|
|
|
|
- ].taskDetail != ''
|
|
|
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
+ .taskDetail != ''
|
|
"
|
|
"
|
|
v-html="
|
|
v-html="
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
|
- taskCount
|
|
|
|
- ].taskDetail
|
|
|
|
- ? chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
|
- taskCount
|
|
|
|
- ].taskDetail
|
|
|
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
+ .taskDetail
|
|
|
|
+ ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
+ .taskDetail
|
|
: '暂无描述'
|
|
: '暂无描述'
|
|
"
|
|
"
|
|
>
|
|
>
|
|
@@ -257,27 +244,21 @@
|
|
: ''
|
|
: ''
|
|
"
|
|
"
|
|
v-if="
|
|
v-if="
|
|
- (vedio.length &&
|
|
|
|
- vedio[taskCount] &&
|
|
|
|
- vedio[taskCount].length > 0) ||
|
|
|
|
|
|
+ (vedio.length && vedio[taskCount] && vedio[taskCount].length > 0) ||
|
|
(textList.length &&
|
|
(textList.length &&
|
|
textList[taskCount] &&
|
|
textList[taskCount] &&
|
|
textList[taskCount].length > 0) ||
|
|
textList[taskCount].length > 0) ||
|
|
(lineList.length &&
|
|
(lineList.length &&
|
|
lineList[taskCount] &&
|
|
lineList[taskCount] &&
|
|
lineList[taskCount].length > 0) ||
|
|
lineList[taskCount].length > 0) ||
|
|
- (file.length &&
|
|
|
|
- file[taskCount] &&
|
|
|
|
- file[taskCount].length > 0)
|
|
|
|
|
|
+ (file.length && file[taskCount] && file[taskCount].length > 0)
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<div class="navTitile">内容列表:</div>
|
|
<div class="navTitile">内容列表:</div>
|
|
<div class="navBox">
|
|
<div class="navBox">
|
|
<div
|
|
<div
|
|
v-show="
|
|
v-show="
|
|
- vedio.length &&
|
|
|
|
- vedio[taskCount] &&
|
|
|
|
- vedio[taskCount].length > 0
|
|
|
|
|
|
+ vedio.length && vedio[taskCount] && vedio[taskCount].length > 0
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
@@ -344,13 +325,8 @@
|
|
文档
|
|
文档
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- <div
|
|
|
|
- class="navText"
|
|
|
|
- @click="lookText(taskCount, textIndex)"
|
|
|
|
- >
|
|
|
|
- {{
|
|
|
|
- textList[taskCount].length > 0 ? text.name : ""
|
|
|
|
- }}.doc
|
|
|
|
|
|
+ <div class="navText" @click="lookText(taskCount, textIndex)">
|
|
|
|
+ {{ textList[taskCount].length > 0 ? text.name : "" }}.doc
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -413,9 +389,7 @@
|
|
<div
|
|
<div
|
|
class="newNav"
|
|
class="newNav"
|
|
v-show="
|
|
v-show="
|
|
- file.length &&
|
|
|
|
- file[taskCount] &&
|
|
|
|
- file[taskCount].length > 0
|
|
|
|
|
|
+ file.length && file[taskCount] && file[taskCount].length > 0
|
|
"
|
|
"
|
|
v-for="(f, fileIndex) in file[taskCount]"
|
|
v-for="(f, fileIndex) in file[taskCount]"
|
|
:key="fileIndex"
|
|
:key="fileIndex"
|
|
@@ -476,21 +450,17 @@
|
|
<div
|
|
<div
|
|
class="vedioBox"
|
|
class="vedioBox"
|
|
v-if="
|
|
v-if="
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
- .toolChoose[0].tool &&
|
|
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
- .toolChoose[0].tool.length &&
|
|
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
- .toolChoose[0].tool.length > 0
|
|
|
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose[0]
|
|
|
|
+ .tool &&
|
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose[0]
|
|
|
|
+ .tool.length &&
|
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose[0]
|
|
|
|
+ .tool.length > 0
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
class="queTop"
|
|
class="queTop"
|
|
- style="
|
|
|
|
- font-size: 25px;
|
|
|
|
- padding: 20px 0 20px 30px;
|
|
|
|
- font-weight: bold;
|
|
|
|
- "
|
|
|
|
|
|
+ style="font-size: 25px; padding: 20px 0 20px 30px; font-weight: bold"
|
|
>
|
|
>
|
|
<!-- <div class="question" style="width: 30px">
|
|
<!-- <div class="question" style="width: 30px">
|
|
<img src="../assets/icon/toolIcon.png" alt />
|
|
<img src="../assets/icon/toolIcon.png" alt />
|
|
@@ -504,8 +474,8 @@
|
|
<div
|
|
<div
|
|
class="filebox"
|
|
class="filebox"
|
|
style="flex-wrap: nowrap; margin: 0 20px"
|
|
style="flex-wrap: nowrap; margin: 0 20px"
|
|
- v-for="(tool, toolIndex) in chapInfoList[courseType]
|
|
|
|
- .chapterInfo[0].taskJson[taskCount].toolChoose"
|
|
|
|
|
|
+ v-for="(tool, toolIndex) in chapInfoList[courseType].chapterInfo[0]
|
|
|
|
+ .taskJson[taskCount].toolChoose"
|
|
:key="toolIndex"
|
|
:key="toolIndex"
|
|
>
|
|
>
|
|
<div class="bzBox">
|
|
<div class="bzBox">
|
|
@@ -699,10 +669,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="worksStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="width: 240px; height: 170px; overflow: hidden"
|
|
style="width: 240px; height: 170px; overflow: hidden"
|
|
@@ -711,11 +678,7 @@
|
|
:class="w.type == 1 ? 'isTypeOne' : ''"
|
|
:class="w.type == 1 ? 'isTypeOne' : ''"
|
|
>
|
|
>
|
|
<div class="workImg" v-if="w.type == 0">
|
|
<div class="workImg" v-if="w.type == 0">
|
|
- <img
|
|
|
|
- :src="w.works"
|
|
|
|
- @click="previewImg(w.works)"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="w.works" @click="previewImg(w.works)" alt />
|
|
</div>
|
|
</div>
|
|
<div class="workImg" v-if="w.type == 1">
|
|
<div class="workImg" v-if="w.type == 1">
|
|
<img
|
|
<img
|
|
@@ -750,10 +713,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="workStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="width: 240px; height: 170px"
|
|
style="width: 240px; height: 170px"
|
|
@@ -761,11 +721,7 @@
|
|
:key="wIndex"
|
|
:key="wIndex"
|
|
>
|
|
>
|
|
<div class="workImg" v-if="w.type == 0">
|
|
<div class="workImg" v-if="w.type == 0">
|
|
- <img
|
|
|
|
- :src="w.works"
|
|
|
|
- @click="previewImg(w.works)"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="w.works" @click="previewImg(w.works)" alt />
|
|
</div>
|
|
</div>
|
|
<div class="workImg" v-if="w.type == 1">
|
|
<div class="workImg" v-if="w.type == 1">
|
|
<img
|
|
<img
|
|
@@ -814,13 +770,7 @@
|
|
<img
|
|
<img
|
|
src="../assets/icon/works/noImg.png"
|
|
src="../assets/icon/works/noImg.png"
|
|
@click="
|
|
@click="
|
|
- openTools(
|
|
|
|
- 4,
|
|
|
|
- toolIndex,
|
|
|
|
- taskCount,
|
|
|
|
- w.works,
|
|
|
|
- w.sName
|
|
|
|
- )
|
|
|
|
|
|
+ openTools(4, toolIndex, taskCount, w.works, w.sName)
|
|
"
|
|
"
|
|
alt
|
|
alt
|
|
/>
|
|
/>
|
|
@@ -859,10 +809,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="workStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="
|
|
style="
|
|
@@ -879,15 +826,7 @@
|
|
<div class="workImg">
|
|
<div class="workImg">
|
|
<img
|
|
<img
|
|
src="../assets/icon/works/noImg.png"
|
|
src="../assets/icon/works/noImg.png"
|
|
- @click="
|
|
|
|
- openTools(
|
|
|
|
- 4,
|
|
|
|
- toolIndex,
|
|
|
|
- taskCount,
|
|
|
|
- w.works,
|
|
|
|
- w.sName
|
|
|
|
- )
|
|
|
|
- "
|
|
|
|
|
|
+ @click="openTools(4, toolIndex, taskCount, w.works, w.sName)"
|
|
alt
|
|
alt
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
@@ -908,10 +847,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="worksStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
@@ -960,10 +896,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="workStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
@@ -1002,10 +935,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="worksStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
@@ -1014,11 +944,7 @@
|
|
>
|
|
>
|
|
<!-- @click="previewImg(w.works)" -->
|
|
<!-- @click="previewImg(w.works)" -->
|
|
<div class="workImg">
|
|
<div class="workImg">
|
|
- <img
|
|
|
|
- :src="w.works"
|
|
|
|
- @click="previewImg(w.works)"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="w.works" @click="previewImg(w.works)" alt />
|
|
</div>
|
|
</div>
|
|
<div class="worksName">
|
|
<div class="worksName">
|
|
<div>{{ w.sName }}</div>
|
|
<div>{{ w.sName }}</div>
|
|
@@ -1046,10 +972,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="workStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
@@ -1057,11 +980,7 @@
|
|
:key="wIndex"
|
|
:key="wIndex"
|
|
>
|
|
>
|
|
<div class="workImg">
|
|
<div class="workImg">
|
|
- <img
|
|
|
|
- :src="w.works"
|
|
|
|
- @click="previewImg(w.works)"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="w.works" @click="previewImg(w.works)" alt />
|
|
</div>
|
|
</div>
|
|
<div class="worksName">
|
|
<div class="worksName">
|
|
<div>{{ w.sName }}</div>
|
|
<div>{{ w.sName }}</div>
|
|
@@ -1079,10 +998,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="worksStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
@@ -1091,11 +1007,7 @@
|
|
>
|
|
>
|
|
<!-- @click="previewImg(w.works)" -->
|
|
<!-- @click="previewImg(w.works)" -->
|
|
<div class="workImg">
|
|
<div class="workImg">
|
|
- <img
|
|
|
|
- :src="w.works"
|
|
|
|
- @click="previewImg(w.works)"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="w.works" @click="previewImg(w.works)" alt />
|
|
</div>
|
|
</div>
|
|
<div class="worksName">
|
|
<div class="worksName">
|
|
<div>{{ w.sName }}</div>
|
|
<div>{{ w.sName }}</div>
|
|
@@ -1123,10 +1035,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="workStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
@@ -1134,11 +1043,7 @@
|
|
:key="wIndex"
|
|
:key="wIndex"
|
|
>
|
|
>
|
|
<div class="workImg">
|
|
<div class="workImg">
|
|
- <img
|
|
|
|
- :src="w.works"
|
|
|
|
- @click="previewImg(w.works)"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="w.works" @click="previewImg(w.works)" alt />
|
|
</div>
|
|
</div>
|
|
<div class="worksName">
|
|
<div class="worksName">
|
|
<div>{{ w.sName }}</div>
|
|
<div>{{ w.sName }}</div>
|
|
@@ -1156,10 +1061,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="worksStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
@@ -1168,11 +1070,7 @@
|
|
>
|
|
>
|
|
<!-- @click="previewImg(w.works)" -->
|
|
<!-- @click="previewImg(w.works)" -->
|
|
<div class="workImg">
|
|
<div class="workImg">
|
|
- <img
|
|
|
|
- :src="w.works"
|
|
|
|
- @click="previewImg(w.works)"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="w.works" @click="previewImg(w.works)" alt />
|
|
</div>
|
|
</div>
|
|
<div class="worksName">
|
|
<div class="worksName">
|
|
<div>{{ w.sName }}</div>
|
|
<div>{{ w.sName }}</div>
|
|
@@ -1200,10 +1098,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="workStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
@@ -1211,11 +1106,7 @@
|
|
:key="wIndex"
|
|
:key="wIndex"
|
|
>
|
|
>
|
|
<div class="workImg">
|
|
<div class="workImg">
|
|
- <img
|
|
|
|
- :src="w.works"
|
|
|
|
- @click="previewImg(w.works)"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="w.works" @click="previewImg(w.works)" alt />
|
|
</div>
|
|
</div>
|
|
<div class="worksName">
|
|
<div class="worksName">
|
|
<div>{{ w.sName }}</div>
|
|
<div>{{ w.sName }}</div>
|
|
@@ -1233,10 +1124,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="worksStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
@@ -1245,11 +1133,7 @@
|
|
>
|
|
>
|
|
<!-- @click="previewImg(w.works)" -->
|
|
<!-- @click="previewImg(w.works)" -->
|
|
<div class="workImg">
|
|
<div class="workImg">
|
|
- <img
|
|
|
|
- :src="w.works"
|
|
|
|
- @click="previewImg(w.works)"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="w.works" @click="previewImg(w.works)" alt />
|
|
</div>
|
|
</div>
|
|
<div class="worksName">
|
|
<div class="worksName">
|
|
<div>{{ w.sName }}</div>
|
|
<div>{{ w.sName }}</div>
|
|
@@ -1277,10 +1161,7 @@
|
|
>
|
|
>
|
|
作业预览
|
|
作业预览
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="worksDetailBox"
|
|
|
|
- v-if="workStudent[toolIndex].length > 0"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
|
|
<div
|
|
<div
|
|
class="works"
|
|
class="works"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
style="width: 200px; height: 140px; padding-top: 25px"
|
|
@@ -1288,11 +1169,7 @@
|
|
:key="wIndex"
|
|
:key="wIndex"
|
|
>
|
|
>
|
|
<div class="workImg">
|
|
<div class="workImg">
|
|
- <img
|
|
|
|
- :src="w.works"
|
|
|
|
- @click="previewImg(w.works)"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="w.works" @click="previewImg(w.works)" alt />
|
|
</div>
|
|
</div>
|
|
<div class="worksName">
|
|
<div class="worksName">
|
|
<div>{{ w.sName }}</div>
|
|
<div>{{ w.sName }}</div>
|
|
@@ -1315,21 +1192,16 @@
|
|
<div
|
|
<div
|
|
class="vedioBox"
|
|
class="vedioBox"
|
|
v-if="
|
|
v-if="
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
- .eList &&
|
|
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
- .eList.length &&
|
|
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
- .eList.length > 0
|
|
|
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList &&
|
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
|
|
|
|
+ .length &&
|
|
|
|
+ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length >
|
|
|
|
+ 0
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
class="queTop"
|
|
class="queTop"
|
|
- style="
|
|
|
|
- font-size: 25px;
|
|
|
|
- padding: 20px 0 20px 30px;
|
|
|
|
- font-weight: bold;
|
|
|
|
- "
|
|
|
|
|
|
+ style="font-size: 25px; padding: 20px 0 20px 30px; font-weight: bold"
|
|
>
|
|
>
|
|
<!-- <div class="question" style="width: 30px">
|
|
<!-- <div class="question" style="width: 30px">
|
|
<img src="../assets/icon/toolIcon.png" alt />
|
|
<img src="../assets/icon/toolIcon.png" alt />
|
|
@@ -1342,12 +1214,12 @@
|
|
<div class="evaCss">
|
|
<div class="evaCss">
|
|
<div class="elist_input">
|
|
<div class="elist_input">
|
|
<div
|
|
<div
|
|
- v-for="(eItem, eIndex) in chapInfoList[courseType]
|
|
|
|
- .chapterInfo[0].taskJson[taskCount].eList"
|
|
|
|
|
|
+ v-for="(eItem, eIndex) in chapInfoList[courseType].chapterInfo[0]
|
|
|
|
+ .taskJson[taskCount].eList"
|
|
:key="eIndex"
|
|
:key="eIndex"
|
|
class="elist_input_box"
|
|
class="elist_input_box"
|
|
>
|
|
>
|
|
- <div style="width:95%">
|
|
|
|
|
|
+ <div style="width: 95%">
|
|
<div
|
|
<div
|
|
style="
|
|
style="
|
|
display: flex;
|
|
display: flex;
|
|
@@ -1356,7 +1228,7 @@
|
|
align-items: center;
|
|
align-items: center;
|
|
"
|
|
"
|
|
>
|
|
>
|
|
- <div style="max-width: calc(100% - 285px);">
|
|
|
|
|
|
+ <div style="max-width: calc(100% - 285px)">
|
|
<span>{{ eItem.value }} </span>
|
|
<span>{{ eItem.value }} </span>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
@@ -1377,7 +1249,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
- v-if="evalua != ''"
|
|
|
|
|
|
+ v-if="evalua"
|
|
style="
|
|
style="
|
|
border: 1px solid #e5e5e5;
|
|
border: 1px solid #e5e5e5;
|
|
width: 650px;
|
|
width: 650px;
|
|
@@ -1392,12 +1264,7 @@
|
|
<img
|
|
<img
|
|
src="../assets/line.png"
|
|
src="../assets/line.png"
|
|
class="cru_line"
|
|
class="cru_line"
|
|
- style="
|
|
|
|
- width: 125px;
|
|
|
|
- height: 20px;
|
|
|
|
- bottom: -10px;
|
|
|
|
- left: 120px;
|
|
|
|
- "
|
|
|
|
|
|
+ style="width: 125px; height: 20px; bottom: -10px; left: 120px"
|
|
/>
|
|
/>
|
|
<!-- <el-input
|
|
<!-- <el-input
|
|
v-model="eTitle"
|
|
v-model="eTitle"
|
|
@@ -1411,19 +1278,13 @@
|
|
<div class="e_add_list_pbox_title">
|
|
<div class="e_add_list_pbox_title">
|
|
<span class="type_title">切换模式</span>
|
|
<span class="type_title">切换模式</span>
|
|
<div class="type_content">
|
|
<div class="type_content">
|
|
- <span
|
|
|
|
- :class="{ active: typeMode == 1 }"
|
|
|
|
- @click="typeMode = 1"
|
|
|
|
|
|
+ <span :class="{ active: typeMode == 1 }" @click="typeMode = 1"
|
|
>目标树</span
|
|
>目标树</span
|
|
>
|
|
>
|
|
- <span
|
|
|
|
- :class="{ active: typeMode == 2 }"
|
|
|
|
- @click="typeMode = 2"
|
|
|
|
|
|
+ <span :class="{ active: typeMode == 2 }" @click="typeMode = 2"
|
|
>目标罗盘</span
|
|
>目标罗盘</span
|
|
>
|
|
>
|
|
- <span
|
|
|
|
- :class="{ active: typeMode == 3 }"
|
|
|
|
- @click="typeMode = 3"
|
|
|
|
|
|
+ <span :class="{ active: typeMode == 3 }" @click="typeMode = 3"
|
|
>目标看板</span
|
|
>目标看板</span
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -1535,11 +1396,7 @@
|
|
v-if="studyJuri[0].cover.length > 0"
|
|
v-if="studyJuri[0].cover.length > 0"
|
|
>
|
|
>
|
|
<div class="upCover">
|
|
<div class="upCover">
|
|
- <img
|
|
|
|
- :src="studyJuri[0].cover[0].url"
|
|
|
|
- alt
|
|
|
|
- v-if="fileType == 0"
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
|
|
<img :src="word" alt v-else />
|
|
<img :src="word" alt v-else />
|
|
<span class="picName">{{ studyJuri[0].cover[0].name }}</span>
|
|
<span class="picName">{{ studyJuri[0].cover[0].name }}</span>
|
|
|
|
|
|
@@ -1654,9 +1511,7 @@
|
|
</div>
|
|
</div>
|
|
<div v-if="proVisible" class="mask">
|
|
<div v-if="proVisible" class="mask">
|
|
<div class="progressBox">
|
|
<div class="progressBox">
|
|
- <div class="lbox">
|
|
|
|
- <img src="../assets/loading.gif" />上传中,请稍后
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="lbox"><img src="../assets/loading.gif" />上传中,请稍后</div>
|
|
<el-progress
|
|
<el-progress
|
|
:text-inside="true"
|
|
:text-inside="true"
|
|
:stroke-width="20"
|
|
:stroke-width="20"
|
|
@@ -1706,8 +1561,7 @@
|
|
<div class="a_add_input">
|
|
<div class="a_add_input">
|
|
<el-radio-group v-model="radio[index1]">
|
|
<el-radio-group v-model="radio[index1]">
|
|
<el-radio
|
|
<el-radio
|
|
- v-for="(item2, checkIndex) in askJson.askJson[index1]
|
|
|
|
- .checkList"
|
|
|
|
|
|
+ v-for="(item2, checkIndex) in askJson.askJson[index1].checkList"
|
|
:key="checkIndex"
|
|
:key="checkIndex"
|
|
:label="checkIndex"
|
|
:label="checkIndex"
|
|
class="redioStyle"
|
|
class="redioStyle"
|
|
@@ -1720,8 +1574,7 @@
|
|
<div class="a_add_input">
|
|
<div class="a_add_input">
|
|
<el-radio-group v-model="radio[index1]">
|
|
<el-radio-group v-model="radio[index1]">
|
|
<el-radio
|
|
<el-radio
|
|
- v-for="(item2, checkIndex) in askJson.askJson[index1]
|
|
|
|
- .checkList"
|
|
|
|
|
|
+ v-for="(item2, checkIndex) in askJson.askJson[index1].checkList"
|
|
:key="checkIndex"
|
|
:key="checkIndex"
|
|
:label="checkIndex"
|
|
:label="checkIndex"
|
|
disabled
|
|
disabled
|
|
@@ -1756,15 +1609,10 @@
|
|
<div style="font-size: 20px">{{ text.name }}</div>
|
|
<div style="font-size: 20px">{{ text.name }}</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<div>富文本内容</div>
|
|
<div>富文本内容</div>
|
|
- <div
|
|
|
|
- v-html="text.url"
|
|
|
|
- style="font-size: 18px; padding: 40px 0 0 0"
|
|
|
|
- ></div>
|
|
|
|
|
|
+ <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
|
|
</el-form>
|
|
</el-form>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
- <el-button type="primary" @click="dialogVisible1 = false"
|
|
|
|
- >确定</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -1779,13 +1627,7 @@
|
|
:pdfUrl="pptImgUrl"
|
|
:pdfUrl="pptImgUrl"
|
|
style="width: 100%; height: 520px; overflow: auto"
|
|
style="width: 100%; height: 520px; overflow: auto"
|
|
></pdf>
|
|
></pdf>
|
|
- <iframe
|
|
|
|
- v-else
|
|
|
|
- :src="pptImgUrl"
|
|
|
|
- frameborder="0"
|
|
|
|
- width="100%"
|
|
|
|
- height="600"
|
|
|
|
- ></iframe>
|
|
|
|
|
|
+ <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600"></iframe>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog
|
|
<el-dialog
|
|
title="文件预览"
|
|
title="文件预览"
|
|
@@ -1794,12 +1636,7 @@
|
|
:before-close="handleClose"
|
|
:before-close="handleClose"
|
|
class="dialog_diy"
|
|
class="dialog_diy"
|
|
>
|
|
>
|
|
- <iframe
|
|
|
|
- :src="pptImgUrl1"
|
|
|
|
- frameborder="0"
|
|
|
|
- width="100%"
|
|
|
|
- height="600"
|
|
|
|
- ></iframe>
|
|
|
|
|
|
+ <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog
|
|
<el-dialog
|
|
title="提示"
|
|
title="提示"
|
|
@@ -2190,10 +2027,9 @@ export default {
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api + "selectStudentWorks", params)
|
|
.get(this.$store.state.api + "selectStudentWorks", params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- var a =
|
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
|
- this.taskCount
|
|
|
|
- ].toolChoose;
|
|
|
|
|
|
+ var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
|
+ this.taskCount
|
|
|
|
+ ].toolChoose;
|
|
var b = res.data[0];
|
|
var b = res.data[0];
|
|
var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
|
|
var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
|
|
|
|
|
|
@@ -2248,10 +2084,9 @@ export default {
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api + "selectSWorks", params)
|
|
.get(this.$store.state.api + "selectSWorks", params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- var a =
|
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
|
- this.taskCount
|
|
|
|
- ].toolChoose;
|
|
|
|
|
|
+ var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
|
+ this.taskCount
|
|
|
|
+ ].toolChoose;
|
|
var b = res.data[0];
|
|
var b = res.data[0];
|
|
var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
|
|
var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
|
|
|
|
|
|
@@ -2270,17 +2105,15 @@ export default {
|
|
}
|
|
}
|
|
if (!this.checkJson[i][z].checkCount.length) {
|
|
if (!this.checkJson[i][z].checkCount.length) {
|
|
this.checkJson[i][z].checkCount = [];
|
|
this.checkJson[i][z].checkCount = [];
|
|
- let _askItemCount = JSON.parse(data.content)[0].askJson
|
|
|
|
- .askJson[z].askItem;
|
|
|
|
|
|
+ let _askItemCount = JSON.parse(data.content)[0].askJson.askJson[z]
|
|
|
|
+ .askItem;
|
|
for (var aic = 0; aic < _askItemCount; aic++) {
|
|
for (var aic = 0; aic < _askItemCount; aic++) {
|
|
this.checkJson[i][z].checkCount.push(0);
|
|
this.checkJson[i][z].checkCount.push(0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.checkJson[i][z].checkCount[parseInt(checkL[z])]
|
|
this.checkJson[i][z].checkCount[parseInt(checkL[z])]
|
|
? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
|
|
? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
|
|
- : (this.checkJson[i][z].checkCount[
|
|
|
|
- parseInt(checkL[z])
|
|
|
|
- ] = 1);
|
|
|
|
|
|
+ : (this.checkJson[i][z].checkCount[parseInt(checkL[z])] = 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (b[j].type == 1 || b[j].type == 4) {
|
|
if (b[j].type == 1 || b[j].type == 4) {
|
|
@@ -2325,11 +2158,7 @@ export default {
|
|
if (data.type == 2) {
|
|
if (data.type == 2) {
|
|
for (var z = 0; z < this.checkJson[i].length; z++) {
|
|
for (var z = 0; z < this.checkJson[i].length; z++) {
|
|
this.checkJson[i][z].checkPerent = [];
|
|
this.checkJson[i][z].checkPerent = [];
|
|
- for (
|
|
|
|
- var k = 0;
|
|
|
|
- k < this.checkJson[i][z].checkCount.length;
|
|
|
|
- k++
|
|
|
|
- ) {
|
|
|
|
|
|
+ for (var k = 0; k < this.checkJson[i][z].checkCount.length; k++) {
|
|
this.checkJson[i][z].checkPerent.push(
|
|
this.checkJson[i][z].checkPerent.push(
|
|
Math.round(
|
|
Math.round(
|
|
(this.checkJson[i][z].checkCount[k] /
|
|
(this.checkJson[i][z].checkCount[k] /
|
|
@@ -2509,8 +2338,7 @@ export default {
|
|
this.navList[this.courseType].isOpen = false;
|
|
this.navList[this.courseType].isOpen = false;
|
|
this.courseType = b;
|
|
this.courseType = b;
|
|
this.taskCount =
|
|
this.taskCount =
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson
|
|
|
|
- .length - 1;
|
|
|
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length - 1;
|
|
this.navList[this.courseType].isOpen = true;
|
|
this.navList[this.courseType].isOpen = true;
|
|
} else {
|
|
} else {
|
|
this.taskCount--;
|
|
this.taskCount--;
|
|
@@ -2520,8 +2348,7 @@ export default {
|
|
this.navList[this.courseType].isOpen = false;
|
|
this.navList[this.courseType].isOpen = false;
|
|
this.courseType--;
|
|
this.courseType--;
|
|
this.taskCount =
|
|
this.taskCount =
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson
|
|
|
|
- .length - 1;
|
|
|
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length - 1;
|
|
this.navList[this.courseType].isOpen = true;
|
|
this.navList[this.courseType].isOpen = true;
|
|
} else {
|
|
} else {
|
|
this.taskCount--;
|
|
this.taskCount--;
|
|
@@ -2532,8 +2359,7 @@ export default {
|
|
if (this.courseType == b) {
|
|
if (this.courseType == b) {
|
|
if (
|
|
if (
|
|
this.taskCount ==
|
|
this.taskCount ==
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
|
|
|
|
- 1
|
|
|
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length - 1
|
|
) {
|
|
) {
|
|
this.navList[this.courseType].isOpen = false;
|
|
this.navList[this.courseType].isOpen = false;
|
|
this.courseType = 0;
|
|
this.courseType = 0;
|
|
@@ -2545,8 +2371,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
if (
|
|
if (
|
|
this.taskCount ==
|
|
this.taskCount ==
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
|
|
|
|
- 1
|
|
|
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length - 1
|
|
) {
|
|
) {
|
|
this.navList[this.courseType].isOpen = false;
|
|
this.navList[this.courseType].isOpen = false;
|
|
this.courseType++;
|
|
this.courseType++;
|
|
@@ -2567,12 +2392,10 @@ export default {
|
|
}
|
|
}
|
|
this.navId = this.navList[this.courseType].task[this.taskCount].id;
|
|
this.navId = this.navList[this.courseType].task[this.taskCount].id;
|
|
if (this.vedio[this.taskCount].length > 0) {
|
|
if (this.vedio[this.taskCount].length > 0) {
|
|
- var a =
|
|
|
|
- document.getElementsByClassName("box_course")[this.taskCount]
|
|
|
|
- .offsetHeight;
|
|
|
|
- document.getElementsByClassName("vedioList")[
|
|
|
|
- this.taskCount
|
|
|
|
- ].style.height = a + "px";
|
|
|
|
|
|
+ var a = document.getElementsByClassName("box_course")[this.taskCount]
|
|
|
|
+ .offsetHeight;
|
|
|
|
+ document.getElementsByClassName("vedioList")[this.taskCount].style.height =
|
|
|
|
+ a + "px";
|
|
document.getElementsByClassName("navBox")[this.taskCount].style.height =
|
|
document.getElementsByClassName("navBox")[this.taskCount].style.height =
|
|
a - 40 + "px";
|
|
a - 40 + "px";
|
|
}
|
|
}
|
|
@@ -2668,8 +2491,8 @@ export default {
|
|
.get(this.$store.state.api + "selectCourseDetail", params)
|
|
.get(this.$store.state.api + "selectCourseDetail", params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
loading.close();
|
|
loading.close();
|
|
- var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
|
|
|
|
- .chapterInfo[0].taskJson;
|
|
|
|
|
|
+ var a = JSON.parse(res.data[0][0].chapters)[this.courseType].chapterInfo[0]
|
|
|
|
+ .taskJson;
|
|
var b = [
|
|
var b = [
|
|
"AVI",
|
|
"AVI",
|
|
"NAVI",
|
|
"NAVI",
|
|
@@ -2731,15 +2554,12 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var d = JSON.parse(JSON.stringify(this.playerOptions));
|
|
var d = JSON.parse(JSON.stringify(this.playerOptions));
|
|
- d.sources[0].src =
|
|
|
|
- this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
|
|
|
|
|
|
+ d.sources[0].src = this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
|
|
this.playerO[i] = d;
|
|
this.playerO[i] = d;
|
|
}
|
|
}
|
|
this.courseDetail = res.data[0][0];
|
|
this.courseDetail = res.data[0][0];
|
|
this.evalua = res.data[0][0].evaId;
|
|
this.evalua = res.data[0][0].evaId;
|
|
- this.chapInfo = JSON.parse(this.courseDetail.chapters)[
|
|
|
|
- this.courseType
|
|
|
|
- ];
|
|
|
|
|
|
+ this.chapInfo = JSON.parse(this.courseDetail.chapters)[this.courseType];
|
|
this.chapInfoList = JSON.parse(this.courseDetail.chapters);
|
|
this.chapInfoList = JSON.parse(this.courseDetail.chapters);
|
|
if (this.navList.length == 0) {
|
|
if (this.navList.length == 0) {
|
|
this.navList = [];
|
|
this.navList = [];
|
|
@@ -2768,26 +2588,18 @@ export default {
|
|
w[m].id = l + "-" + m;
|
|
w[m].id = l + "-" + m;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (
|
|
|
|
- !this.vedio[this.taskCount][0] ||
|
|
|
|
- this.vedio[this.taskCount][0].url == ""
|
|
|
|
- ) {
|
|
|
|
|
|
+ if (!this.vedio[this.taskCount][0] || this.vedio[this.taskCount][0].url == "") {
|
|
if (
|
|
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.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
|
|
|
|
+ .chapterData.length > 0 &&
|
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
|
|
|
|
+ .chapterData[0].type == 3
|
|
) {
|
|
) {
|
|
- let _url =
|
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
|
- this.taskCount
|
|
|
|
- ].chapterData[0].url;
|
|
|
|
|
|
+ let _url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
|
+ this.taskCount
|
|
|
|
+ ].chapterData[0].url;
|
|
if (
|
|
if (
|
|
- _url
|
|
|
|
- .split(".")
|
|
|
|
- [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
|
|
|
|
|
|
+ _url.split(".")[_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
|
|
) {
|
|
) {
|
|
this.showType = 3;
|
|
this.showType = 3;
|
|
this.pptImgUrl1 = _url;
|
|
this.pptImgUrl1 = _url;
|
|
@@ -2797,12 +2609,10 @@ export default {
|
|
"https://view.officeapps.live.com/op/view.aspx?src=" + _url;
|
|
"https://view.officeapps.live.com/op/view.aspx?src=" + _url;
|
|
}
|
|
}
|
|
} else if (
|
|
} 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.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.showType = 1;
|
|
this.text = this.textList[this.taskCount][0];
|
|
this.text = this.textList[this.taskCount][0];
|
|
@@ -2820,12 +2630,9 @@ export default {
|
|
}, 5000);
|
|
}, 5000);
|
|
_this.$nextTick(function () {
|
|
_this.$nextTick(function () {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- var a =
|
|
|
|
- document.getElementsByClassName("box_course")[0].offsetHeight;
|
|
|
|
- document.getElementsByClassName("vedioList")[0].style.height =
|
|
|
|
- a + "px";
|
|
|
|
- document.getElementsByClassName("navBox")[0].style.height =
|
|
|
|
- a - 40 + "px";
|
|
|
|
|
|
+ var a = document.getElementsByClassName("box_course")[0].offsetHeight;
|
|
|
|
+ document.getElementsByClassName("vedioList")[0].style.height = a + "px";
|
|
|
|
+ document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
|
|
}, 500);
|
|
}, 500);
|
|
});
|
|
});
|
|
if (_this.vedio[_this.taskCount].length > 0) {
|
|
if (_this.vedio[_this.taskCount].length > 0) {
|
|
@@ -2860,17 +2667,9 @@ export default {
|
|
},
|
|
},
|
|
isAssetTypeAnImage(ext) {
|
|
isAssetTypeAnImage(ext) {
|
|
return (
|
|
return (
|
|
- [
|
|
|
|
- "png",
|
|
|
|
- "jpg",
|
|
|
|
- "jpeg",
|
|
|
|
- "bmp",
|
|
|
|
- "gif",
|
|
|
|
- "webp",
|
|
|
|
- "psd",
|
|
|
|
- "svg",
|
|
|
|
- "tiff",
|
|
|
|
- ].indexOf(ext) !== -1
|
|
|
|
|
|
+ ["png", "jpg", "jpeg", "bmp", "gif", "webp", "psd", "svg", "tiff"].indexOf(
|
|
|
|
+ ext
|
|
|
|
+ ) !== -1
|
|
);
|
|
);
|
|
},
|
|
},
|
|
switchVideo(media) {
|
|
switchVideo(media) {
|
|
@@ -2899,17 +2698,11 @@ export default {
|
|
openFile(f) {
|
|
openFile(f) {
|
|
this.pptImgUrl = "";
|
|
this.pptImgUrl = "";
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
|
|
- if (
|
|
|
|
- a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
|
|
|
|
- -1
|
|
|
|
- ) {
|
|
|
|
- this.pptImgUrl =
|
|
|
|
- "https://view.officeapps.live.com/op/view.aspx?src=" + f;
|
|
|
|
|
|
+ if (a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) != -1) {
|
|
|
|
+ this.pptImgUrl = "https://view.officeapps.live.com/op/view.aspx?src=" + f;
|
|
this.showPDF = false;
|
|
this.showPDF = false;
|
|
this.dialogVisible3 = true;
|
|
this.dialogVisible3 = true;
|
|
- } else if (
|
|
|
|
- f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
|
|
|
|
- ) {
|
|
|
|
|
|
+ } else if (f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF") {
|
|
this.pptImgUrl = f;
|
|
this.pptImgUrl = f;
|
|
this.showPDF = true;
|
|
this.showPDF = true;
|
|
this.dialogVisible3 = true;
|
|
this.dialogVisible3 = true;
|
|
@@ -2919,17 +2712,13 @@ export default {
|
|
this.pptImgUrl1 = "";
|
|
this.pptImgUrl1 = "";
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
|
|
if (
|
|
if (
|
|
- a.indexOf(
|
|
|
|
- f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
|
|
|
|
- ) != -1
|
|
|
|
|
|
+ a.indexOf(f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()) != -1
|
|
) {
|
|
) {
|
|
- this.pptImgUrl1 =
|
|
|
|
- "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
|
|
|
|
|
|
+ this.pptImgUrl1 = "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
|
|
// this.dialogVisible3 = true;
|
|
// this.dialogVisible3 = true;
|
|
this.showType = 2;
|
|
this.showType = 2;
|
|
} else if (
|
|
} else if (
|
|
- f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
|
|
|
|
- "PDF"
|
|
|
|
|
|
+ f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() == "PDF"
|
|
) {
|
|
) {
|
|
this.pptImgUrl1 = f.url;
|
|
this.pptImgUrl1 = f.url;
|
|
// this.dialogVisible3 = true;
|
|
// this.dialogVisible3 = true;
|
|
@@ -3178,18 +2967,15 @@ export default {
|
|
this.toolsCount(a, t);
|
|
this.toolsCount(a, t);
|
|
}
|
|
}
|
|
if (!this.dialogVisible2) {
|
|
if (!this.dialogVisible2) {
|
|
- this.askJson.askJson =
|
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
|
- index
|
|
|
|
- ].toolChoose[i].askJson;
|
|
|
|
- this.askJson.askTitle =
|
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
|
- index
|
|
|
|
- ].toolChoose[i].askTitle;
|
|
|
|
- this.askJson.askCount =
|
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
|
- index
|
|
|
|
- ].toolChoose[i].askCount;
|
|
|
|
|
|
+ this.askJson.askJson = this.chapInfoList[
|
|
|
|
+ this.courseType
|
|
|
|
+ ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
|
|
|
|
+ this.askJson.askTitle = this.chapInfoList[
|
|
|
|
+ this.courseType
|
|
|
|
+ ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
|
|
|
|
+ this.askJson.askCount = this.chapInfoList[
|
|
|
|
+ this.courseType
|
|
|
|
+ ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
|
|
} else {
|
|
} else {
|
|
this.askJson.askJson = this.chapTools.askJson.askJson;
|
|
this.askJson.askJson = this.chapTools.askJson.askJson;
|
|
this.askJson.askTitle = this.chapTools.askJson.askTitle;
|
|
this.askJson.askTitle = this.chapTools.askJson.askTitle;
|
|
@@ -3299,10 +3085,11 @@ export default {
|
|
a = this.answerCount;
|
|
a = this.answerCount;
|
|
this.toolsCount(a, t);
|
|
this.toolsCount(a, t);
|
|
}
|
|
}
|
|
- this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
|
|
|
|
- .taskJson[index].toolChoose[i].answerQ
|
|
|
|
- ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
|
|
|
|
- .toolChoose[i].answerQ
|
|
|
|
|
|
+ this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
|
|
|
|
+ .toolChoose[i].answerQ
|
|
|
|
+ ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[
|
|
|
|
+ i
|
|
|
|
+ ].answerQ
|
|
: "";
|
|
: "";
|
|
this.answerDialogVisible = true;
|
|
this.answerDialogVisible = true;
|
|
} else if (t == 21) {
|
|
} else if (t == 21) {
|