feat: 100百分号颜色改成红色

pull/83/head
lizijiee 1 year ago
parent 84fea70b5b
commit 8237e77973

@ -533,10 +533,9 @@ function reloadList() {
<n-checkbox v-show="batch && item.historyStates !== 2 && item.historyStates !== 3" v-model:checked="item.checked" @click.stop <n-checkbox v-show="batch && item.historyStates !== 2 && item.historyStates !== 3" v-model:checked="item.checked" @click.stop
@update:checked="onCheckChange($event, item)" /> @update:checked="onCheckChange($event, item)" />
</div> </div>
<div class="percent"> <div class="percent" :class="{ 'percent-red': item?.maxSimilarity >= 100 }">
<SvgIcon size="42" name="tag" />
<div class="val"> <div class="val">
{{ item?.maxSimilarity && Number(item?.maxSimilarity).toFixed(0) }}% {{ item?.maxSimilarity && Number(item?.maxSimilarity).toFixed(0) }}<span class="percent-unit">%</span>
</div> </div>
</div> </div>
@ -967,29 +966,26 @@ function reloadList() {
.percent { .percent {
position: absolute; position: absolute;
text-align: center;
z-index: 3;
right: 17px;
top: 2px;
color: #fff;
.val {
position: absolute;
left: 0;
top: 0;
display: block;
width: 100%;
height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 12px; width: 35px;
font-family: PingFang SC, PingFang SC-Semibold; height: 18px;
font-weight: Semibold; opacity: 0.9;
text-align: left; background: #6f92fd;
color: #ffffff; border-radius: 6px 0px 6px 0px;
line-height: 24px; z-index: 5;
right: 12px;
top: 15px;
color: #fff;
font-size: 14px;
}
.percent-unit {
font-size: 8px;
margin-top: 4px;
} }
.percent-red{
background: #ff4e4f;
} }
.pass-status { .pass-status {

Loading…
Cancel
Save