提交代码

This commit is contained in:
jiang 2024-12-10 10:15:10 +08:00
parent f0bd4a1b27
commit 67543e4059
3 changed files with 10 additions and 15 deletions

View File

@ -21,9 +21,9 @@
/> />
</el-select> </el-select>
<!-- <span class="settings-icon"> <span v-if="auditFailedReason" class="settings-icon">
<i class="el-icon-setting"></i> 驳回原因:{{ auditFailedReason}}
</span>--> </span>
</div> </div>
</div> </div>
</div> </div>
@ -83,7 +83,8 @@
</div> </div>
<div class="bottom-content-center"> <div class="bottom-content-center">
<div> <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" :config="labelConfig" :id="task.id" :file-url="task.data.image"
@update-itemIndex="updateItemIndex" @update-itemIndex="updateItemIndex"
></custom-label-studio> ></custom-label-studio>
@ -103,6 +104,7 @@ export default {
components: { customLabelStudio }, components: { customLabelStudio },
data() { data() {
return { return {
auditFailedReason: '',
fileAnnotationStatus: '1', fileAnnotationStatus: '1',
itemIndex: 0, itemIndex: 0,
annotationResult: [], annotationResult: [],
@ -200,6 +202,7 @@ export default {
fetchImages() { fetchImages() {
if (!this.taskId) return if (!this.taskId) return
getMyAnnotationFiles(this.annotationType, this.taskId).then(response => { getMyAnnotationFiles(this.annotationType, this.taskId).then(response => {
console.log(response)
this.itemIndex = 0 this.itemIndex = 0
this.images = response.data this.images = response.data
this.updateTaskData(this.images[this.itemIndex]) this.updateTaskData(this.images[this.itemIndex])
@ -208,6 +211,7 @@ export default {
// //
updateTaskData(item) { updateTaskData(item) {
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
@ -270,7 +274,7 @@ export default {
} }
.settings-icon { .settings-icon {
font-size: 24px; font-size: 14px;
display: flex; display: flex;
align-items: center; align-items: center;
} }

View File

@ -208,7 +208,7 @@ export default {
fetchImages() { fetchImages() {
if (!this.taskId) return; if (!this.taskId) return;
getMyAuditFiles(this.annotationType, this.taskId).then(response => { getMyAuditFiles(this.annotationType, this.taskId).then(response => {
//alert(JSON.stringify(response)) console.log(response)
this.itemIndex = 0; this.itemIndex = 0;
this.images = response.data; this.images = response.data;
this.updateTaskData( this.updateTaskData(

View File

@ -2,15 +2,6 @@
<div> <div>
<el-dialog title="目录位置" :visible.sync="open" width="40%" append-to-body @close="cancel" :close-on-click-modal="false"> <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-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-col :span="20">
<el-input placeholder="请输入内容" readonly :disabled="true" v-model="folder"> <el-input placeholder="请输入内容" readonly :disabled="true" v-model="folder">
<el-button slot="prepend" type="success" icon="el-icon-arrow-left" @click="popFromStack"></el-button> <el-button slot="prepend" type="success" icon="el-icon-arrow-left" @click="popFromStack"></el-button>