|
@@ -4955,23 +4955,39 @@ ${JSON.stringify(item.array)}
|
|
returnTest(row){
|
|
returnTest(row){
|
|
if(row.type=='1')return this.$message.info("该表单未提交")
|
|
if(row.type=='1')return this.$message.info("该表单未提交")
|
|
if(row.type=='4')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() {
|
|
beforeDestroy() {
|