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

@ -2,7 +2,7 @@
<div v-loading="loading" class="img-container"> <div v-loading="loading" class="img-container">
<el-card class="box-card left"> <el-card class="box-card left">
<div class="title"> <div class="title">
{{$t('trials:none-dicom-show:fileList')}} {{ $t('trials:none-dicom-show:fileList') }}
</div> </div>
<div class="left-content"> <div class="left-content">
<!-- 检查层级 --> <!-- 检查层级 -->
@ -27,13 +27,15 @@
class="img-box" class="img-box"
@click="selected(item,i,j,true)" @click="selected(item,i,j,true)"
> >
<el-tooltip :content="item.FileName" placement="bottom"> <div v-if="item.FileName.length < 15" class="img-text">
<div style="width:100%;"> {{ `${j+1}. ${item.FileName}` }}
</div>
<el-tooltip v-else :content="item.FileName" placement="bottom">
<div class="img-text">
{{ `${j+1}. ${item.FileName}` }} {{ `${j+1}. ${item.FileName}` }}
</div> </div>
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
@ -87,11 +89,11 @@ export default {
subjectVisitId: '', subjectVisitId: '',
sudyId: '', sudyId: '',
loading: false, loading: false,
bp:[] bp: []
} }
}, },
async created(){ async created() {
this.bp = await this.$getBodyPart(this.$route.query.trialId); this.bp = await this.$getBodyPart(this.$route.query.trialId)
}, },
async mounted() { async mounted() {
if (this.$router.currentRoute.query.TokenKey) { if (this.$router.currentRoute.query.TokenKey) {
@ -117,9 +119,9 @@ export default {
} }
var arr = bodyPart.split(separator) var arr = bodyPart.split(separator)
var newArr = arr.map(i => { var newArr = arr.map(i => {
return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name') return this.$fd('Bodypart', i.trim(), 'Code', { Bodypart: this.bp }, 'Name')
}) })
console.log(newArr,this.bp) console.log(newArr, this.bp)
return newArr.join(' | ') return newArr.join(' | ')
}, },
// Dicom // Dicom
@ -240,12 +242,17 @@ export default {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 2px solid #f3f3f3; border-bottom: 2px solid #f3f3f3;
width: 180px;
height: 50px;
line-height: 50px;
cursor: pointer; cursor: pointer;
// margin-bottom: 5px; // margin-bottom: 5px;
padding-left: 5px; padding-left: 5px;
}
.img-text{
display: inline-block;
width: 200px;
height: 50px;
line-height: 50px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; /* 用省略号表示溢出的文本 */ text-overflow: ellipsis; /* 用省略号表示溢出的文本 */
white-space: nowrap; white-space: nowrap;

View File

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

View File

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