|
|
@@ -8,7 +8,7 @@
|
|
|
<div class="list-item">
|
|
|
<p>每日履职</p>
|
|
|
<van-tabs>
|
|
|
- <van-tab title="待完成" :badge="dayList.unfinished.length">
|
|
|
+ <van-tab title="待完成" :badge="dayList.unfinished.length === 0 ? false :dayList.unfinished.length">
|
|
|
<Empty v-if="!dayList.unfinished.length"/>
|
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
|
@@ -27,7 +27,7 @@
|
|
|
</van-cell>
|
|
|
</div>
|
|
|
</van-tab>
|
|
|
- <van-tab title="未完成" :badge="dayList.proceed.length">
|
|
|
+ <van-tab title="未完成" :badge="dayList.proceed.length=== 0 ? false :dayList.proceed.length">
|
|
|
<Empty v-if="!dayList.proceed.length"/>
|
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
|
@@ -44,7 +44,7 @@
|
|
|
</van-cell>
|
|
|
</div>
|
|
|
</van-tab>
|
|
|
- <van-tab title="已完成" :badge="dayList.finished.length">
|
|
|
+ <van-tab title="已完成" :badge="dayList.finished.length=== 0 ? false :dayList.finished.length">
|
|
|
<Empty v-if="!dayList.finished.length"/>
|
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
|
@@ -68,7 +68,7 @@
|
|
|
<div class="list-item">
|
|
|
<p>周期履职</p>
|
|
|
<van-tabs >
|
|
|
- <van-tab title="待完成" :badge="otherList.unfinished.length">
|
|
|
+ <van-tab title="待完成" :badge="otherList.unfinished.length=== 0 ? false :otherList.unfinished.length">
|
|
|
<Empty v-if="!otherList.unfinished.length"/>
|
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
|
@@ -87,7 +87,7 @@
|
|
|
</van-cell>
|
|
|
</div>
|
|
|
</van-tab>
|
|
|
- <van-tab title="未完成" :badge="otherList.proceed.length">
|
|
|
+ <van-tab title="未完成" :badge="otherList.proceed.length=== 0 ? false :otherList.proceed.length">
|
|
|
<Empty v-if="!otherList.proceed.length"/>
|
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
|
@@ -104,7 +104,7 @@
|
|
|
</van-cell>
|
|
|
</div>
|
|
|
</van-tab>
|
|
|
- <van-tab title="已完成" :badge="otherList.finished.length">
|
|
|
+ <van-tab title="已完成" :badge="otherList.finished.length=== 0 ? false :otherList.finished.length">
|
|
|
<Empty v-if="!otherList.finished.length"/>
|
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|