Răsfoiți Sursa

提交题库页面bug

weiwenhai 6 ani în urmă
părinte
comite
c9773e32db

+ 7 - 2
src/modules/questions/views/CourseProperty.vue

@@ -157,7 +157,7 @@
       <div class="page pull-right">
         <el-pagination
           @current-change="handleCurrentChange"
-          :current-page="currentPage"
+          :current-page.sync="currentPage"
           :page-size="pageSize"
           :page-sizes="[10, 20, 50, 100]"
           @size-change="handleSizeChange"
@@ -265,6 +265,8 @@ export default {
       this.searchCourProperty();
     },
     searchCourProperty() {
+      console.log("page:", this.currentPage);
+      var pageNo = Number(this.currentPage);
       this.loading = true;
       var url =
         QUESTION_API +
@@ -275,6 +277,7 @@ export default {
       this.$http.get(url, { params: this.formSearch }).then(response => {
         this.tableData = response.data.content;
         this.total = response.data.totalElements;
+        this.currentPage = pageNo;
         this.loading = false;
       });
     },
@@ -480,6 +483,7 @@ export default {
     },
     //页面回填值
     initValue() {
+      var pageNo = "";
       this.isClear = this.$route.params.isClear;
       if (this.isClear == 0 || !this.isClear) {
         this.removeItem();
@@ -502,7 +506,8 @@ export default {
             : parseInt(sessionStorage.getItem("course_property_currentPage"));
       }
       this.getOneCourse(this.formSearch.courseId);
-      this.searchCourProperty();
+      var pageNo = Number(this.currentPage);
+      this.handleCurrentChange(pageNo);
     },
     //查询单个课程
     getOneCourse(courseId) {

+ 8 - 1
src/modules/questions/views/EditPaper.vue

@@ -622,7 +622,11 @@
             <el-col :xs="10" :sm="10" :md="10" :lg="10">
               <el-form-item label="考试说明">
                 <div style="width:550px;">
-                  <ckeditor v-model="examRemark"></ckeditor>
+                  <ckeditor 
+                  :display="display"
+                  :width="wValue"
+                  :height="hValue"
+                  v-model="examRemark"></ckeditor>
                 </div>
               </el-form-item>
             </el-col>
@@ -690,6 +694,9 @@ export default {
   },
   data() {
     return {
+      hValue: "100px",
+      wValue: "500px",
+      display: "block",
       uploadAction: "",
       fileList: [],
       paperId: "",

+ 3 - 0
src/modules/questions/views/ExportStructure.vue

@@ -87,6 +87,9 @@
           </el-col>
         </el-row>
       </el-form>
+      <div
+        style="width: 100%; border-bottom: 1px solid #ddd; margin: 10px 0;"
+      ></div>
       <!-- 页面列表 -->
       <el-table border :data="tableData">
         <el-table-column label="考试类型">

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

@@ -491,7 +491,7 @@ export default {
           },
           response => {
             this.$notify({
-              message: response.data.msg,
+              message: response.response.data.msg,
               type: "error"
             });
             this.loading = false;

+ 10 - 1
src/modules/questions/views/InsertBluePaperStructure.vue

@@ -107,7 +107,12 @@
           </el-row>
           <el-form-item label="考试说明">
             <div style="width:550px;">
-              <ckeditor v-model="blueStruct.examRemark"></ckeditor>
+              <ckeditor
+                :display="display"
+                :width="wValue"
+                :height="hValue"
+                v-model="blueStruct.examRemark"
+              ></ckeditor>
             </div>
           </el-form-item>
         </el-form>
@@ -174,6 +179,7 @@
         </el-dialog>
 
         <!-- 页面列表 -->
+        <div style="margin-top:10px"></div>
         <el-table :data="paperDetailStructs" border style="width: 100%;">
           <el-table-column label="大题名称">
             <template slot-scope="scope">
@@ -237,6 +243,9 @@ export default {
   },
   data() {
     return {
+      hValue: "100px",
+      wValue: "800px",
+      display: "block",
       blueStruct: {
         name: "",
         totalScore: 0, //结构总分

+ 11 - 1
src/modules/questions/views/InsertPaperStructure.vue

@@ -82,7 +82,12 @@
           <el-row>
             <el-form-item label="考试说明">
               <div style="width:550px;">
-                <ckeditor v-model="paperStruct.examRemark"></ckeditor>
+                <ckeditor
+                  :display="display"
+                  :width="wValue"
+                  :height="hValue"
+                  v-model="paperStruct.examRemark"
+                ></ckeditor>
               </div>
             </el-form-item>
           </el-row>
@@ -154,6 +159,7 @@
         </el-dialog>
 
         <!-- 页面列表 -->
+        <div style="margin-top:10px"></div>
         <el-table :data="paperDetailStructs" border>
           <el-table-column label="大题名称">
             <template slot-scope="scope">
@@ -210,8 +216,12 @@ export default {
     ckeditor,
     LinkTitlesCustom
   },
+
   data() {
     return {
+      hValue: "100px",
+      wValue: "800px",
+      display: "block",
       loading: false,
       courseList: [],
       paperDetailStructForm: {

+ 16 - 2
src/modules/questions/views/Question.vue

@@ -169,7 +169,9 @@
           </el-col>
         </el-row>
       </el-form>
-
+      <div
+        style="width: 100%; border-bottom: 1px solid #ddd; margin: 10px 0;"
+      ></div>
       <!-- 页面列表 -->
       <el-table :data="tableData" border>
         <el-table-column label="课程" width="180">
@@ -701,8 +703,20 @@ export default {
           sessionStorage.getItem("question_currentPage")
         );
       }
-      if (this.formSearch.courseName) {
+      if (this.formSearch && this.formSearch.courseName) {
         this.getCourses(this.formSearch.courseName);
+      } else {
+        this.formSearch = {
+          questionType: "",
+          courseNo: "",
+          courseLevel: "",
+          courseName: "",
+          publicity: "",
+          coursePropertyName: "",
+          firstPropertyId: "",
+          secondPropertyId: ""
+        };
+        this.currentPage = 1;
       }
       this.searchQues();
     }