1
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-09-05 13:50:49 +08:00
parent 915c7c88fb
commit c114903dba
3 changed files with 47 additions and 26 deletions

View File

@ -27,13 +27,15 @@
class="img-box"
@click="selected(item,i,j,true)"
>
<el-tooltip :content="item.FileName" placement="bottom">
<div style="width:100%;">
<div v-if="item.FileName.length < 15" class="img-text">
{{ `${j+1}. ${item.FileName}` }}
</div>
<el-tooltip v-else :content="item.FileName" placement="bottom">
<div class="img-text">
{{ `${j+1}. ${item.FileName}` }}
</div>
</el-tooltip>
</div>
</div>
</div>
</div>
@ -91,7 +93,7 @@ export default {
}
},
async created() {
this.bp = await this.$getBodyPart(this.$route.query.trialId);
this.bp = await this.$getBodyPart(this.$route.query.trialId)
},
async mounted() {
if (this.$router.currentRoute.query.TokenKey) {
@ -240,12 +242,17 @@ export default {
display: inline-block;
box-sizing: border-box;
border-bottom: 2px solid #f3f3f3;
width: 180px;
height: 50px;
line-height: 50px;
cursor: pointer;
// margin-bottom: 5px;
padding-left: 5px;
}
.img-text{
display: inline-block;
width: 200px;
height: 50px;
line-height: 50px;
overflow: hidden;
text-overflow: ellipsis; /* 用省略号表示溢出的文本 */
white-space: nowrap;

View File

@ -28,8 +28,11 @@
class="img-box"
@click="selected(item,i,j,true)"
>
<el-tooltip :content="item.FileName" placement="bottom-start">
<div style="width:100%;">
<div v-if="item.FileName.length < 15" class="img-text">
{{ `${j+1}. ${item.FileName}` }}
</div>
<el-tooltip v-else :content="item.FileName" placement="bottom">
<div class="img-text">
{{ `${j+1}. ${item.FileName}` }}
</div>
</el-tooltip>
@ -269,12 +272,15 @@ export default {
display: inline-block;
box-sizing: border-box;
border-bottom: 2px solid #f3f3f3;
width: 200px;
height: 50px;
line-height: 50px;
cursor: pointer;
// margin-bottom: 5px;
padding-left: 5px;
}
.img-text{
display: inline-block;
width: 200px;
height: 50px;
line-height: 50px;
overflow: hidden;
text-overflow: ellipsis; /* 用省略号表示溢出的文本 */
white-space: nowrap;

View File

@ -30,8 +30,11 @@
class="img-box"
@click="selected(item,i,j,true)"
>
<el-tooltip :content="item.FileName" placement="bottom-start">
<div style="width:100%;">
<div v-if="item.FileName.length < 15" class="img-text">
{{ `${j+1}. ${item.FileName}` }}
</div>
<el-tooltip v-else :content="item.FileName" placement="bottom">
<div class="img-text">
{{ `${j+1}. ${item.FileName}` }}
</div>
</el-tooltip>
@ -57,13 +60,15 @@
class="img-box"
@click="handleImageRead(task)"
>
<el-tooltip :content="task.TaskBlindName" placement="bottom-start">
<div style="width:100%;">
<div v-if="task.TaskBlindName.length < 15" class="img-text">
{{ `${j+1}. ${task.TaskBlindName}` }}
</div>
<el-tooltip v-else :content="task.TaskBlindName" placement="bottom">
<div class="img-text">
{{ `${j+1}. ${task.TaskBlindName}` }}
</div>
</el-tooltip>
</div>
</div>
</div>
</el-tab-pane>
@ -410,12 +415,15 @@ export default {
display: inline-block;
box-sizing: border-box;
border-bottom: 2px solid #f3f3f3;
width: 200px;
height: 50px;
line-height: 50px;
cursor: pointer;
// margin-bottom: 5px;
padding-left: 5px;
}
.img-text{
display: inline-block;
width: 200px;
height: 50px;
line-height: 50px;
overflow: hidden;
text-overflow: ellipsis; /* 用省略号表示溢出的文本 */
white-space: nowrap;