deason 6 tahun lalu
induk
melakukan
3cf212b33f

+ 17 - 15
src/modules/print/view/CourseStatistic.vue

@@ -14,7 +14,7 @@
               v-model="formSearch.orgId"
               placeholder="请选择"
               clearable
-              @change="loadExamList(formSearch.orgId);"
+              @change="loadExamList(formSearch.orgId)"
             >
               <el-option
                 v-for="item in orgList"
@@ -28,7 +28,7 @@
           <el-form-item label="考试">
             <el-select
               v-model="formSearch.examId"
-              @change="searchRecords"
+              @change="searchRecords(1)"
               placeholder="请选择"
             >
               <el-option
@@ -87,7 +87,7 @@
               size="small"
               type="primary"
               icon="el-icon-search"
-              @click="searchRecords"
+              @click="searchRecords(1)"
               >查询
             </el-button>
 
@@ -144,7 +144,7 @@
           <el-table-column width="80" label="试卷状态">
             <template slot-scope="scope">
               <span
-                @click="openAllotDialog(scope.row);"
+                @click="openAllotDialog(scope.row)"
                 style="cursor: pointer"
                 >{{ scope.row.paperStatusName }}</span
               >
@@ -160,7 +160,7 @@
                 size="mini"
                 icon="el-icon-view"
                 v-show="scope.row.paperStatus > 1"
-                @click="preview(scope.row);"
+                @click="preview(scope.row)"
                 >预览
               </el-button>
 
@@ -168,7 +168,7 @@
                 size="mini"
                 icon="el-icon-download"
                 v-show="scope.row.paperStatus > 1"
-                @click="openExportDialog(scope.row);"
+                @click="openExportDialog(scope.row)"
                 >下载
               </el-button>
 
@@ -177,7 +177,7 @@
                 icon="el-icon-menu"
                 :disabled="!hasPermit"
                 v-show="scope.row.paperStatus > 1"
-                @click="openAllotDialog(scope.row);"
+                @click="openAllotDialog(scope.row)"
                 >试卷指定
               </el-button>
             </template>
@@ -267,7 +267,7 @@
           <el-form-item label="学校名称" prop="orgId">
             <el-select
               v-model="allotAllForm.orgId"
-              @change="loadAllotExamList(allotAllForm.orgId);"
+              @change="loadAllotExamList(allotAllForm.orgId)"
               placeholder="请选择"
               class="w220"
             >
@@ -359,7 +359,7 @@
           <el-form-item label="学校名称" prop="orgId">
             <el-select
               v-model="exportAllForm.orgId"
-              @change="loadExportExamList(exportAllForm.orgId);"
+              @change="loadExportExamList(exportAllForm.orgId)"
               placeholder="请选择"
               class="w220"
             >
@@ -509,10 +509,11 @@ export default {
     },
     handlePager(current) {
       /* 处理分页 */
-      this.formSearch.pageNo = current;
-      this.searchRecords();
+      this.searchRecords(current);
     },
-    searchRecords() {
+    searchRecords(pageNo) {
+      this.formSearch.pageNo = pageNo;
+
       /* 查询记录列表 */
       let orgId = this.formSearch.orgId;
       if (checkEmptyNumber(orgId)) {
@@ -580,7 +581,7 @@ export default {
         this.examList = response.data;
         if (this.examList.length > 0) {
           this.formSearch.examId = this.examList[0].examId;
-          this.searchRecords();
+          this.searchRecords(1);
         }
       });
     },
@@ -655,7 +656,7 @@ export default {
                 type: "success",
                 message: "刷新成功!"
               });
