|
|
@@ -254,7 +254,8 @@ export default {
|
|
|
},
|
|
|
|
|
|
approve() { // 通过审核
|
|
|
-
|
|
|
+ const originalState = this.questionvo.state;
|
|
|
+ this.questionvo.state = "APPROVED";
|
|
|
let record = {
|
|
|
userId: store.state.user.id,
|
|
|
operationType: "Approve",
|
|
|
@@ -267,7 +268,6 @@ export default {
|
|
|
});
|
|
|
console.log("checkQuestionCard-approve");
|
|
|
console.log(res);
|
|
|
- this.questionvo.state = "APPROVED";
|
|
|
record.questionId = res.data.result.id;
|
|
|
record.time = new Date();
|
|
|
// 审核通过,添加操作记录
|
|
|
@@ -284,6 +284,7 @@ export default {
|
|
|
title: '错误',
|
|
|
message: '通过失败'
|
|
|
});
|
|
|
+ this.questionvo.state = originalState;
|
|
|
console.log(err);
|
|
|
})
|
|
|
this.$emit("approved")
|