|
|
|
|
@ -101,10 +101,10 @@
|
|
|
|
|
|
|
|
|
|
<div class="num">
|
|
|
|
|
<span style="color:#409EFF;">总数量:{{ form.num }}</span>
|
|
|
|
|
<el-link type="primary" @click="getFailPicture(form.picIds)">查看所有图片</el-link>
|
|
|
|
|
<el-link type="primary" @click="getALLPicture(form.picIds)">查看所有图片</el-link>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="num" v-if="form.status==='1'">
|
|
|
|
|
<span style="color:#67C23A;">已识别:10</span>
|
|
|
|
|
<span style="color:#67C23A;">已识别:{{percentage}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="num" v-if="form.status==='2'">
|
|
|
|
|
<span style="color:#67C23A;">成功:{{ form.successNum }}</span>
|
|
|
|
|
@ -150,6 +150,7 @@
|
|
|
|
|
<script>
|
|
|
|
|
import { listTask, listByIds } from "@/api/dangan/task";
|
|
|
|
|
import { reRecongnize } from "@/api/dangan/collection";
|
|
|
|
|
import axios from "axios";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Task",
|
|
|
|
|
@ -176,6 +177,8 @@
|
|
|
|
|
status: null
|
|
|
|
|
},
|
|
|
|
|
form: {},
|
|
|
|
|
// 识别进度
|
|
|
|
|
percentage: 0,
|
|
|
|
|
// 相关图片
|
|
|
|
|
xgtp:{
|
|
|
|
|
title: null,
|
|
|
|
|
@ -203,6 +206,13 @@
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getALLPicture(ids){
|
|
|
|
|
this.xgtp.queryParams.pageNum = 1;
|
|
|
|
|
this.xgtp.queryParams.ids = ids;
|
|
|
|
|
this.xgtp.title="所有图片";
|
|
|
|
|
this.xgtp.open = true;
|
|
|
|
|
this.xgtpQuery();
|
|
|
|
|
},
|
|
|
|
|
getFailPicture(ids){
|
|
|
|
|
this.xgtp.queryParams.pageNum = 1;
|
|
|
|
|
this.xgtp.queryParams.ids = ids;
|
|
|
|
|
@ -240,7 +250,9 @@
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.percentage = 0
|
|
|
|
|
this.form = row;
|
|
|
|
|
this.getProgress();
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "任务进度";
|
|
|
|
|
},
|
|
|
|
|
@ -255,6 +267,22 @@
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/** 查询识别进度 */
|
|
|
|
|
getProgress() {
|
|
|
|
|
// 向给定ID的用户发起请求
|
|
|
|
|
//axios.post('http://20.206.150.166:22443/get_file_count',`username=${this.$store.state.user.name}`, {
|
|
|
|
|
axios.post('http://123.57.142.195:443/get_file_count',`taskId=${this.form.id}`, {
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
|
|
|
}
|
|
|
|
|
}).then((response)=>{
|
|
|
|
|
|
|
|
|
|
this.percentage = response.data.file_counts
|
|
|
|
|
|
|
|
|
|
}).catch(function (error) {
|
|
|
|
|
this.percentage = 0
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|