|
@@ -408,22 +408,23 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="操作" min-width="20">
|
|
|
- <!-- <template slot-scope="scope">
|
|
|
+ <template slot-scope="scope">
|
|
|
<el-button
|
|
|
+ v-if="checkState == 5"
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
- @click="getReport(scope.row)"
|
|
|
+ @click="lookPdf(scope.row)"
|
|
|
>查看报告</el-button
|
|
|
>
|
|
|
- </template> -->
|
|
|
- <template slot-scope="scope">
|
|
|
<el-button
|
|
|
+ v-else
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
- @click="lookPdf(scope.row)"
|
|
|
+ @click="getReport(scope.row)"
|
|
|
>查看报告</el-button
|
|
|
>
|
|
|
</template>
|
|
|
+
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div style="display: flex;justify-content: space-between; padding:15px 0">
|
|
@@ -465,7 +466,15 @@
|
|
|
<div slot="title" class="header-title">
|
|
|
<div style="color: #fff">{{ this.digNum==2 ?'查看':'导出' }}报告</div>
|
|
|
</div>
|
|
|
- <exportDataDialog :key="exportW" :digNum="digNum" :oid="oid" :multipleSelection="multipleSelection" :worksDialogCon="worksDialogCon" :worksDialog.sync="worksDialog" :cid="checkCourse"></exportDataDialog>
|
|
|
+ <exportDataDialog
|
|
|
+ :key="exportW"
|
|
|
+ :digNum="digNum"
|
|
|
+ :oid="oid"
|
|
|
+ :multipleSelection="multipleSelection"
|
|
|
+ :worksDialogCon="worksDialogCon"
|
|
|
+ :worksDialog.sync="worksDialog"
|
|
|
+ :cid="checkCourse">
|
|
|
+ </exportDataDialog>
|
|
|
</el-dialog>
|
|
|
<!-- <div class="cancelbox" v-if="reportVisible">
|
|
|
<el-button @click="cancelR" type="primary" size="small">返回</el-button>
|
|
@@ -529,6 +538,8 @@ export default {
|
|
|
total2: 0,
|
|
|
res2: [],
|
|
|
checkCourse: "",
|
|
|
+ checkState: "",
|
|
|
+
|
|
|
reportVisible: false,
|
|
|
checkStudent: "",
|
|
|
userAarray: [],
|
|
@@ -752,13 +763,18 @@ export default {
|
|
|
this.signDialog = true;
|
|
|
},
|
|
|
searchWork2() {
|
|
|
- (this.page2 = 1), this.getStudnet();
|
|
|
+ this.page2 = 1
|
|
|
+ this.getStudnet();
|
|
|
},
|
|
|
+
|
|
|
+ // 显示查看报告弹框(小弹框)
|
|
|
getStudnet(row) {
|
|
|
+
|
|
|
//获取作业
|
|
|
this.signDialog = true;
|
|
|
this.isLoading2 = true;
|
|
|
this.checkCourse = row ? row.courseId : this.checkCourse;
|
|
|
+ this.checkState = row.state
|
|
|
this.getCourseDetail();
|
|
|
let params = {
|
|
|
cid: this.checkCourse,
|
|
@@ -767,6 +783,7 @@ export default {
|
|
|
task: "",
|
|
|
page: this.page2,
|
|
|
};
|
|
|
+ // 获取学生列表
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "getCourseWorks3Copy", params)
|
|
|
.then((res) => {
|
|
@@ -821,6 +838,7 @@ export default {
|
|
|
|
|
|
});
|
|
|
},
|
|
|
+ // 获取查看报告班级
|
|
|
getCourseDetail() {
|
|
|
let params = {
|
|
|
cid: this.checkCourse,
|