|
@@ -373,7 +373,7 @@
|
|
|
"
|
|
|
alt
|
|
|
/>
|
|
|
- <div class="vedioTime">{{ vedioTime }}</div>
|
|
|
+ <div class="vedioTime">{{ vedioTime[vedioIndex] }}</div>
|
|
|
<!-- <div class="vedioName">{{ media.name }}</div> -->
|
|
|
</div>
|
|
|
<div class="vedioName">{{ media.name }}</div>
|
|
@@ -934,7 +934,7 @@
|
|
|
v-for="(w, wIndex) in workStudent[toolIndex]"
|
|
|
:key="wIndex"
|
|
|
>
|
|
|
- <div class="workImg" v-if="w.type == 2">
|
|
|
+ <div class="workImg">
|
|
|
<!-- <img
|
|
|
src="../assets/icon/works/noImg.png"
|
|
|
@click="openTools(15, toolIndex, taskCount, w.works)"
|
|
@@ -1128,13 +1128,19 @@
|
|
|
>
|
|
|
<div
|
|
|
style="padding-top: 15px; font-size: 18px"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
作业预览
|
|
|
</div>
|
|
|
<div
|
|
|
class="worksDetailBox"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
<div
|
|
|
class="works"
|
|
@@ -1179,14 +1185,20 @@
|
|
|
>
|
|
|
<div
|
|
|
style="padding-top: 15px; font-size: 18px"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
作业预览
|
|
|
</div>
|
|
|
<div>
|
|
|
<div
|
|
|
class="worksDetailBox"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
<div
|
|
|
class="works"
|
|
@@ -1236,7 +1248,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<AskStatic
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
:askJSON="worksStudent[toolIndex][0].works"
|
|
|
:checkJson="checkJson[toolIndex]"
|
|
|
></AskStatic>
|
|
@@ -1247,20 +1262,26 @@
|
|
|
>
|
|
|
<div
|
|
|
style="padding-top: 15px; font-size: 18px"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
作业预览
|
|
|
</div>
|
|
|
<div
|
|
|
class="worksDetailBox"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
<div
|
|
|
class="works"
|
|
|
v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
|
:key="wIndex"
|
|
|
>
|
|
|
- <div class="workImg" v-if="w.type == 2">
|
|
|
+ <div class="workImg">
|
|
|
<!-- <img
|
|
|
src="../assets/icon/works/noImg.png"
|
|
|
@click="openTools(15, toolIndex, taskCount, w.works)"
|
|
@@ -1299,13 +1320,19 @@
|
|
|
>
|
|
|
<div
|
|
|
style="padding-top: 15px; font-size: 18px"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
作业预览
|
|
|
</div>
|
|
|
<div
|
|
|
class="worksDetailBox"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
<div
|
|
|
class="works"
|
|
@@ -1343,13 +1370,19 @@
|
|
|
>
|
|
|
<div
|
|
|
style="padding-top: 15px; font-size: 18px"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
作业预览
|
|
|
</div>
|
|
|
<div
|
|
|
class="worksDetailBox"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
<div
|
|
|
class="works"
|
|
@@ -1387,13 +1420,19 @@
|
|
|
>
|
|
|
<div
|
|
|
style="padding-top: 15px; font-size: 18px"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
作业预览
|
|
|
</div>
|
|
|
<div
|
|
|
class="worksDetailBox"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
<div
|
|
|
class="works"
|
|
@@ -1431,13 +1470,19 @@
|
|
|
>
|
|
|
<div
|
|
|
style="padding-top: 15px; font-size: 18px"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
作业预览
|
|
|
</div>
|
|
|
<div
|
|
|
class="worksDetailBox"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
<div
|
|
|
class="works"
|
|
@@ -1475,13 +1520,19 @@
|
|
|
>
|
|
|
<div
|
|
|
style="padding-top: 15px; font-size: 18px"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
作业预览
|
|
|
</div>
|
|
|
<div
|
|
|
class="worksDetailBox"
|
|
|
- v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
>
|
|
|
<div
|
|
|
class="works"
|
|
@@ -2223,7 +2274,7 @@ export default {
|
|
|
chapTools: [],
|
|
|
chapToolList: [],
|
|
|
file: [],
|
|
|
- vedioTime: "",
|
|
|
+ vedioTime: [],
|
|
|
upToolImg: "",
|
|
|
rateList: {
|
|
|
ca: 0,
|
|
@@ -2526,7 +2577,11 @@ export default {
|
|
|
this.workStudent[i] = [];
|
|
|
for (var j = 0; j < b.length; j++) {
|
|
|
if (i == b[j].tool) {
|
|
|
- if (b[j].type == 1 || b[j].type == 4) {
|
|
|
+ if (
|
|
|
+ (b[j].type == 1 || b[j].type == 4) &&
|
|
|
+ a[i].tool[0] != 15 &&
|
|
|
+ a[i].tool[0] != 4
|
|
|
+ ) {
|
|
|
if (
|
|
|
c.indexOf(
|
|
|
b[j].content
|
|
@@ -2548,7 +2603,14 @@ export default {
|
|
|
time: b[j].time,
|
|
|
});
|
|
|
}
|
|
|
- } else {
|
|
|
+ } else if (b[j].type == 3 && a[i].tool[0] != 15) {
|
|
|
+ this.workStudent[i].push({
|
|
|
+ works: b[j].content,
|
|
|
+ sName: b[j].name,
|
|
|
+ type: 2,
|
|
|
+ time: b[j].time,
|
|
|
+ });
|
|
|
+ } else if (b[j].type == 4 && a[i].tool[0] != 4) {
|
|
|
this.workStudent[i].push({
|
|
|
works: b[j].content,
|
|
|
sName: b[j].name,
|
|
@@ -2587,7 +2649,7 @@ export default {
|
|
|
for (var j = 0; j < b.length; j++) {
|
|
|
var data = b[j];
|
|
|
if (i == b[j].tool) {
|
|
|
- if (data.type == 2) {
|
|
|
+ if (data.type == 2 && a[i].tool[0] == 4) {
|
|
|
var checkL = JSON.parse(data.content)[0].anwer.split(",");
|
|
|
for (var z = 0; z < checkL.length; z++) {
|
|
|
if (!this.checkJson[i][z]) {
|
|
@@ -2608,7 +2670,11 @@ export default {
|
|
|
] = 1);
|
|
|
}
|
|
|
}
|
|
|
- if (b[j].type == 1 || b[j].type == 4) {
|
|
|
+ if (
|
|
|
+ (b[j].type == 1 || b[j].type == 4) &&
|
|
|
+ a[i].tool[0] != 15 &&
|
|
|
+ a[i].tool[0] != 4
|
|
|
+ ) {
|
|
|
if (
|
|
|
c.indexOf(
|
|
|
b[j].content
|
|
@@ -2630,7 +2696,14 @@ export default {
|
|
|
time: b[j].time,
|
|
|
});
|
|
|
}
|
|
|
- } else {
|
|
|
+ } else if (b[j].type == 3 && a[i].tool[0] == 15) {
|
|
|
+ this.worksStudent[i].push({
|
|
|
+ works: b[j].content,
|
|
|
+ sName: b[j].name,
|
|
|
+ type: 2,
|
|
|
+ time: b[j].time,
|
|
|
+ });
|
|
|
+ } else if (b[j].type == 4 && a[i].tool[0] == 4) {
|
|
|
this.worksStudent[i].push({
|
|
|
works: b[j].content,
|
|
|
sName: b[j].name,
|
|
@@ -3226,13 +3299,16 @@ export default {
|
|
|
a + "px";
|
|
|
document.getElementsByClassName("navBox")[0].style.height =
|
|
|
a - 40 + "px";
|
|
|
+ if (_this.vedio[_this.taskCount].length > 0) {
|
|
|
+ _this.vedioTime = [];
|
|
|
+ for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
|
|
|
+ _this.vedioTime[i] = document.getElementsByClassName(
|
|
|
+ "vjs-duration-display"
|
|
|
+ )[i].textContent;
|
|
|
+ }
|
|
|
+ }
|
|
|
}, 500);
|
|
|
});
|
|
|
- if (_this.vedio[_this.taskCount].length > 0) {
|
|
|
- _this.vedioTime = document.getElementsByClassName(
|
|
|
- "vjs-duration-display"
|
|
|
- )[0].textContent;
|
|
|
- }
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
loading.close();
|
|
@@ -3883,11 +3959,14 @@ export default {
|
|
|
document.getElementsByClassName("vedioList")[0].style.height = a + "px";
|
|
|
document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
|
|
|
});
|
|
|
-
|
|
|
+ let _this = this
|
|
|
setTimeout(() => {
|
|
|
- this.vedioTime = document.getElementsByClassName(
|
|
|
- "vjs-duration-display"
|
|
|
- )[0].textContent;
|
|
|
+ _this.vedioTime = [];
|
|
|
+ for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
|
|
|
+ _this.vedioTime[i] = document.getElementsByClassName(
|
|
|
+ "vjs-duration-display"
|
|
|
+ )[i].textContent;
|
|
|
+ }
|
|
|
}, 1000);
|
|
|
},
|
|
|
};
|
|
@@ -4531,6 +4610,7 @@ export default {
|
|
|
font-size: 14px;
|
|
|
left: 110px;
|
|
|
height: 60px;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
.vedioTime {
|
|
|
width: 35px;
|
|
@@ -4980,7 +5060,7 @@ export default {
|
|
|
width: calc(100% / 3 - 10px);
|
|
|
height: auto;
|
|
|
margin-right: 10px;
|
|
|
- margin-bottom:10px
|
|
|
+ margin-bottom: 10px;
|
|
|
}
|
|
|
.workImg {
|
|
|
width: 100%;
|
|
@@ -5043,11 +5123,11 @@ export default {
|
|
|
}
|
|
|
.textBox {
|
|
|
font-size: 20px;
|
|
|
- width: 90%;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- margin: 20px auto 0;
|
|
|
+ width: 90%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ margin: 20px auto 0;
|
|
|
}
|
|
|
.textContent {
|
|
|
font-size: 18px;
|