任务记录 查看任务进度 修改

master
wanglei 1 year ago
parent a5f9992388
commit 5fe85dba25

@ -148,7 +148,7 @@
</template> </template>
<script> <script>
import { listTask, listByIds } from "@/api/dangan/task"; import { listTask, listByIds, getTask } from "@/api/dangan/task";
import { reRecongnize } from "@/api/dangan/collection"; import { reRecongnize } from "@/api/dangan/collection";
import axios from "axios"; import axios from "axios";
@ -250,11 +250,18 @@
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.percentage = 0 this.percentage = 0;
this.form = row; getTask(row.id).then(response => {
this.getProgress(); this.form = response.data;
if(this.form.status==='2'){
this.$modal.msgSuccess("识别已结束");
this.getList()
}else {
this.open = true; this.open = true;
this.getProgress();
this.title = "任务进度"; this.title = "任务进度";
}
});
}, },
handleUpdate1(row) { handleUpdate1(row) {
this.form = row; this.form = row;

Loading…
Cancel
Save