CN-1149 一开始就没超过100条的话,把more按钮隐藏掉

This commit is contained in:
hyx
2023-07-14 15:56:28 +08:00
parent 96e7a935ee
commit 19ca35b738

View File

@@ -14,8 +14,8 @@
{{ entity.appName ? entity.appName : entity }}
</div>
</div>
<div class="more" >
<span class="button" :style="{'opacity': relatedAppList.length > showRelatedAppListInfo.num ? 1 : 0.6}" @click="showMore(showRelatedAppListInfo,relatedAppList)">{{ $t('overall.more') }} > &nbsp;&nbsp; </span>
<div class="more" v-if="relatedAppList.length > 0">
<span class="button" :style="{'opacity': relatedAppList.length > showRelatedAppListInfo.num ? 1 : 0.6}" @click="showMore(showRelatedAppListInfo,relatedAppList)">{{ $t('overall.more') }} > </span>
</div>
</template>
<div class="type-error-content" v-else>
@@ -34,8 +34,8 @@
{{ entity.ip ? entity.ip : entity }}
</div>
</div>
<div class="more" >
<span class="button" :style="{'opacity': relatedIpList.length > showRelatedIpListInfo.num ? 1 : 0.6}" @click="showMore(showRelatedIpListInfo,relatedIpList)">{{ $t('overall.more') }} > &nbsp;&nbsp; </span>
<div class="more" v-if="relatedIpList.length > 0">
<span class="button" :style="{'opacity': relatedIpList.length > showRelatedIpListInfo.num ? 1 : 0.6}" @click="showMore(showRelatedIpListInfo,relatedIpList)">{{ $t('overall.more') }} > </span>
</div>
</template>
<div class="type-error-content" v-else>
@@ -54,8 +54,8 @@
{{ entity.domain ? entity.domain : entity }}
</div>
</div>
<div class="more" >
<span class="button" :style="{'opacity': relatedDomainList.length > showRelatedDomainListInfo.num ? 1 : 0.6}" @click="showMore(showRelatedDomainListInfo,relatedDomainList)">{{ $t('overall.more') }} > &nbsp;&nbsp; </span>
<div class="more" v-if="relatedDomainList.length > 0">
<span class="button" :style="{'opacity': relatedDomainList.length > showRelatedDomainListInfo.num ? 1 : 0.6}" @click="showMore(showRelatedDomainListInfo,relatedDomainList)">{{ $t('overall.more') }} > </span>
</div>
</template>
<div class="type-error-content" v-else>