测试问题修改
This commit is contained in:
parent
dd455c855a
commit
5b118e91ab
|
|
@ -12,13 +12,28 @@
|
||||||
|
|
||||||
|
|
||||||
<el-form-item label="" prop="contentImage">
|
<el-form-item label="" prop="contentImage">
|
||||||
<el-input
|
<!-- <el-input-->
|
||||||
|
<!-- v-model="queryParams.contentImage"-->
|
||||||
|
<!-- placeholder="标注项"-->
|
||||||
|
<!-- clearable-->
|
||||||
|
<!-- style="width: 240px"-->
|
||||||
|
<!-- @keyup.enter.native="handleQuery"-->
|
||||||
|
<!-- />-->
|
||||||
|
<el-select
|
||||||
v-model="queryParams.contentImage"
|
v-model="queryParams.contentImage"
|
||||||
placeholder="标注项"
|
placeholder="请选择"
|
||||||
clearable
|
clearable
|
||||||
style="width: 240px"
|
filterable
|
||||||
@keyup.enter.native="handleQuery"
|
style="width: 240px">
|
||||||
/>
|
<el-option
|
||||||
|
v-for="item in contentImageOptions"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.name"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="" prop="userName">
|
<el-form-item label="" prop="userName">
|
||||||
<el-input
|
<el-input
|
||||||
|
|
@ -98,6 +113,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getAllImagelist, deleteFile, exportImages} from "@/api/imageCaptioning/imageLibrary";
|
import {getAllImagelist, deleteFile, exportImages} from "@/api/imageCaptioning/imageLibrary";
|
||||||
|
import {getSelectedAPI} from "@/api/imageCaptioning/imageCaptioning";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "imageCaptioningLibrary",
|
name: "imageCaptioningLibrary",
|
||||||
|
|
@ -119,10 +135,12 @@ export default {
|
||||||
proMaterialsListAll: [], // 所有材料列表
|
proMaterialsListAll: [], // 所有材料列表
|
||||||
showProMaterialsDuctList: [], // 需要显示的材料列表
|
showProMaterialsDuctList: [], // 需要显示的材料列表
|
||||||
itemWidth: 0, // 材料卡片宽度
|
itemWidth: 0, // 材料卡片宽度
|
||||||
|
contentImageOptions:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.getContentImageOptions();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getItemWidth()
|
this.getItemWidth()
|
||||||
|
|
@ -142,6 +160,11 @@ export default {
|
||||||
this.showProMaterialsDuctList = this.proMaterialsListAll;
|
this.showProMaterialsDuctList = this.proMaterialsListAll;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getContentImageOptions() {
|
||||||
|
getSelectedAPI().then(response => {
|
||||||
|
this.contentImageOptions = response.data;
|
||||||
|
})
|
||||||
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.pageNum = 1
|
this.queryParams.pageNum = 1
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,26 @@
|
||||||
<div class="sidebar-wrapper">
|
<div class="sidebar-wrapper">
|
||||||
<div class="sidebar" v-show="isSidebarVisible">
|
<div class="sidebar" v-show="isSidebarVisible">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<img src="@/assets/images/imageCaptioning/icon-camera.png" alt="" class="icon">
|
<div>
|
||||||
|
<img src="@/assets/images/imageCaptioning/icon-camera.png" alt="" class="icon">
|
||||||
|
</div>
|
||||||
|
<div><span class="title">图像标注</span></div>
|
||||||
|
<div>
|
||||||
|
<img
|
||||||
|
src="@/assets/images/imageCaptioning/icon-close.png"
|
||||||
|
alt=""
|
||||||
|
class="icon-close"
|
||||||
|
@click="$emit('toggle-sidebar')"
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<!-- <img src="@/assets/images/imageCaptioning/icon-camera.png" alt="" class="icon">
|
||||||
<span class="title">图像标注</span>
|
<span class="title">图像标注</span>
|
||||||
<img
|
<img
|
||||||
src="@/assets/images/imageCaptioning/icon-close.png"
|
src="@/assets/images/imageCaptioning/icon-close.png"
|
||||||
alt=""
|
alt=""
|
||||||
class="icon-close"
|
class="icon-close"
|
||||||
@click="$emit('toggle-sidebar')"
|
@click="$emit('toggle-sidebar')"
|
||||||
>
|
>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="nav-item-add" @click="$emit('create-new-label')">
|
<div class="nav-item-add" @click="$emit('create-new-label')">
|
||||||
|
|
@ -96,7 +108,9 @@ export default {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
margin-left: 5%;
|
/*margin-left: 5%;*/
|
||||||
|
height: 8%;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
|
@ -109,6 +123,8 @@ export default {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
margin-left: 20%;
|
margin-left: 20%;
|
||||||
|
margin-top: 5px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue