|
@@ -589,7 +589,7 @@ export default {
|
|
|
this.lockedDialog = false;
|
|
|
this.lockedInfo = [];
|
|
|
this.reviewDialog = true;
|
|
|
- await this.getToken(this.checkIds);
|
|
|
+ // await this.getToken(this.checkIds);
|
|
|
} else {
|
|
|
this.$message.info('当前无可审核数据!');
|
|
|
this.list.forEach((item) => {
|
|
@@ -598,7 +598,6 @@ export default {
|
|
|
this.checkAllTaskScore;
|
|
|
item.reviewInfo.checked = false;
|
|
|
item.reviewInfo.show = false;
|
|
|
- this.checkIds = [];
|
|
|
}
|
|
|
});
|
|
|
this.lockedDialogClose();
|
|
@@ -614,7 +613,10 @@ export default {
|
|
|
};
|
|
|
await pretreatmentClearApi(obj);
|
|
|
}
|
|
|
-
|
|
|
+ this.list.forEach((item) => {
|
|
|
+ item.reviewInfo.checked = false;
|
|
|
+ });
|
|
|
+ this.checkIds = [];
|
|
|
this.lockedDialog = false;
|
|
|
this.lockedInfo = [];
|
|
|
},
|
|
@@ -626,13 +628,30 @@ export default {
|
|
|
this.reviewToken = tokenRes.data.data.token;
|
|
|
this.expireTime = tokenRes.data.data.expireTime;
|
|
|
},
|
|
|
- handleClose() {
|
|
|
+
|
|
|
+ closeDialog() {
|
|
|
this.reviewDialog = false;
|
|
|
this.taskForm = {
|
|
|
checkResult: '',
|
|
|
checkMessage: ''
|
|
|
};
|
|
|
},
|
|
|
+ async handleClose() {
|
|
|
+ const taskIds = this.pretreatmentInfo.available.map((item) => item.taskId);
|
|
|
+ if (this.pretreatmentInfo?.token?.token) {
|
|
|
+ const obj = {
|
|
|
+ taskIds: taskIds,
|
|
|
+ token: this.pretreatmentInfo.token.token,
|
|
|
+ nodeId: this.checkNodeId
|
|
|
+ };
|
|
|
+ await pretreatmentClearApi(obj);
|
|
|
+ }
|
|
|
+ this.list.forEach((item) => {
|
|
|
+ item.reviewInfo.checked = false;
|
|
|
+ });
|
|
|
+ this.checkIds = [];
|
|
|
+ this.closeDialog();
|
|
|
+ },
|
|
|
clickBtn() {
|
|
|
this.list = [];
|
|
|
this.page.currentPage = 1;
|
|
@@ -828,7 +847,7 @@ export default {
|
|
|
this.$refs.taskForm.validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
let obj = {
|
|
|
- token: this.reviewToken,
|
|
|
+ token: this.pretreatmentInfo.token.token,
|
|
|
taskIds: taskIds,
|
|
|
checkResult: this.taskForm.checkResult,
|
|
|
checkMessage: this.taskForm.checkMessage,
|
|
@@ -840,7 +859,7 @@ export default {
|
|
|
this.$message.success('审核成功!');
|
|
|
this.checkIds = [];
|
|
|
|
|
|
- this.handleClose();
|
|
|
+ this.closeDialog();
|
|
|
this.list.forEach((item) => {
|
|
|
if (item.reviewInfo.checked) {
|
|
|
this.checkAllLength = 0;
|