SanHQin 1 settimana fa
parent
commit
5601507e78

+ 1 - 1
dist/index.html

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

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.ccbe173925baafb8cfdac3cba32b8bec.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.ccbe173925baafb8cfdac3cba32b8bec.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.c6aa8660fd79d377e873.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.c6aa8660fd79d377e873.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.161e82026ac2ae03ab6f.js.map


+ 31 - 15
src/components/pages/test/check/index.vue

@@ -4955,23 +4955,39 @@ ${JSON.stringify(item.array)}
     returnTest(row){
       if(row.type=='1')return this.$message.info("该表单未提交")
       if(row.type=='4')return this.$message.info("该表单已退回")
-      this.$refs.returnTestDialogRef.open(row)
-      // let params = [{
-      //   id:row.id,
-      //   type:"4"
-      // }];
-
-      // this.ajax.post(this.$store.state.api+"update_testCourseWorks_typeById",params).then(res=>{
-      //   if(res.data==1){
-      //     this.getData();
-      //     // this.tableWorksArray = this.tableWorksArray.filter(i=>i.id!==row.id);
-      //     this.$message.success("表单退回成功");
-      //   }
-      // }).catch(e=>{
-      //   console.log(e);
-      // })
+      // this.$refs.returnTestDialogRef.open(row)
+      let params = [{
+        id:row.id,
+        type:"4"
+      }];
 
+      this.ajax.post(this.$store.state.api+"update_testCourseWorks_typeById",params).then(res=>{
+        if(res.data==1){
+          this.reviewChangeFn(row.id)
+          this.getData();
+          // this.tableWorksArray = this.tableWorksArray.filter(i=>i.id!==row.id);
+          this.$message.success("表单退回成功");
+        }
+      }).catch(e=>{
+        console.log(e);
+      })
     },
+    reviewChangeFn(id){
+      let params = [{
+        id:id,
+        isReview:0
+      }]
+
+      this.ajax.post(this.$store.state.api+"update_testCourseWorks_isReviewById",params).then(res=>{
+        console.log(res);
+      }).catch(e=>{
+        console.log(e);
+      })
+      // console.log(row);
+      // this.tableWorksArray.find(i=>i.id===row.id).isReview = "1";
+      // this.$forceUpdate()
+    },
+
   },
 
   beforeDestroy() {

Some files were not shown because too many files changed in this diff