Explorar o código

提交前端页面

weiwenhai %!s(int64=6) %!d(string=hai) anos
pai
achega
d1cfbe317c

+ 5 - 1
src/modules/questions/views/BluePaperStructure.vue

@@ -45,7 +45,7 @@
           </el-col>
           <el-col :span="6">
             <div class="search_down">
-              <el-button size="small" type="primary" @click="searchAll"
+              <el-button size="small" type="primary" @click="searchFrom"
                 ><i class="el-icon-search"></i> 查询</el-button
               >
               <el-button size="small" type="primary" @click="insertStruct"
@@ -191,6 +191,10 @@ export default {
       this.currentPage = val;
       this.searchAll();
     },
+    searchFrom() {
+      this.currentPage = 1;
+      this.searchAll();
+    },
     //查询所有
     searchAll() {
       this.loading = true;

+ 9 - 5
src/modules/questions/views/CourseProperty.vue

@@ -46,7 +46,7 @@
           </el-col>
           <el-col :span="6">
             <div class="search_down">
-              <el-button size="small" type="primary" @click="searchCourProperty"
+              <el-button size="small" type="primary" @click="searchFrom"
                 ><i class="el-icon-search"></i> 查询</el-button
               >
               <el-button size="small" type="primary" @click="addCourseProperty"
@@ -63,7 +63,7 @@
             <span>批量操作:</span>
             <el-button
               size="small"
-              type="primary"
+              type="success"
               @click="openCoursePropertys"
               :disabled="noBatchSelected"
               ><i class="el-icon-check"></i> 启用</el-button
@@ -136,11 +136,11 @@
               <el-button
                 v-if="!scope.row.enable"
                 size="mini"
-                type="primary"
+                type="success"
                 plain
                 @click="openCourseProperty(scope.row)"
               >
-                <i class="fa fa-check" aria-hidden="true"></i>启用
+                <i class="el-icon-check" aria-hidden="true"></i>启用
               </el-button>
               <el-button
                 v-if="scope.row.enable"
@@ -148,7 +148,7 @@
                 type="danger"
                 @click="closeCourseProperty(scope.row)"
               >
-                <i class="fa fa-close" aria-hidden="true"></i>禁用
+                <i class="el-icon-close" aria-hidden="true"></i>禁用
               </el-button>
             </div>
           </template>
@@ -258,6 +258,10 @@ export default {
 
   methods: {
     //查询所有课程属性
+    searchFrom() {
+      this.currentPage = 1;
+      this.searchCourProperty();
+    },
     searchCourProperty() {
       this.loading = true;
       var url =

+ 5 - 1
src/modules/questions/views/ExportStructure.vue

@@ -73,7 +73,7 @@
           </el-col>
           <el-col :span="6">
             <div class="search_down">
-              <el-button size="small" type="primary" @click="search"
+              <el-button size="small" type="primary" @click="searchFrom"
                 ><i class="el-icon-search"></i> 查询</el-button
               >
               <el-button size="small" @click="resetForm"
@@ -433,6 +433,10 @@ export default {
         exportType: null
       };
     },
+    searchFrom() {
+      this.currentPage = 1;
+      this.search();
+    },
     search() {
       this.tableData = [];
       this.loading = true;

+ 5 - 2
src/modules/questions/views/ExtractPaperInfo.vue

@@ -544,9 +544,12 @@ export default {
                   "/questions/extract_paper_rule/" + this.extractConfig.examId
               });
             },
-            response => {
+            error => {
               this.loading = false;
-              this.$notify({ type: "error", message: response.data.desc });
+              this.$notify({
+                type: "error",
+                message: error.response.data.desc
+              });
             }
           );
       } else {

+ 5 - 1
src/modules/questions/views/ExtractPaperRule.vue

@@ -59,7 +59,7 @@
           </el-col>
           <el-col :span="6">
             <div class="search_down">
-              <el-button size="small" type="primary" @click="searchRulePaper"
+              <el-button size="small" type="primary" @click="searchFrom"
                 ><i class="el-icon-search"></i> 查询</el-button
               >
               <el-button size="small" type="primary" @click="markRules"
@@ -321,6 +321,10 @@ export default {
       });
     },
     //查询列表
+    searchFrom() {
+      this.currentPage = 1;
+      this.searchRulePaper();
+    },
     searchRulePaper() {
       if (!this.formSearch.examId) {
         this.$notify({

+ 6 - 1
src/modules/questions/views/GenPaper.vue

@@ -64,7 +64,7 @@
           </el-col>
           <el-col :span="6">
             <div class="search_down">
-              <el-button size="small" type="primary" @click="searchGenPaper"
+              <el-button size="small" type="primary" @click="searchFrom"
                 ><i class="el-icon-search"></i> 查询</el-button
               >
               <el-button size="small" @click="resetForm"
@@ -391,6 +391,11 @@ export default {
         name: ""
       };
     },
+    //查询
+    searchFrom() {
+      this.currentPage = 1;
+      this.searchGenPaper();
+    },
     searchGenPaper() {
       this.loading = true;
       var url =

+ 5 - 1
src/modules/questions/views/ImportPaper.vue

@@ -65,7 +65,7 @@
           </el-col>
           <el-col :span="6">
             <div class="search_down">
-              <el-button size="small" type="primary" @click="searchImportPaper"
+              <el-button size="small" type="primary" @click="searchFrom"
                 ><i class="el-icon-search"></i> 查询</el-button
               >
               <el-button size="small" type="primary" @click="impPaper"
@@ -403,6 +403,10 @@ export default {
     };
   },
   methods: {
+    searchFrom() {
+      this.currentPage = 1;
+      this.searchImportPaper();
+    },
     searchImportPaper() {
       this.loading = true;
       var url =

+ 5 - 1
src/modules/questions/views/PaperStructure.vue

@@ -56,7 +56,7 @@
           </el-col>
           <el-col :span="6">
             <div class="search_down">
-              <el-button size="small" type="primary" @click="searchPaperStructs"
+              <el-button size="small" type="primary" @click="searchFrom"
                 ><i class="el-icon-search"></i> 查询</el-button
               >
               <el-button size="small" @click="resetForm">
@@ -205,6 +205,10 @@ export default {
       };
     },
     //查询
+    searchFrom() {
+      this.currentPage = 1;
+      this.searchPaperStructs();
+    },
     searchPaperStructs() {
       this.loading = true;
       var url =

+ 5 - 1
src/modules/questions/views/Question.vue

@@ -159,7 +159,7 @@
           </el-col>
           <el-col :span="6">
             <div class="search_down">
-              <el-button size="small" type="primary" @click="searchQues"
+              <el-button size="small" type="primary" @click="searchFrom"
                 ><i class="el-icon-search"></i> 查询</el-button
               >
               <el-button size="small" @click="resetForm"
@@ -398,6 +398,10 @@ export default {
       }
     },
     //查询列表
+    searchFrom() {
+      this.currentPage = 1;
+      this.searchQues();
+    },
     searchQues() {
       this.tableData = [];
       var url =