|
@@ -17,9 +17,9 @@
|
|
label-width="90px"
|
|
label-width="90px"
|
|
inline
|
|
inline
|
|
>
|
|
>
|
|
- <el-form-item prop="collegeId" label="学院:">
|
|
|
|
|
|
+ <el-form-item prop="collegeName" label="学院:">
|
|
<college-select
|
|
<college-select
|
|
- v-model="filter.collegeId"
|
|
|
|
|
|
+ v-model="filter.collegeName"
|
|
placeholder="学院"
|
|
placeholder="学院"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
></college-select>
|
|
></college-select>
|
|
@@ -27,7 +27,7 @@
|
|
<el-form-item prop="majorName" label="专业:">
|
|
<el-form-item prop="majorName" label="专业:">
|
|
<major-select
|
|
<major-select
|
|
v-model="filter.majorName"
|
|
v-model="filter.majorName"
|
|
- :college-id="filter.collegeId"
|
|
|
|
|
|
+ :college-name="filter.collegeName"
|
|
cascader
|
|
cascader
|
|
placeholder="请选择专业"
|
|
placeholder="请选择专业"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
@@ -54,14 +54,14 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="任课老师:">
|
|
<el-form-item label="任课老师:">
|
|
<el-input
|
|
<el-input
|
|
- v-model.trim="filter.teacherName"
|
|
|
|
|
|
+ v-model.trim="filter.teacher"
|
|
placeholder="任课老师"
|
|
placeholder="任课老师"
|
|
clearable
|
|
clearable
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="教学班:">
|
|
<el-form-item label="教学班:">
|
|
<teach-clazz-select
|
|
<teach-clazz-select
|
|
- v-model="filter.teachClazzName"
|
|
|
|
|
|
+ v-model="filter.teachClass"
|
|
placeholder="教学班"
|
|
placeholder="教学班"
|
|
>
|
|
>
|
|
</teach-clazz-select>
|
|
</teach-clazz-select>
|
|
@@ -77,7 +77,7 @@
|
|
<el-form-item label="起止成绩:">
|
|
<el-form-item label="起止成绩:">
|
|
<el-input-number
|
|
<el-input-number
|
|
style="width: 40px"
|
|
style="width: 40px"
|
|
- v-model="modalForm.startScore"
|
|
|
|
|
|
+ v-model="modalForm.minScore"
|
|
:min="0"
|
|
:min="0"
|
|
:max="999"
|
|
:max="999"
|
|
:step="1"
|
|
:step="1"
|
|
@@ -87,7 +87,7 @@
|
|
<span class="el-input-split"></span>
|
|
<span class="el-input-split"></span>
|
|
<el-input-number
|
|
<el-input-number
|
|
style="width: 40px"
|
|
style="width: 40px"
|
|
- v-model="modalForm.endScore"
|
|
|
|
|
|
+ v-model="modalForm.maxScore"
|
|
:min="0"
|
|
:min="0"
|
|
:max="999"
|
|
:max="999"
|
|
:step="1"
|
|
:step="1"
|
|
@@ -98,7 +98,7 @@
|
|
<el-form-item label="起止图片张数:">
|
|
<el-form-item label="起止图片张数:">
|
|
<el-input-number
|
|
<el-input-number
|
|
style="width: 40px"
|
|
style="width: 40px"
|
|
- v-model="modalForm.startNumber"
|
|
|
|
|
|
+ v-model="modalForm.minBindCount"
|
|
:min="0"
|
|
:min="0"
|
|
:max="999"
|
|
:max="999"
|
|
:step="1"
|
|
:step="1"
|
|
@@ -108,7 +108,7 @@
|
|
<span class="el-input-split"></span>
|
|
<span class="el-input-split"></span>
|
|
<el-input-number
|
|
<el-input-number
|
|
style="width: 40px"
|
|
style="width: 40px"
|
|
- v-model="modalForm.endNumber"
|
|
|
|
|
|
+ v-model="modalForm.maxBindCount"
|
|
:min="0"
|
|
:min="0"
|
|
:max="999"
|
|
:max="999"
|
|
:step="1"
|
|
:step="1"
|
|
@@ -129,7 +129,6 @@
|
|
@click="toDownload"
|
|
@click="toDownload"
|
|
>批量下载</el-button
|
|
>批量下载</el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="viewResult">下载结果</el-button>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -144,28 +143,29 @@
|
|
width="55"
|
|
width="55"
|
|
align="center"
|
|
align="center"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column prop="bindUserName" label="姓名"></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="studentName" label="姓名"></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="bindUserName"
|
|
|
|
|
|
+ prop="studentCode"
|
|
label="学号"
|
|
label="学号"
|
|
width="120"
|
|
width="120"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
|
+ <el-table-column prop="courseCodeName" label="课程名称(代码)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.courseName }}({{ scope.row.courseCode }})
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="teacher" label="任课老师"></el-table-column>
|
|
|
|
+ <el-table-column prop="teachClass" label="教学班"></el-table-column>
|
|
|
|
+ <el-table-column prop="collegeName" label="学院"></el-table-column>
|
|
|
|
+ <el-table-column prop="majorName" label="专业"></el-table-column>
|
|
|
|
+ <el-table-column prop="className" label="班级"></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="courseNameCode"
|
|
|
|
- label="课程名称(代码)"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column prop="boundCount" label="任课老师"></el-table-column>
|
|
|
|
- <el-table-column prop="bindingCount" label="教学班"></el-table-column>
|
|
|
|
- <el-table-column prop="bindingCount" label="学院"></el-table-column>
|
|
|
|
- <el-table-column prop="bindingCount" label="专业"></el-table-column>
|
|
|
|
- <el-table-column prop="bindingCount" label="班级"></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- prop="bindingCount"
|
|
|
|
|
|
+ prop="score"
|
|
label="成绩"
|
|
label="成绩"
|
|
width="80"
|
|
width="80"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- prop="bindingCount"
|
|
|
|
|
|
+ prop="remark"
|
|
label="备注"
|
|
label="备注"
|
|
width="120"
|
|
width="120"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
@@ -176,7 +176,7 @@
|
|
type="text"
|
|
type="text"
|
|
@click="toDetail(scope.row)"
|
|
@click="toDetail(scope.row)"
|
|
>
|
|
>
|
|
- <span class="cont-link">{{ scope.row.pictureCount }}</span>
|
|
|
|
|
|
+ <span class="cont-link">{{ scope.row.bindCount }}</span>
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -202,6 +202,7 @@ import { documentDetialListPage, documentDetialDownload } from "../api";
|
|
import { BOUND_TYPE } from "@/constants/enumerate";
|
|
import { BOUND_TYPE } from "@/constants/enumerate";
|
|
import ArchivesDetailStudentDialog from "./ArchivesDetailStudentDialog.vue";
|
|
import ArchivesDetailStudentDialog from "./ArchivesDetailStudentDialog.vue";
|
|
import DataTaskDialog from "../../base/components/DataTaskDialog.vue";
|
|
import DataTaskDialog from "../../base/components/DataTaskDialog.vue";
|
|
|
|
+import { downloadByApi } from "@/plugins/download";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "document-detail-dialog",
|
|
name: "document-detail-dialog",
|
|
@@ -218,17 +219,18 @@ export default {
|
|
return {
|
|
return {
|
|
modalIsShow: false,
|
|
modalIsShow: false,
|
|
filter: {
|
|
filter: {
|
|
- collegeId: "",
|
|
|
|
|
|
+ paperScanTaskId: "",
|
|
|
|
+ collegeName: "",
|
|
majorName: "",
|
|
majorName: "",
|
|
clazzName: "",
|
|
clazzName: "",
|
|
isBind: "",
|
|
isBind: "",
|
|
- teacherName: "",
|
|
|
|
- teachClazzName: "",
|
|
|
|
|
|
+ teacher: "",
|
|
|
|
+ teachClass: "",
|
|
param: "",
|
|
param: "",
|
|
- startScore: null,
|
|
|
|
- endScore: null,
|
|
|
|
- startNumber: null,
|
|
|
|
- endNumber: null,
|
|
|
|
|
|
+ minScore: null,
|
|
|
|
+ maxScore: null,
|
|
|
|
+ minBindCount: null,
|
|
|
|
+ maxBindCount: null,
|
|
},
|
|
},
|
|
current: 1,
|
|
current: 1,
|
|
size: this.GLOBAL.pageSize,
|
|
size: this.GLOBAL.pageSize,
|
|
@@ -242,6 +244,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
visibleChange() {
|
|
visibleChange() {
|
|
|
|
+ this.filter.paperScanTaskId = this.task.paperScanTaskId;
|
|
this.dataList = [];
|
|
this.dataList = [];
|
|
this.toPage(1);
|
|
this.toPage(1);
|
|
},
|
|
},
|
|
@@ -266,31 +269,29 @@ export default {
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
- this.multipleSelection = val.map((item) => item.paperScanTaskDetailId);
|
|
|
|
|
|
+ this.multipleSelection = val.map((item) => item.studentId);
|
|
},
|
|
},
|
|
async toDownload() {
|
|
async toDownload() {
|
|
- if (!this.multipleSelection.length) {
|
|
|
|
- this.$message.error("请选择要下载的数据!");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (this.loading) return;
|
|
if (this.loading) return;
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- const res = await documentDetialDownload(this.multipleSelection).catch(
|
|
|
|
- () => {}
|
|
|
|
- );
|
|
|
|
|
|
+
|
|
|
|
+ const res = await downloadByApi(() => {
|
|
|
|
+ return documentDetialDownload(this.filter);
|
|
|
|
+ }).catch((e) => {
|
|
|
|
+ this.$message.error(e || "下载失败,请重新尝试!");
|
|
|
|
+ });
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
|
+
|
|
if (!res) return;
|
|
if (!res) return;
|
|
- this.$message.error("下载任务已经提交");
|
|
|
|
- },
|
|
|
|
- viewResult() {
|
|
|
|
- this.$refs.DataTaskDialog.open();
|
|
|
|
|
|
+ this.$message.success("下载成功!");
|
|
},
|
|
},
|
|
toDetail(row) {
|
|
toDetail(row) {
|
|
- if (!row.bindCount) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- this.curRow = row;
|
|
|
|
|
|
+ if (!row.bindCount) return;
|
|
|
|
+
|
|
|
|
+ this.curRow = {
|
|
|
|
+ ...row,
|
|
|
|
+ paperScanTaskId: this.task.paperScanTaskId,
|
|
|
|
+ };
|
|
this.$refs.ArchivesDetailStudentDialog.open();
|
|
this.$refs.ArchivesDetailStudentDialog.open();
|
|
},
|
|
},
|
|
},
|
|
},
|