-              this.searchRecords();
+              this.searchRecords(this.formSearch.pageNo);
             },
             () => {
               this.$notify({
@@ -733,7 +734,7 @@ export default {
               type: "success"
             });
             this.allotDialog = false;
-            this.searchRecords();
+            this.searchRecords(this.formSearch.pageNo);
           },
           () => {
             this.$notify({
@@ -773,6 +774,7 @@ export default {
               type: "success"
             });
             this.allotAllDialog = false;
+            this.searchRecords(this.formSearch.pageNo);
           },
           () => {
             this.$notify({

+ 14 - 13
src/modules/print/view/ExamStructure.vue

@@ -14,7 +14,7 @@
               v-model="formSearch.orgId"
               placeholder="请选择"
               clearable
-              @change="loadExamList(formSearch.orgId);"
+              @change="loadExamList(formSearch.orgId)"
             >
               <el-option
                 v-for="item in orgList"
@@ -29,7 +29,7 @@
             <el-select
               v-model="formSearch.examId"
               placeholder="请选择"
-              @change="searchRecords"
+              @change="searchRecords(1)"
               clearable
             >
               <el-option
@@ -46,7 +46,7 @@
               size="small"
               type="primary"
               icon="el-icon-search"
-              @click="searchRecords"
+              @click="searchRecords(1)"
               >查询
             </el-button>
 
@@ -85,7 +85,7 @@
               <el-button
                 size="mini"
                 icon="el-icon-menu"
-                @click="openCloneStructureDialog(scope.row);"
+                @click="openCloneStructureDialog(scope.row)"
                 :disabled="!hasPermit"
                 >复用
               </el-button>
@@ -94,7 +94,7 @@
                 size="mini"
                 type="danger"
                 icon="el-icon-delete"
-                @click="removeStructure(scope.row);"
+                @click="removeStructure(scope.row)"
                 :disabled="!hasPermit"
                 >删除
               </el-button>
@@ -242,7 +242,7 @@
               <el-form-item label="学校名称" prop="newOrgId">
                 <el-select
                   v-model="cloneStructureForm.newOrgId"
-                  @change="loadCloneExamList(cloneStructureForm.newOrgId);"
+                  @change="loadCloneExamList(cloneStructureForm.newOrgId)"
                   placeholder="请选择"
                   class="w220"
                 >
@@ -416,10 +416,11 @@ export default {
   methods: {
     handlePager(current) {
       /* 处理分页 */
-      this.formSearch.pageNo = current;
-      this.searchRecords();
+      this.searchRecords(current);
     },
-    searchRecords() {
+    searchRecords(pageNo) {
+      this.formSearch.pageNo = pageNo;
+
       /* 查询记录列表 */
       let orgId = this.formSearch.orgId;
       if (checkEmptyNumber(orgId)) {
@@ -476,7 +477,7 @@ export default {
           this.examList = response.data;
           if (this.examList.length > 0) {
             this.formSearch.examId = this.examList[0].examId;
-            this.searchRecords();
+            this.searchRecords(1);
           }
         });
       }
@@ -546,7 +547,7 @@ export default {
               type: "success"
             });
             this.addStructureDialog = false;
-            this.searchRecords();
+            this.searchRecords(1);
           },
           () => {
             this.$notify({
@@ -592,7 +593,7 @@ export default {
               type: "success"
             });
             this.cloneStructureDialog = false;
-            this.searchRecords();
+            this.searchRecords(1);
           },
           () => {
             this.$notify({
@@ -618,7 +619,7 @@ export default {
                 type: "success",
                 message: "删除当前结构成功!"
               });
-              this.searchRecords();
+              this.searchRecords(1);
             },
             () => {
               this.$notify({

+ 11 - 10
src/modules/print/view/Project.vue

@@ -14,7 +14,7 @@
               v-model="formSearch.orgId"
               placeholder="请选择"
               clearable
-              @change="loadExamList(formSearch.orgId);"
+              @change="loadExamList(formSearch.orgId)"
             >
               <el-option
                 v-for="item in orgList"
@@ -28,7 +28,7 @@
           <el-form-item label="考试">
             <el-select
               v-model="formSearch.examId"
-              @change="searchRecords"
+              @change="searchRecords(1)"
               placeholder="请选择"
             >
               <el-option
@@ -85,7 +85,7 @@
               size="small"
               type="primary"
               icon="el-icon-search"
-              @click="searchRecords"
+              @click="searchRecords(1)"
               >查询
             </el-button>
           </el-form-item>
@@ -109,7 +109,7 @@
               <el-button
                 size="mini"
                 icon="el-icon-view"
-                @click="gotoProjectStatistic(scope.row);"
+                @click="gotoProjectStatistic(scope.row)"
                 >查看
               </el-button>
             </template>
@@ -120,7 +120,7 @@
               <el-button
                 size="mini"
                 icon="el-icon-menu"
-                @click="openProjectSettingDialog(scope.row);"
+                @click="openProjectSettingDialog(scope.row)"
                 :disabled="!hasPermit"
                 >项目设置
               </el-button>
@@ -562,10 +562,11 @@ export default {
     },
     handlePager(current) {
       /* 处理分页 */
-      this.formSearch.pageNo = current;
-      this.searchRecords();
+      this.searchRecords(current);
     },
-    searchRecords() {
+    searchRecords(pageNo) {
+      this.formSearch.pageNo = pageNo;
+
       /* 查询记录列表 */
       let orgId = this.formSearch.orgId;
       if (checkEmptyNumber(orgId)) {
@@ -633,7 +634,7 @@ export default {
         this.examList = response.data;
         if (this.examList.length > 0) {
           this.formSearch.examId = this.examList[0].examId;
-          this.searchRecords();
+          this.searchRecords(1);
         }
       });
     },
@@ -740,7 +741,7 @@ export default {
               message: "项目设置成功!"
             });
             this.projectSettingDialog = false;
-            this.searchRecords();
+            this.searchRecords(1);
           },
           error => {
             console.log(error);

+ 3 - 3
src/modules/print/view/ProjectStatistic.vue

@@ -15,7 +15,7 @@
               v-model="formSearch.orgId"
               placeholder="请选择"
               clearable
-              @change="loadExamList(formSearch.orgId);"
+              @change="loadExamList(formSearch.orgId)"
             >
               <el-option
                 v-for="item in orgList"
@@ -116,7 +116,7 @@
                 size="mini"
                 icon="el-icon-edit"
                 v-if="scope.row.btnType == 'OTHER'"
-                @click="openOtherSettingDialog(scope.row);"
+                @click="openOtherSettingDialog(scope.row)"
                 :disabled="!hasPermit"
                 >修改
               </el-button>
@@ -126,7 +126,7 @@
                 type="danger"
                 icon="el-icon-delete"
                 v-if="scope.row.btnType == 'OTHER'"
-                @click="removeOtherSetting(scope.row);"
+                @click="removeOtherSetting(scope.row)"
                 :disabled="!hasPermit"
                 >删除
               </el-button>