|
@@ -28,6 +28,19 @@
|
|
|
<el-button type="primary" @click="handleCurrentChange(0)"
|
|
|
>查询</el-button
|
|
|
>
|
|
|
+
|
|
|
+ <el-dropdown
|
|
|
+ class="mx-2"
|
|
|
+ split-button
|
|
|
+ type="primary"
|
|
|
+ @command="exportMarkResult"
|
|
|
+ >
|
|
|
+ 导出
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item command="simple">简化版</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="standard">标准版</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -97,7 +110,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { searchMarkResult } from "@/api/examwork-markresult";
|
|
|
+import { searchMarkResult, exportMarkResult } from "@/api/examwork-markresult";
|
|
|
export default {
|
|
|
name: "MarkResultManagement",
|
|
|
data() {
|
|
@@ -116,9 +129,6 @@ export default {
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
total: 10,
|
|
|
- basePhotoDialogVisible: false,
|
|
|
- selectedBasePhoto: null,
|
|
|
- selectedStudent: {},
|
|
|
};
|
|
|
},
|
|
|
async created() {},
|
|
@@ -152,13 +162,23 @@ export default {
|
|
|
this.currentPage = 1;
|
|
|
this.searchForm();
|
|
|
},
|
|
|
- openBasePhotoDialog(url) {
|
|
|
- this.selectedBasePhoto = url;
|
|
|
- this.basePhotoDialogVisible = true;
|
|
|
- },
|
|
|
- openExamRecord(user) {
|
|
|
- this.selectedStudent = user;
|
|
|
- this.$refs.theDialog.openDialog();
|
|
|
+ async exportMarkResult(type) {
|
|
|
+ try {
|
|
|
+ const valid = await this.$refs.form.validate();
|
|
|
+ if (!valid) return;
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ await exportMarkResult({
|
|
|
+ examId: this.form.examId,
|
|
|
+ examActivityId: this.form.examActivityId,
|
|
|
+ identity: this.form.identity,
|
|
|
+ courseCode: this.form.courseCode,
|
|
|
+ name: this.form.name,
|
|
|
+ type,
|
|
|
+ });
|
|
|
+ this.$notify({ title: "导入任务已成功启动", type: "success" });
|
|
|
},
|
|
|
},
|
|
|
};
|