|
@@ -302,7 +302,7 @@
|
|
|
<div slot="title" class="header-title">
|
|
|
<div style="color: #fff">查看&批改</div>
|
|
|
</div>
|
|
|
- <LookWork :id="id" :studentId="studentId" :key="studentId"></LookWork>
|
|
|
+ <LookWork @childExportPdfSetBtn="childExportPdfSetBtn" :id="id" :studentId="studentId" :key="dialogVisible3"></LookWork>
|
|
|
|
|
|
<!-- <div v-else class="zyBoxC" ref="reportPdf">
|
|
|
<div class="courseTitle" v-if="allWorks.course">
|
|
@@ -1585,7 +1585,7 @@
|
|
|
|
|
|
<!-- 自定义导出作业筛选弹框 -->
|
|
|
<el-dialog
|
|
|
- title="自定义导出作业"
|
|
|
+ :title="dataJson.state == 5 ? '按任务导出作业' : '自定义导出作业'"
|
|
|
:visible.sync="dialogVisibleBao"
|
|
|
:append-to-body="true"
|
|
|
width="550px"
|
|
@@ -1594,7 +1594,7 @@
|
|
|
>
|
|
|
<div>
|
|
|
<div>
|
|
|
- <Report :cid="dataJson.courseId" :dataJson="dataJson"></Report>
|
|
|
+ <Report :cid="dataJson.courseId" :dataJson="dataJson" ref="reportRef"></Report>
|
|
|
</div>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer"> </span>
|
|
@@ -1998,6 +1998,15 @@ export default {
|
|
|
|
|
|
this.exportW++
|
|
|
},
|
|
|
+ // 子元素调用父元素 按任务查看导出作业集
|
|
|
+ childExportPdfSetBtn(val) {
|
|
|
+ this.worksDialog = true;
|
|
|
+ this.worksDialogCon = val.con;
|
|
|
+ this.exportPdfSetUid = val.uid;
|
|
|
+ this.digNum = 0
|
|
|
+
|
|
|
+ this.exportW++
|
|
|
+ },
|
|
|
// 导出所有作业
|
|
|
exportPdfSetAllWork(){
|
|
|
this.worksDialog = true;
|
|
@@ -2224,14 +2233,15 @@ export default {
|
|
|
},
|
|
|
lookWork(id, uid, type, index,con) {
|
|
|
// console.log('con',con);
|
|
|
+ this.studentId = '';
|
|
|
|
|
|
this.scopeId1 = id;
|
|
|
this.studentId = uid;
|
|
|
|
|
|
// if (this.DState == 5) {
|
|
|
- this.$nextTick(()=>{
|
|
|
- this.dialogVisible3 = true
|
|
|
- })
|
|
|
+ // this.$nextTick(()=>{
|
|
|
+ this.dialogVisible3 = true
|
|
|
+ // })
|
|
|
// }
|
|
|
return
|
|
|
|