@@ -184,7 +184,6 @@ export default {
},
created() {
this.getMarkWorks();
- this.doSearch(1);
methods: {
getMarkWorks() {
@@ -198,6 +197,14 @@ export default {
});
doSearch(pageNo) {
+ if (!this.formSearch.workId) {
+ this.$notify({
+ title: "警告",
+ message: "请选择评卷名称",
+ type: "warning",
+ });
+ return false;
+ }
this.formSearch.pageNo = pageNo;
this.loading = true;
@@ -177,7 +177,6 @@ export default {
this.getExams();
getExams(examName) {
@@ -197,6 +196,15 @@ export default {
+ if (!this.formSearch.examId) {
+ message: "请选择考试",
+ duration: 2000,