非空判断

This commit is contained in:
“zhuzihan”  2025-07-09 10:20:16 +08:00
parent 13cef0b0bf
commit 0be3e9b263
2 changed files with 10 additions and 1 deletions

View File

@ -83,7 +83,7 @@
</div>
<div class="info-row">
<span class="info-label">职称 / 职务:</span>
<span class="info-value">{{ teacher.basicInformation.name2 }} / {{ teacher.basicInformation.name3 }}</span>
<span class="info-value">{{ teacher.basicInformation.name2 }}{{ teacher.basicInformation.name3 ? ' / ' + teacher.basicInformation.name3 : '' }}</span>
</div>
<div class="info-row">
<span class="info-label">所属院校:</span>
@ -398,6 +398,11 @@ const openTeacherDetail = (teacher) => {
<style scoped>
.teacher-info span{
font-size: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
display: block;
}
.evaluation-page {
position: absolute;

View File

@ -206,6 +206,10 @@ h2{
.info-value {
font-weight: bold;
/* white-space: nowrap; */
text-overflow: ellipsis;
overflow: hidden;
font-size: 12px;
}
/* ========= 按钮样式 ========= */