|
@@ -34,6 +34,15 @@
|
|
|
size="small"
|
|
|
>一键导出</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ v-if="checkCourse.state == 5"
|
|
|
+ @click="batchExportPdf"
|
|
|
+ :type="multipleSelection.length < 3 ? 'info' : 'primary'"
|
|
|
+ :disabled="multipleSelection.length < 3"
|
|
|
+ size="small"
|
|
|
+ >批量导出</el-button
|
|
|
+ >
|
|
|
+
|
|
|
<el-button
|
|
|
style="margin-left: 20px;"
|
|
|
@click="pageBack"
|
|
@@ -100,7 +109,15 @@
|
|
|
:fit="true"
|
|
|
style="width: 100%"
|
|
|
:header-cell-style="{ background: 'rgb(238,238,238)' }"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
>
|
|
|
+ <el-table-column
|
|
|
+ v-if="checkCourse.state == 5"
|
|
|
+ key="1"
|
|
|
+ type="selection"
|
|
|
+ width="55"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="sName"
|
|
|
label="姓名"
|
|
@@ -160,7 +177,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
<!-- ai查看报告 -->
|
|
|
<el-dialog
|
|
|
:visible.sync="worksDialog"
|
|
@@ -171,39 +187,33 @@
|
|
|
:fullscreen="true"
|
|
|
>
|
|
|
<div slot="title" class="header-title">
|
|
|
- <div style="color: #fff">{{ this.digNum == 2 ?'查看':'导出' }}报告</div>
|
|
|
+ <div style="color: #fff">
|
|
|
+ {{ this.digNum == 2 ? "查看" : "导出" }}报告
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <exportDataDialog
|
|
|
+ <exportDataDialog
|
|
|
v-if="checkCourse.state == 5"
|
|
|
- :key="exportW"
|
|
|
+ :key="exportW"
|
|
|
:digNum="digNum"
|
|
|
- :oid="oid"
|
|
|
- :multipleSelection="multipleSelection"
|
|
|
- :worksDialogCon="worksDialogCon"
|
|
|
- :worksDialog.sync="worksDialog"
|
|
|
- :cid="checkCourse.courseId">
|
|
|
+ :oid="oid"
|
|
|
+ :classAarray="classAarray"
|
|
|
+ :multipleSelection="multipleSelection"
|
|
|
+ :worksCon="worksDialogCon"
|
|
|
+ :worksDialog.sync="worksDialog"
|
|
|
+ :cid="checkCourse.courseId"
|
|
|
+ >
|
|
|
</exportDataDialog>
|
|
|
-
|
|
|
+ <!-- 非ai查看报告 -->
|
|
|
<div v-else class="report_box">
|
|
|
<studentReport
|
|
|
- :checkCourse="checkCourse.courseId"
|
|
|
- :checkStudent="checkStudent"
|
|
|
- @cancelR="cancelR"
|
|
|
- :oid="oid"
|
|
|
+ :checkCourse="checkCourse.courseId"
|
|
|
+ :checkStudent="checkStudent"
|
|
|
+ @cancelR="cancelR"
|
|
|
+ :oid="oid"
|
|
|
></studentReport>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
-
|
|
|
- <!-- 非ai查看报告
|
|
|
- <div class="report_box" v-if="reportVisible">
|
|
|
- <studentReport
|
|
|
- :checkCourse="checkCourse.courseId"
|
|
|
- :checkStudent="checkStudent"
|
|
|
- @cancelR="cancelR"
|
|
|
- :oid="oid"
|
|
|
- ></studentReport>
|
|
|
- </div> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -212,7 +222,7 @@ import exportDataDialog from "./exportDataDialog.vue";
|
|
|
import studentReport from "./studentReport.vue";
|
|
|
|
|
|
export default {
|
|
|
- props: ["signDialog", "checkCourse","oid"],
|
|
|
+ props: ["signDialog", "checkCourse", "oid"],
|
|
|
components: {
|
|
|
exportDataDialog,
|
|
|
studentReport
|
|
@@ -221,12 +231,12 @@ export default {
|
|
|
return {
|
|
|
// 查看报告table数据
|
|
|
lookReportTab: [],
|
|
|
- exportW:0,
|
|
|
- multipleSelection:[],
|
|
|
- worksDialog:false,
|
|
|
- digNum:0,
|
|
|
+ exportW: 0,
|
|
|
+ multipleSelection: [],
|
|
|
+ worksDialog: false,
|
|
|
+ digNum: 0,
|
|
|
reportVisible: false,
|
|
|
- checkStudent:'',
|
|
|
+ checkStudent: "",
|
|
|
userAarray: [],
|
|
|
classAarray: [],
|
|
|
uname: "",
|
|
@@ -235,7 +245,7 @@ export default {
|
|
|
page2: 1,
|
|
|
total2: 0,
|
|
|
isLoading2: false,
|
|
|
- worksDialogCon:{}
|
|
|
+ worksDialogCon: {}
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -250,56 +260,71 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 批量选择作业
|
|
|
+ handleSelectionChange(val) {
|
|
|
+ this.multipleSelection = val;
|
|
|
+ },
|
|
|
// ai查看报告
|
|
|
- lookPdf(val){
|
|
|
- this.worksDialogCon=val
|
|
|
+ lookPdf(val) {
|
|
|
+ this.worksDialogCon = val;
|
|
|
this.worksDialog = true;
|
|
|
- this.digNum = 2
|
|
|
- this.exportW++
|
|
|
+ this.digNum = 2;
|
|
|
+ this.exportW++;
|
|
|
},
|
|
|
// 一键导出
|
|
|
exportWorkPdf() {
|
|
|
- this
|
|
|
- .$confirm("一键导出所有报告需要占用您大量时间,是否导出?", "提示", {
|
|
|
- confirmButtonText: "确认",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ this.$confirm("一键导出所有报告需要占用您大量时间,是否导出?", "提示", {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.worksDialog = true;
|
|
|
+ this.digNum = 1;
|
|
|
+ this.exportW++;
|
|
|
})
|
|
|
+ .catch(err => {
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ batchExportPdf() {
|
|
|
+ this.$confirm("批量导出报告需要占用您一些时间,是否导出?", "提示", {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
.then(() => {
|
|
|
+
|
|
|
this.worksDialog = true;
|
|
|
- this.digNum = 1
|
|
|
- this.exportW++
|
|
|
+
|
|
|
+ this.digNum = 0;
|
|
|
+ this.exportW++;
|
|
|
})
|
|
|
- .catch((err) => {
|
|
|
- console.log(err);
|
|
|
+ .catch(err => {
|
|
|
+ console.log(err);
|
|
|
});
|
|
|
-
|
|
|
},
|
|
|
// 导出报告
|
|
|
getPdf(val) {
|
|
|
-
|
|
|
- this
|
|
|
- .$confirm("直接导出报告需要占用您一些时间,是否导出?", "提示", {
|
|
|
- confirmButtonText: "确认",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- })
|
|
|
+ this.$confirm("直接导出报告需要占用您一些时间,是否导出?", "提示", {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
.then(() => {
|
|
|
- console.log('val',val);
|
|
|
+ console.log("val", val);
|
|
|
|
|
|
- this.worksDialogCon=val
|
|
|
- this.worksDialog = true;
|
|
|
+ this.worksDialogCon = val;
|
|
|
+ this.worksDialog = true;
|
|
|
|
|
|
- this.multipleSelection = []
|
|
|
- this.multipleSelection.push(val)
|
|
|
- this.digNum = 0
|
|
|
- this.exportW++
|
|
|
+ this.multipleSelection = [];
|
|
|
+ this.multipleSelection.push(val);
|
|
|
+ this.digNum = 0;
|
|
|
+ this.exportW++;
|
|
|
})
|
|
|
- .catch((err) => {
|
|
|
- console.log(err);
|
|
|
+ .catch(err => {
|
|
|
+ console.log(err);
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
// 关闭弹框返回查看课程
|
|
|
pageBack() {
|
|
@@ -358,8 +383,7 @@ export default {
|
|
|
},
|
|
|
handleClose(done) {
|
|
|
done();
|
|
|
- },
|
|
|
-
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -369,9 +393,9 @@ export default {
|
|
|
width: 94%;
|
|
|
margin: auto;
|
|
|
}
|
|
|
-.TableCss >>> .el-table__header-wrapper .el-table__header .el-checkbox {
|
|
|
+/* .TableCss >>> .el-table__header-wrapper .el-table__header .el-checkbox {
|
|
|
display: none;
|
|
|
-}
|
|
|
+} */
|
|
|
.JsonTit {
|
|
|
width: 100%;
|
|
|
padding: 20px 0;
|
|
@@ -394,14 +418,12 @@ export default {
|
|
|
margin-left: 10px;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-.worksDialogCSSExp>>> .el-dialog__header {
|
|
|
+.worksDialogCSSExp >>> .el-dialog__header {
|
|
|
/* padding: 9px 20px 10px; */
|
|
|
background: #32455b !important;
|
|
|
}
|
|
|
|
|
|
-.worksDialogCSSExp >>> .el-dialog__wrapper{
|
|
|
+.worksDialogCSSExp >>> .el-dialog__wrapper {
|
|
|
overflow: hidden !important;
|
|
|
}
|
|
|
.worksDialogCSSExp >>> .el-dialog__body {
|