|
@@ -338,7 +338,9 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
- @click="openFile(worksDetail[sIndex].wpptInfo[0])"
|
|
|
+ @click="
|
|
|
+ openFile2(worksDetail[sIndex].wpptInfo[0])
|
|
|
+ "
|
|
|
>
|
|
|
查看文档</el-button
|
|
|
>
|
|
@@ -1396,14 +1398,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="allRightBox">
|
|
|
- <span>全部题的正确率:</span
|
|
|
- >
|
|
|
+ <span>全部题的正确率:</span>
|
|
|
<span>{{ checkJson[sIndex].allRight + "%" }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="
|
|
|
- worksDetail[sIndex].eList.length
|
|
|
- ">
|
|
|
+ <div v-if="worksDetail[sIndex].eList.length">
|
|
|
<div class="ech" style="margin-left: 23px">
|
|
|
<img src="../../../assets/icon/pj/score.png" alt="" />
|
|
|
</div>
|
|
@@ -1799,7 +1798,7 @@ export default {
|
|
|
watch: {
|
|
|
typeCheck(newValue, oldValue) {
|
|
|
this.loading = true;
|
|
|
- this.isLoading = true
|
|
|
+ this.isLoading = true;
|
|
|
this.tableData = [];
|
|
|
if (newValue) {
|
|
|
this.getWorks1();
|
|
@@ -1917,7 +1916,7 @@ export default {
|
|
|
var wordInfo = res.data[12]; //文档作业
|
|
|
var workEvaList = res.data[13];
|
|
|
var workJson = {};
|
|
|
- let checkJson = {}
|
|
|
+ let checkJson = {};
|
|
|
|
|
|
for (var k = 0; k < res.data[0].length; k++) {
|
|
|
this.allWorks = res.data[0][k];
|
|
@@ -1977,7 +1976,7 @@ export default {
|
|
|
};
|
|
|
checkJson[stagetask] = {
|
|
|
stagetask: stagetask,
|
|
|
- }
|
|
|
+ };
|
|
|
}
|
|
|
workJson[stagetask].time = res.data[0][k].time;
|
|
|
// for (var i = 0; i < askInfo.length; i++) {
|
|
@@ -2132,14 +2131,18 @@ export default {
|
|
|
isCount += 0;
|
|
|
}
|
|
|
for (var q = 0; q < t.radio[p].length; q++) {
|
|
|
- checkJson[stagetask][p].checkPerson[parseInt(t.radio[p][q])]
|
|
|
+ checkJson[stagetask][p].checkPerson[
|
|
|
+ parseInt(t.radio[p][q])
|
|
|
+ ]
|
|
|
? checkJson[stagetask][p].checkPerson[
|
|
|
parseInt(t.radio[p][q])
|
|
|
].push(res.data[0][k].sName)
|
|
|
: (checkJson[stagetask][p].checkPerson[
|
|
|
parseInt(t.radio[p][q])
|
|
|
] = [res.data[0][k].sName]);
|
|
|
- checkJson[stagetask][p].checkCount[parseInt(t.radio[p][q])]
|
|
|
+ checkJson[stagetask][p].checkCount[
|
|
|
+ parseInt(t.radio[p][q])
|
|
|
+ ]
|
|
|
? checkJson[stagetask][p].checkCount[
|
|
|
parseInt(t.radio[p][q])
|
|
|
]++
|
|
@@ -2163,7 +2166,7 @@ export default {
|
|
|
: (checkJson[stagetask][p].checkPerson[
|
|
|
parseInt(t.radio[p])
|
|
|
] = [res.data[0][k].sName]);
|
|
|
- checkJson[stagetask][p].checkCount[parseInt(t.radio[p])]
|
|
|
+ checkJson[stagetask][p].checkCount[parseInt(t.radio[p])]
|
|
|
? checkJson[stagetask][p].checkCount[
|
|
|
parseInt(t.radio[p])
|
|
|
]++
|
|
@@ -2393,10 +2396,10 @@ export default {
|
|
|
// );
|
|
|
// });
|
|
|
let result = [];
|
|
|
- let checkJsonArray = []
|
|
|
+ let checkJsonArray = [];
|
|
|
for (var wi = 0; wi < Object.keys(workJson).length; wi++) {
|
|
|
result.push(workJson[Object.keys(workJson)[wi]]);
|
|
|
- checkJsonArray.push(checkJson[Object.keys(checkJson)[wi]])
|
|
|
+ checkJsonArray.push(checkJson[Object.keys(checkJson)[wi]]);
|
|
|
}
|
|
|
var resultNewArray = result.sort(function (x, y) {
|
|
|
// 以stagetask字段为排序依据
|
|
@@ -2426,7 +2429,7 @@ export default {
|
|
|
});
|
|
|
result = resultNewArray;
|
|
|
checkJsonArray = checkJsonNewArray;
|
|
|
- this.checkJson = checkJsonArray
|
|
|
+ this.checkJson = checkJsonArray;
|
|
|
for (var l = 0; l < b.length; l++) {
|
|
|
if (workEvaList.length > 0) {
|
|
|
for (var p = 0; p < workEvaList.length; p++) {
|
|
@@ -2652,6 +2655,45 @@ export default {
|
|
|
}
|
|
|
this.dialogVisible6 = true;
|
|
|
},
|
|
|
+ openFile2(f) {
|
|
|
+ this.pptImgUrl = f.wpptInfo;
|
|
|
+ var fileA = [
|
|
|
+ "DOC",
|
|
|
+ "DOCX",
|
|
|
+ "DOCM",
|
|
|
+ "DOTM",
|
|
|
+ "DOTX",
|
|
|
+ "PPTX",
|
|
|
+ "PPSX",
|
|
|
+ "PPT",
|
|
|
+ "PPS",
|
|
|
+ "PPTM",
|
|
|
+ "POTM",
|
|
|
+ "PPAM",
|
|
|
+ "POTX",
|
|
|
+ "PPSM",
|
|
|
+ "XLSX",
|
|
|
+ "XLS",
|
|
|
+ ];
|
|
|
+ if (
|
|
|
+ fileA.indexOf(
|
|
|
+ this.pptImgUrl
|
|
|
+ .split(".")
|
|
|
+ [this.pptImgUrl.split(".").length - 1].toLocaleUpperCase()
|
|
|
+ ) != -1
|
|
|
+ ) {
|
|
|
+ this.showPDF = false; //word 文件
|
|
|
+ } else if (
|
|
|
+ "pdf".indexOf(
|
|
|
+ this.pptImgUrl
|
|
|
+ .split(".")
|
|
|
+ [this.pptImgUrl.split(".").length - 1].toLocaleLowerCase()
|
|
|
+ ) != -1
|
|
|
+ ) {
|
|
|
+ this.showPDF = true; //pdf
|
|
|
+ }
|
|
|
+ this.dialogVisible6 = true;
|
|
|
+ },
|
|
|
//获取班级列表
|
|
|
getClass() {
|
|
|
let params = {
|
|
@@ -3570,7 +3612,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.page = 1;
|
|
|
- this.isLoading = true
|
|
|
+ this.isLoading = true;
|
|
|
this.getCourseDetail();
|
|
|
this.getClass();
|
|
|
this.getGroup();
|