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