Bläddra i källkod

提交题库代码

weiwenhai 6 år sedan
förälder
incheckning
fe52e2303b

+ 1 - 1
src/modules/questions/component/ckeditor.vue

@@ -80,7 +80,7 @@ export default {
         { name: "about", groups: ["about"] }
         { name: "about", groups: ["about"] }
       ],
       ],
       removeButtons:
       removeButtons:
-        "Underline,Subscript,Superscript,Image,HorizontalRule,Unlink,Link,Scayt,Cut,Copy,Paste,PasteText,PasteFromWord,Maximize,Italic,Bold,NumberedList,BulletedList,Indent,Outdent,Blockquote,Styles,Format,About,RemoveFormat,Strike"
+        "Subscript,Superscript,Image,HorizontalRule,Unlink,Link,Scayt,Cut,Copy,Paste,PasteText,PasteFromWord,Maximize,NumberedList,BulletedList,Indent,Outdent,Blockquote,Styles,Format,About,RemoveFormat,Strike"
     };
     };
     if (this.display !== "inline") {
     if (this.display !== "inline") {
       window.CKEDITOR.replace(this.id, config);
       window.CKEDITOR.replace(this.id, config);

+ 9 - 3
src/modules/questions/views/EditPaper.vue

@@ -1512,9 +1512,15 @@ export default {
     },
     },
     //返回
     //返回
     back() {
     back() {
-      this.$router.push({
-        path: "/questions/" + this.parentView + "/1"
-      });
+      if (sessionStorage.getItem("question_back") == "true") {
+        this.$router.push({
+          path: "/questions/" + this.parentView + "/0"
+        });
+      } else {
+        this.$router.push({
+          path: "/questions/" + this.parentView + "/1"
+        });
+      }
     },
     },
     paperDetailShow(paperDetail) {
     paperDetailShow(paperDetail) {
       if (this.reduplicateGroup.length == 0) {
       if (this.reduplicateGroup.length == 0) {

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

@@ -475,6 +475,7 @@ export default {
       }
       }
       sessionStorage.setItem("gen_paper", JSON.stringify(this.formSearch));
       sessionStorage.setItem("gen_paper", JSON.stringify(this.formSearch));
       sessionStorage.setItem("gen_paper_currentPage", this.currentPage);
       sessionStorage.setItem("gen_paper_currentPage", this.currentPage);
+      sessionStorage.setItem("question_back", "false");
       this.$router.push({
       this.$router.push({
         path: "/edit_paper/" + row.id + "/gen_paper"
         path: "/edit_paper/" + row.id + "/gen_paper"
       });
       });

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

@@ -453,6 +453,7 @@ export default {
       this.getCourseName(this.formSearch.courseNo);
       this.getCourseName(this.formSearch.courseNo);
       sessionStorage.setItem("import_paper", JSON.stringify(this.formSearch));
       sessionStorage.setItem("import_paper", JSON.stringify(this.formSearch));
       sessionStorage.setItem("import_paper_currentPage", this.currentPage);
       sessionStorage.setItem("import_paper_currentPage", this.currentPage);
+      sessionStorage.setItem("question_back", "false");
       this.$router.push({
       this.$router.push({
         path: "/edit_paper/" + row.id + "/import_paper"
         path: "/edit_paper/" + row.id + "/import_paper"
       });
       });

+ 1 - 0
src/modules/questions/views/ImportPaperInfo.vue

@@ -169,6 +169,7 @@ export default {
         type: "success"
         type: "success"
       });
       });
       this.fileLoading = false;
       this.fileLoading = false;
+      sessionStorage.setItem("question_back", "true");
       this.$router.push({
       this.$router.push({
         path: "/edit_paper/" + response.id + "/import_paper"
         path: "/edit_paper/" + response.id + "/import_paper"
       });
       });