提交代码
This commit is contained in:
parent
57b395125d
commit
20fab8c85b
|
|
@ -94,6 +94,7 @@
|
|||
type="text"
|
||||
@click="handleAnnotation(scope.row)"
|
||||
v-hasPermi="['dataCenter:sample:edit']"
|
||||
:disabled="scope.row.status0Count ===0"
|
||||
>标注
|
||||
</el-button>
|
||||
<el-button
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@
|
|||
|
||||
/>
|
||||
</el-select>
|
||||
<span v-if="auditFailedReason" class="settings-icon">
|
||||
驳回原因:{{ auditFailedReason}}
|
||||
<span v-if="auditFailedReason" class="settings-icon">
|
||||
驳回原因:{{ auditFailedReason }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -150,13 +150,13 @@ export default {
|
|||
loadTaskList() {
|
||||
getMyNoAnnotatedTask().then(res => {
|
||||
this.taskList = res.data
|
||||
this.taskId = Number(this.$route.params && this.$route.params.taskId);
|
||||
this.taskId = Number(this.$route.params && this.$route.params.taskId)
|
||||
this.selectTask(this.taskId)
|
||||
})
|
||||
},
|
||||
|
||||
// 根据任务ID选择任务并加载对应的文件
|
||||
selectTask(id) {
|
||||
console.log(id)
|
||||
this.resetImages()
|
||||
const result = this.taskList.find(item => item.taskId === id)
|
||||
const labels = result.labels.split(',').map(role => role.trim())
|
||||
|
|
@ -214,7 +214,7 @@ export default {
|
|||
|
||||
// 更新任务的数据
|
||||
updateTaskData(item) {
|
||||
this.auditFailedReason= item.auditFailedReason;
|
||||
this.auditFailedReason = item.auditFailedReason
|
||||
let url = JSON.parse(localStorage.getItem('minIoUrl'))
|
||||
this.task.data.image = `${url.minioUrl}${item.fileUrl}`
|
||||
this.task.id = item.fileId
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ export default {
|
|||
getMyNoAnnotatedTask().then(res => {
|
||||
this.taskList = res.data
|
||||
this.taskId = Number(this.$route.params && this.$route.params.taskId);
|
||||
this.selectTask(this.taskId)
|
||||
})
|
||||
},
|
||||
// 根据任务ID选择任务并加载对应的文件
|
||||
|
|
|
|||
|
|
@ -104,6 +104,13 @@
|
|||
v-hasPermi="['dataCenter:dataSet:export']"
|
||||
>导出
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="downloadDataset(scope.row)"
|
||||
v-hasPermi="['dataCenter:dataSet:export']"
|
||||
>导出数据集
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
|
|
@ -141,7 +148,7 @@
|
|||
@dialog-cancel="handleCancel"
|
||||
/>
|
||||
|
||||
<export-dialog :get-list="getList" :open="exportOpen" :dataset-id="datasetId.toString()"
|
||||
<export-dialog :get-list="getList" :open="exportOpen" :dataset-id="datasetId.toString()"
|
||||
@dialog-cancel="handleCancel"
|
||||
/>
|
||||
|
||||
|
|
@ -293,6 +300,9 @@ export default {
|
|||
downloadFile(row) {
|
||||
this.exportOpen = true
|
||||
this.datasetId = row.datasetId
|
||||
},
|
||||
downloadDataset(row) {
|
||||
this.download('/ai/dataset/export/'+row.datasetId,{},`${new Date().getTime()}.zip`,{timeout: 600000})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue