zhangjie 2 years ago
parent
commit
09ded7f89b

+ 13 - 3
src/components/vEditor/components/VMenu.vue

@@ -142,15 +142,25 @@ export default {
      * @param {Event} event
      */
     async addImage(event) {
-      // console.log(event, event.target.files[0]);
-      imageHandle.bind(this.$parent)(event);
+      if (!this.checkEditorFocus()) {
+        window.getSelection().removeAllRanges();
+        this.$el.nextSibling.focus();
+      } else {
+        // console.log(event, event.target.files[0]);
+        imageHandle.bind(this.$parent)(event);
+      }
     },
     /**
      * @param {Event} event
      */
     async addAnswerPoint(event) {
       event.preventDefault();
-      answerPointHandle.bind(this.$parent)(event);
+      if (!this.checkEditorFocus()) {
+        window.getSelection().removeAllRanges();
+        this.$el.nextSibling.focus();
+      } else {
+        answerPointHandle.bind(this.$parent)(event);
+      }
     },
     checkEditorFocus() {
       const selection = window.getSelection();

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

@@ -181,7 +181,7 @@
           prop="updateTime"
         >
         </el-table-column>
-        <el-table-column label="操作" width="270" fixed="right">
+        <el-table-column label="操作" min-width="170" fixed="right">
           <template slot-scope="scope">
             <div class="operate_left">
               <el-button

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

@@ -181,7 +181,7 @@
           prop="updateTime"
         >
         </el-table-column>
-        <el-table-column label="操作" width="255" fixed="right">
+        <el-table-column label="操作" min-width="170" fixed="right">
           <template slot-scope="scope">
             <div class="operate_left">
               <el-button

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

@@ -246,7 +246,7 @@ export default {
         // console.log(promiseAll);
         this.form.defaultStatusCourse = promiseAll[0].data;
         this.tableDataCourse = promiseAll[1].data.content;
-        this.currentPageCourse = promiseAll[1].data.number + 1;
+        this.currentPageCourse = promiseAll[1].data.number;
         this.totalCourse = promiseAll[1].data.totalElements;
       } finally {
         this.loading = false;