|
@@ -107,14 +107,13 @@
|
|
|
:key="index+'a'"
|
|
|
:label="item.name"
|
|
|
:value="item.id"
|
|
|
-
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
|
|
|
|
|
|
<div class="typeCheck">
|
|
|
<el-switch v-model="typeCheck"></el-switch
|
|
|
- ><span>查看所有学生</span>
|
|
|
+ ><span style="font-size: 14px;">查看所有学生</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -233,7 +232,7 @@
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
@click="
|
|
|
- lookWork2(scope.row.id, scope.row.userid, scope.row.courseid)
|
|
|
+ lookWork2(scope.row.id, scope.row.userid, scope.row.courseid, dyList[scope.row.stage].name,dyList[scope.row.stage].taskList[scope.row.task].name)
|
|
|
"
|
|
|
>导出作业集</el-button
|
|
|
>
|
|
@@ -3340,7 +3339,7 @@ export default {
|
|
|
},
|
|
|
onPlayerPlay() {},
|
|
|
// this.$store.commit("update", ["userInfo", userInfo]);
|
|
|
- lookWork2(id, uid, cid) {
|
|
|
+ lookWork2(id, uid, cid,stage,task) {
|
|
|
// this.scopeId = id;
|
|
|
let params = {
|
|
|
uid: uid,
|
|
@@ -3931,7 +3930,7 @@ export default {
|
|
|
_bg +
|
|
|
_cocopi +
|
|
|
_word;
|
|
|
- this.generate(_html);
|
|
|
+ this.generate(_html,stage,task);
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
@@ -3962,7 +3961,7 @@ export default {
|
|
|
this.navId = a;
|
|
|
}
|
|
|
},
|
|
|
- async generate(a) {
|
|
|
+ async generate(a,stage,task) {
|
|
|
// 将html文件中需要用到的数据挂载到store上
|
|
|
this.$store.commit("update", ["report", a]);
|
|
|
const content = `<!DOCTYPE html>
|
|
@@ -3980,7 +3979,7 @@ export default {
|
|
|
// debugger
|
|
|
// 生成报告
|
|
|
const link = document.createElement("a");
|
|
|
- let dname = this.sInfo.course + "-" + this.sInfo.sName + ".html";
|
|
|
+ let dname = this.sInfo.course + "-"+stage+"-" + task + this.sInfo.sName + ".html";
|
|
|
// link.download = "报告.html"; // 文件名
|
|
|
link.download = dname; // 文件名
|
|
|
link.style.display = "none";
|
|
@@ -5773,12 +5772,14 @@ ol {
|
|
|
margin-right: 15px;
|
|
|
padding: 5px 0;
|
|
|
cursor: pointer;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
.cutTab > .ctrlBtn2 {
|
|
|
cursor: pointer;
|
|
|
margin-right: 15px;
|
|
|
border-bottom: 3px #409EFF solid;
|
|
|
font-weight: 600;
|
|
|
+ font-size: 14px;
|
|
|
padding: 5px 0;
|
|
|
color: #409EFF;
|
|
|
}
|