|
@@ -129,6 +129,7 @@ export default {
|
|
|
message: '退回并发送通知成功',
|
|
|
type: 'success'
|
|
|
})
|
|
|
+ this.reviewChangeFn()
|
|
|
this.$emit("success")
|
|
|
this.close()
|
|
|
}else{
|
|
@@ -158,6 +159,7 @@ export default {
|
|
|
});
|
|
|
})
|
|
|
},
|
|
|
+ //退回
|
|
|
returnTestFn(){
|
|
|
let params = [{
|
|
|
id:this.data.id,
|
|
@@ -176,7 +178,23 @@ export default {
|
|
|
resolve(0)
|
|
|
})
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ //审核取消
|
|
|
+ reviewChangeFn(){
|
|
|
+ let params = [{
|
|
|
+ id:this.data.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()
|
|
|
+ },
|
|
|
},
|
|
|
mounted(){
|
|
|
|