|
@@ -8,7 +8,7 @@
|
|
|
<div class="list-item">
|
|
<div class="list-item">
|
|
|
<p>每日履职</p>
|
|
<p>每日履职</p>
|
|
|
<van-tabs>
|
|
<van-tabs>
|
|
|
- <van-tab title="待完成" :badge="dayList.unfinished.length === 0 ? false :dayList.unfinished.length">
|
|
|
|
|
|
|
+ <van-tab title="待完成" :badge="dayList.unfinished.length === 0 ? '' :dayList.unfinished.length">
|
|
|
<Empty v-if="!dayList.unfinished.length"/>
|
|
<Empty v-if="!dayList.unfinished.length"/>
|
|
|
<div class="list-container" v-else>
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
<van-cell
|
|
@@ -27,7 +27,7 @@
|
|
|
</van-cell>
|
|
</van-cell>
|
|
|
</div>
|
|
</div>
|
|
|
</van-tab>
|
|
</van-tab>
|
|
|
- <van-tab title="已完成" :badge="dayList.finished.length=== 0 ? false :dayList.finished.length">
|
|
|
|
|
|
|
+ <van-tab title="已完成" :badge="dayList.finished.length=== 0 ? '' :dayList.finished.length">
|
|
|
<Empty v-if="!dayList.finished.length"/>
|
|
<Empty v-if="!dayList.finished.length"/>
|
|
|
<div class="list-container" v-else>
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
<van-cell
|
|
@@ -46,7 +46,7 @@
|
|
|
</van-cell>
|
|
</van-cell>
|
|
|
</div>
|
|
</div>
|
|
|
</van-tab>
|
|
</van-tab>
|
|
|
- <van-tab title="已逾期" :badge="dayList.proceed.length=== 0 ? false :dayList.proceed.length">
|
|
|
|
|
|
|
+ <van-tab title="已逾期" :badge="dayList.proceed.length=== 0 ? '' :dayList.proceed.length">
|
|
|
<Empty v-if="!dayList.proceed.length"/>
|
|
<Empty v-if="!dayList.proceed.length"/>
|
|
|
<div class="list-container" v-else>
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
<van-cell
|
|
@@ -68,7 +68,7 @@
|
|
|
<div class="list-item">
|
|
<div class="list-item">
|
|
|
<p>周期履职</p>
|
|
<p>周期履职</p>
|
|
|
<van-tabs >
|
|
<van-tabs >
|
|
|
- <van-tab title="待完成" :badge="otherList.unfinished.length=== 0 ? false :otherList.unfinished.length">
|
|
|
|
|
|
|
+ <van-tab title="待完成" :badge="otherList.unfinished.length=== 0 ? '' :otherList.unfinished.length">
|
|
|
<Empty v-if="!otherList.unfinished.length"/>
|
|
<Empty v-if="!otherList.unfinished.length"/>
|
|
|
<div class="list-container" v-else>
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
<van-cell
|
|
@@ -87,7 +87,7 @@
|
|
|
</van-cell>
|
|
</van-cell>
|
|
|
</div>
|
|
</div>
|
|
|
</van-tab>
|
|
</van-tab>
|
|
|
- <van-tab title="已完成" :badge="otherList.finished.length=== 0 ? false :otherList.finished.length">
|
|
|
|
|
|
|
+ <van-tab title="已完成" :badge="otherList.finished.length=== 0 ? '' :otherList.finished.length">
|
|
|
<Empty v-if="!otherList.finished.length"/>
|
|
<Empty v-if="!otherList.finished.length"/>
|
|
|
<div class="list-container" v-else>
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
<van-cell
|
|
@@ -106,7 +106,7 @@
|
|
|
</van-cell>
|
|
</van-cell>
|
|
|
</div>
|
|
</div>
|
|
|
</van-tab>
|
|
</van-tab>
|
|
|
- <van-tab title="已逾期" :badge="otherList.proceed.length=== 0 ? false :otherList.proceed.length">
|
|
|
|
|
|
|
+ <van-tab title="已逾期" :badge="otherList.proceed.length=== 0 ? '' :otherList.proceed.length">
|
|
|
<Empty v-if="!otherList.proceed.length"/>
|
|
<Empty v-if="!otherList.proceed.length"/>
|
|
|
<div class="list-container" v-else>
|
|
<div class="list-container" v-else>
|
|
|
<van-cell
|
|
<van-cell
|
|
@@ -176,6 +176,9 @@ export default {
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.initDatalist();
|
|
this.initDatalist();
|
|
|
},
|
|
},
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ '$route':'initDatalist'
|
|
|
|
|
+ },
|
|
|
computed:{
|
|
computed:{
|
|
|
...mapGetters(['dictionary','orgName','orgId','roleList']),
|
|
...mapGetters(['dictionary','orgName','orgId','roleList']),
|
|
|
// stateList(){
|
|
// stateList(){
|
|
@@ -206,8 +209,8 @@ export default {
|
|
|
switch (state) {
|
|
switch (state) {
|
|
|
case '待履职':
|
|
case '待履职':
|
|
|
return '#008cd6'
|
|
return '#008cd6'
|
|
|
- case '进行中':
|
|
|
|
|
- return '#d9b627'
|
|
|
|
|
|
|
+ case '履职中':
|
|
|
|
|
+ return '#bc9f71'
|
|
|
case '已完成':
|
|
case '已完成':
|
|
|
return '#009240'
|
|
return '#009240'
|
|
|
case '已逾期':
|
|
case '已逾期':
|