refactor(richedit): 修改标签显示逻辑为仅展示第一个标签

This commit is contained in:
zzp 2025-11-13 22:07:40 +08:00
parent 4dc81fdac3
commit 06c8c29bb7
2 changed files with 11 additions and 14 deletions

View File

@ -205,7 +205,7 @@
</div> </div>
<div class="labels"> <div class="labels">
<div v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0" class="label_item_box"> <!-- <div v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0" class="label_item_box">
<div v-for="item in scope.row.conceptLabels" :key="item" class="label_item" style="background-color: #eee6cd"> <div v-for="item in scope.row.conceptLabels" :key="item" class="label_item" style="background-color: #eee6cd">
{{ item }} {{ item }}
</div> </div>
@ -215,16 +215,14 @@
<div v-for="item in scope.row.industryLabels" :key="item" class="label_item" style="background-color: #cfdcf3"> <div v-for="item in scope.row.industryLabels" :key="item" class="label_item" style="background-color: #cfdcf3">
{{ item }} {{ item }}
</div> </div>
</div> </div> -->
<!-- <div style="background-color: #eee6cd" class="label_item" <div style="background-color: #eee6cd" class="label_item" v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0">
v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0">
{{ scope.row.conceptLabels[0] }} {{ scope.row.conceptLabels[0] }}
</div> </div>
<div style="background-color: #cfdcf3" class="label_item" <div style="background-color: #cfdcf3" class="label_item" v-if="scope.row.industryLabels && scope.row.industryLabels.length > 0">
v-if="scope.row.industryLabels && scope.row.industryLabels.length > 0">
{{ scope.row.industryLabels[0] }} {{ scope.row.industryLabels[0] }}
</div> --> </div>
</div> </div>
</div> </div>
</template> </template>

View File

@ -334,7 +334,7 @@
</div> </div>
<div class="labels" v-if="Session.get('userInfoLocal').userType == '00'"> <div class="labels" v-if="Session.get('userInfoLocal').userType == '00'">
<div v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0" class="label_item_box"> <!-- <div v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0" class="label_item_box">
<div v-for="item in scope.row.conceptLabels" :key="item" class="label_item" style="background-color: #eee6cd"> <div v-for="item in scope.row.conceptLabels" :key="item" class="label_item" style="background-color: #eee6cd">
{{ item }} {{ item }}
</div> </div>
@ -344,15 +344,14 @@
<div v-for="item in scope.row.industryLabels" :key="item" class="label_item" style="background-color: #cfdcf3"> <div v-for="item in scope.row.industryLabels" :key="item" class="label_item" style="background-color: #cfdcf3">
{{ item }} {{ item }}
</div> </div>
</div> </div> -->
<!-- <div style="background-color: #eee6cd" class="label_item" <div style="background-color: #eee6cd" class="label_item" v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0">
v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0">
{{ scope.row.conceptLabels[0] }} {{ scope.row.conceptLabels[0] }}
</div> --> </div>
<!-- <div style="background-color: #cfdcf3" class="label_item" v-if="scope.row.industryLabels && scope.row.industryLabels.length > 0"> <div style="background-color: #cfdcf3" class="label_item" v-if="scope.row.industryLabels && scope.row.industryLabels.length > 0">
{{ scope.row.industryLabels[0] }} {{ scope.row.industryLabels[0] }}
</div> --> </div>
</div> </div>
</div> </div>
</template> </template>