lsc 4 tygodni temu
rodzic
commit
4928ad23ea

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.36770401e336ff0b4e73a1d43851b9d7.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.d93528d5cf9e226d3cf7.js></script><script type=text/javascript src=./static/js/vendor.c5432c45b8b3a14b5737.js></script><script type=text/javascript src=./static/js/app.6566a6f45b7af4f427d4.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.36f039d94880c59312a438083671e7bd.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.d93528d5cf9e226d3cf7.js></script><script type=text/javascript src=./static/js/vendor.c5432c45b8b3a14b5737.js></script><script type=text/javascript src=./static/js/app.3c38f7f3933e45829405.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Plik diff jest za duży
+ 0 - 0
dist/static/css/app.36f039d94880c59312a438083671e7bd.css


Plik diff jest za duży
+ 0 - 0
dist/static/css/app.36f039d94880c59312a438083671e7bd.css.map


Plik diff jest za duży
+ 0 - 0
dist/static/js/app.3c38f7f3933e45829405.js


Plik diff jest za duży
+ 0 - 0
dist/static/js/app.3c38f7f3933e45829405.js.map


Plik diff jest za duży
+ 0 - 0
dist/static/js/manifest.d93528d5cf9e226d3cf7.js.map


Plik diff jest za duży
+ 0 - 0
dist/static/js/workPage-manifest.2ece51fa34be51c8610a.js.map


+ 49 - 32
src/components/pages/easy/addCourse.vue

@@ -10596,7 +10596,7 @@ export default {
         this.$forceUpdate();
       }
     },
-    addWork() {
+    addWork(gotype) {
       let cPan = 1;
       for (var i = 0; i < this.unitJson.length; i++) {
         for (
@@ -10677,21 +10677,27 @@ export default {
         .then(res => {
           console.log(this.steps);
           // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
-          this.$message({
-            message: "新增成功",
-            type: "success"
-          });
+          if(gotype !== 2){
+            this.$message({
+              message: "新增成功",
+              type: "success"
+            });
+          }
           // }
           this.number = res.data.ordernumber;
           this.courseId = res.data.courseId;
           this.cid = res.data.courseId;
           this.courseUserid = this.userid;
           this.islogin = true;
-          this.steps = 4;
-          this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, "success")
+          if(gotype !== 2){
+            this.steps = 4;
+            this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, "success")
+          }
         })
         .catch(err => {
-          this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, err)
+          if(gotype !== 2){
+            this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, err)
+          }
           this.$message.error("网络不佳");
           console.error(err);
         });
@@ -10699,7 +10705,7 @@ export default {
     goCourse() {
       window.topU.postMessage({ cid: this.courseId, type: "1" }, "*");
     },
-    updateWork2() {
+    updateWork2(gotype) {
       let _unitIndex = this.unitIndex;
       let cPan = 1;
       for (
@@ -10736,20 +10742,24 @@ export default {
       this.ajax
         .post(this.$store.state.api + "updateWorkNew4", params)
         .then(res => {
-          this.$message({
-            message: "修改成功",
-            type: "success"
-          });
-          this.courseId = this.cid;
-          this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, "success")
+          if(gotype !== 2){
+            this.$message({
+              message: "修改成功",
+              type: "success"
+            });
+            this.courseId = this.cid;
+            this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, "success")
+          }
         })
         .catch(err => {
-          this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, err)
+          if(gotype !== 2){
+            this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, err)
+          }
           this.$message.error("网络不佳");
           console.error(err);
         });
     },
-    updateWork() {
+    updateWork(gotype) {
       let cPan = 1;
       for (var i = 0; i < this.unitJson.length; i++) {
         for (
@@ -10829,25 +10839,32 @@ export default {
         .post(this.$store.state.api + "updateWorkNew2", params)
         .then(res => {
           // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
-          if (this.cidType == 1) {
-            this.$message({
-              message: "修改成功",
-              type: "success"
-            });
-          } else {
-            this.$message({
-              message: "新增成功",
-              type: "success"
-            });
+          if (gotype !== 2) {
+            if (this.cidType == 1) {
+              this.$message({
+                message: "修改成功",
+                type: "success"
+              });
+            } else {
+              this.$message({
+                message: "新增成功",
+                type: "success"
+              });
+            }
           }
           // }
           this.number = this.nbOrder;
           this.courseId = this.cid;
-          this.steps = 4;
+          if(gotype !== 2){
+            this.steps = 4;
+            this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, "success")
+          }
           this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, "success")
         })
         .catch(err => {
-          this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, err)
+          if(gotype !== 2){
+            this.addOp3('1', "", { courseid: this.courseId ,type: "course_easyMode_clickUpload" }, err)
+          }
           this.$message.error("网络不佳");
           console.error(err);
         });
@@ -13891,12 +13908,12 @@ export default {
     },
     saveCourse(){
       if (this.cid == "" || this.cid == undefined) {
-        this.addWork();
+        this.addWork(2);
       } else {
         if (this.userid != this.courseUserid && this.role != "1") {
-          this.updateWork2();
+          this.updateWork2(2);
         } else {
-          this.updateWork();
+          this.updateWork(2);
         }
       }
     },

+ 2 - 2
src/components/pages/newCourse/addCourse.vue

@@ -10514,10 +10514,10 @@ export default {
           this.cid = res.data.courseId;
           this.courseUserid = this.userid;
           this.islogin = true;
-          this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, "success")
+          // this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, "success")
         })
         .catch((err) => {
-          this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, err)
+          // this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, err)
           this.$message.error("网络不佳");
           console.error(err);
         });

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików