feat: 优化查询任务日志

This commit is contained in:
taojinlong 2021-08-01 15:48:48 +08:00
parent 6baf1953c7
commit 9a68bbe9a6
2 changed files with 13 additions and 1 deletions

View File

@ -175,7 +175,7 @@ public class GridExample {
addCriterion(field);
break;
case "sql in":
addCriterion(field);
addCriterion(field+" in ", value, field);
break;
}
return (Criteria) this;

View File

@ -577,6 +577,18 @@ export default {
})
},
changeTaskStatus(task) {
const param = task
param.status = task.status === 'Underway' ? 'Pending' : 'Underway'
post('/dataset/task/updateStatus', task).then(response => {
task.status = param.status
this.$message({
message: this.$t('dataset.task.change_success'),
type: 'success',
showClose: true
})
})
},
deleteTask(task) {
this.$confirm(this.$t('dataset.confirm_delete'), this.$t('dataset.tips'), {
confirmButtonText: this.$t('dataset.confirm'),