提交代码
This commit is contained in:
parent
f0bd4a1b27
commit
67543e4059
|
|
@ -21,9 +21,9 @@
|
|||
|
||||
/>
|
||||
</el-select>
|
||||
<!-- <span class="settings-icon">
|
||||
<i class="el-icon-setting"></i>
|
||||
</span>-->
|
||||
<span v-if="auditFailedReason" class="settings-icon">
|
||||
驳回原因:{{ auditFailedReason}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -83,7 +83,8 @@
|
|||
</div>
|
||||
<div class="bottom-content-center">
|
||||
<div>
|
||||
<custom-label-studio :file-annotation-status="fileAnnotationStatus" :annotations="annotationResult" :taskId="taskId || 0" :item-index="itemIndex"
|
||||
<custom-label-studio :file-annotation-status="fileAnnotationStatus" :annotations="annotationResult"
|
||||
:taskId="taskId || 0" :item-index="itemIndex"
|
||||
:config="labelConfig" :id="task.id" :file-url="task.data.image"
|
||||
@update-itemIndex="updateItemIndex"
|
||||
></custom-label-studio>
|
||||
|
|
@ -103,6 +104,7 @@ export default {
|
|||
components: { customLabelStudio },
|
||||
data() {
|
||||
return {
|
||||
auditFailedReason: '',
|
||||
fileAnnotationStatus: '1',
|
||||
itemIndex: 0,
|
||||
annotationResult: [],
|
||||
|
|
@ -200,6 +202,7 @@ export default {
|
|||
fetchImages() {
|
||||
if (!this.taskId) return
|
||||
getMyAnnotationFiles(this.annotationType, this.taskId).then(response => {
|
||||
console.log(response)
|
||||
this.itemIndex = 0
|
||||
this.images = response.data
|
||||
this.updateTaskData(this.images[this.itemIndex])
|
||||
|
|
@ -208,6 +211,7 @@ export default {
|
|||
|
||||
// 更新任务的数据
|
||||
updateTaskData(item) {
|
||||
this.auditFailedReason= item.auditFailedReason;
|
||||
let url = JSON.parse(localStorage.getItem('minIoUrl'))
|
||||
this.task.data.image = `${url.minioUrl}${item.fileUrl}`
|
||||
this.task.id = item.fileId
|
||||
|
|
@ -270,7 +274,7 @@ export default {
|
|||
}
|
||||
|
||||
.settings-icon {
|
||||
font-size: 24px;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ export default {
|
|||
fetchImages() {
|
||||
if (!this.taskId) return;
|
||||
getMyAuditFiles(this.annotationType, this.taskId).then(response => {
|
||||
//alert(JSON.stringify(response))
|
||||
console.log(response)
|
||||
this.itemIndex = 0;
|
||||
this.images = response.data;
|
||||
this.updateTaskData(
|
||||
|
|
|
|||
|
|
@ -2,15 +2,6 @@
|
|||
<div>
|
||||
<el-dialog title="目录位置" :visible.sync="open" width="40%" append-to-body @close="cancel" :close-on-click-modal="false">
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
icon="el-icon-folder-add"
|
||||
size="small"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['dataCenter:dataSetBasicFile:add']"
|
||||
>新建文件夹</el-button>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-input placeholder="请输入内容" readonly :disabled="true" v-model="folder">
|
||||
<el-button slot="prepend" type="success" icon="el-icon-arrow-left" @click="popFromStack"></el-button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue