|
|
@@ -2,9 +2,7 @@
|
|
|
<div class="lvzhi" ref="container">
|
|
|
<NavBar :go="{ type: 'push', path: '/menu' }"/>
|
|
|
<div class="lz-container" id="lz-container" @scroll="handleScroll">
|
|
|
- <van-sticky :container="container">
|
|
|
- <DatePicker ref="DatePicker" @change="changeDate"></DatePicker>
|
|
|
- </van-sticky>
|
|
|
+ <DatePicker ref="DatePicker" @change="changeDate"></DatePicker>
|
|
|
<div class="lz-list">
|
|
|
<div class="list-item">
|
|
|
<p>每日履职</p>
|
|
|
@@ -12,86 +10,84 @@
|
|
|
<van-tab title="待完成">
|
|
|
<template #title>待完成 {{dayList.unfinished.length}} </template>
|
|
|
<van-empty description="暂无数据" v-if="!dayList.unfinished.length"/>
|
|
|
- <van-cell-group v-else>
|
|
|
- <van-cell
|
|
|
- v-for="v in dayList.unfinished"
|
|
|
- :key="v.id"
|
|
|
- :title="v.planName"
|
|
|
- :label="formatTime(v.planStartTime,v.planEndTime,'HH:mm')"
|
|
|
- is-link
|
|
|
- :to="{path:path,query:{id:v.id,enable:1,taskDate:date}}"
|
|
|
- :value="getDicts(v.status,'resumption_status')"
|
|
|
- :value-class="`title-orange`"/>
|
|
|
- </van-cell-group>
|
|
|
+ <div class="list-container" v-else>
|
|
|
+ <van-cell
|
|
|
+ v-for="v in dayList.unfinished"
|
|
|
+ :key="v.id"
|
|
|
+ :title="v.planName"
|
|
|
+ :label="formatTime(v.planStartTime,v.planEndTime,'HH:mm')"
|
|
|
+ is-link
|
|
|
+ :to="{path:path,query:{id:v.id,enable:1,taskDate:date}}"
|
|
|
+ :value="getDicts(v.status,'resumption_status')"
|
|
|
+ :value-class="`title-orange`"/>
|
|
|
+ </div>
|
|
|
</van-tab>
|
|
|
<van-tab title="未完成">
|
|
|
<template #title>未完成 {{dayList.proceed.length}} </template>
|
|
|
<van-empty description="暂无数据" v-if="!dayList.proceed.length"/>
|
|
|
- <van-cell-group v-else>
|
|
|
- <van-cell
|
|
|
- v-for="v in dayList.proceed"
|
|
|
- :key="v.id"
|
|
|
- :title="v.planName"
|
|
|
- :label="formatTime(v.planStartTime,v.planEndTime,'HH:mm')"
|
|
|
- :value="getDicts(v.status,'resumption_status')"
|
|
|
- :value-class="`title-red`"/>
|
|
|
- </van-cell-group>
|
|
|
+ <div class="list-container" v-else>
|
|
|
+ <van-cell
|
|
|
+ v-for="v in dayList.proceed"
|
|
|
+ :key="v.id"
|
|
|
+ :title="v.planName"
|
|
|
+ :label="formatTime(v.planStartTime,v.planEndTime,'HH:mm')"
|
|
|
+ :value="getDicts(v.status,'resumption_status')"
|
|
|
+ :value-class="`title-red`"/>
|
|
|
+ </div>
|
|
|
</van-tab>
|
|
|
<van-tab title="已完成">
|
|
|
<template #title>已完成 {{dayList.finished.length}} </template>
|
|
|
<van-empty description="暂无数据" v-if="!dayList.finished.length"/>
|
|
|
- <van-cell-group v-else>
|
|
|
- <van-cell
|
|
|
- v-for="v in dayList.finished"
|
|
|
- :key="v.id"
|
|
|
- :title="v.planName"
|
|
|
- :label="formatTime(v.planStartTime,v.planEndTime,'HH:mm')"
|
|
|
- is-link
|
|
|
- :to="{path:path,query:{id:v.id,taskDate:date}}"
|
|
|
- :value="getDicts(v.status,'resumption_status')"
|
|
|
- :value-class="`title-green`"/>
|
|
|
- </van-cell-group>
|
|
|
+ <div class="list-container" v-else>
|
|
|
+ <van-cell
|
|
|
+ v-for="v in dayList.finished"
|
|
|
+ :key="v.id"
|
|
|
+ :title="v.planName"
|
|
|
+ :label="formatTime(v.planStartTime,v.planEndTime,'HH:mm')"
|
|
|
+ is-link
|
|
|
+ :to="{path:path,query:{id:v.id,taskDate:date}}"
|
|
|
+ :value="getDicts(v.status,'resumption_status')"
|
|
|
+ :value-class="`title-green`"/>
|
|
|
+ </div>
|
|
|
</van-tab>
|
|
|
</van-tabs>
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
<div class="list-item">
|
|
|
<p>周期履职</p>
|
|
|
<van-tabs >
|
|
|
<van-tab title="待完成">
|
|
|
<template #title>待完成 {{otherList.unfinished.length}} </template>
|
|
|
<van-empty description="暂无数据" v-if="!otherList.unfinished.length"/>
|
|
|
- <van-cell-group v-else>
|
|
|
- <van-cell
|
|
|
- v-for="v in otherList.unfinished"
|
|
|
- :key="v.id"
|
|
|
- :title="v.planName"
|
|
|
- :label="formatTime(v.planStartTime,v.planEndTime,'YYYY-MM-DD')"
|
|
|
- is-link
|
|
|
- :to="{path:path,query:{id:v.id,enable:1,taskDate:date}}"
|
|
|
- :value="getDicts(v.status,'resumption_status')"
|
|
|
- :value-class="`title-orange`"/>
|
|
|
- </van-cell-group>
|
|
|
+ <div class="list-container" v-else>
|
|
|
+ <van-cell
|
|
|
+ v-for="v in otherList.unfinished"
|
|
|
+ :key="v.id"
|
|
|
+ :title="v.planName"
|
|
|
+ :label="formatTime(v.planStartTime,v.planEndTime,'YYYY-MM-DD')"
|
|
|
+ is-link
|
|
|
+ :to="{path:path,query:{id:v.id,enable:1,taskDate:date}}"
|
|
|
+ :value="getDicts(v.status,'resumption_status')"
|
|
|
+ :value-class="`title-orange`"/>
|
|
|
+ </div>
|
|
|
</van-tab>
|
|
|
<van-tab title="未完成">
|
|
|
<template #title>未完成 {{otherList.proceed.length}} </template>
|
|
|
<van-empty description="暂无数据" v-if="!otherList.proceed.length"/>
|
|
|
- <van-cell-group v-else>
|
|
|
- <van-cell
|
|
|
- v-for="v in otherList.proceed"
|
|
|
- :key="v.id"
|
|
|
- :title="v.planName"
|
|
|
- :label="formatTime(v.planStartTime,v.planEndTime,'YYYY-MM-DD')"
|
|
|
- :value="getDicts(v.status,'resumption_status')"
|
|
|
- :value-class="`title-red`"/>
|
|
|
- </van-cell-group>
|
|
|
+ <div class="list-container" v-else>
|
|
|
+ <van-cell
|
|
|
+ v-for="v in otherList.proceed"
|
|
|
+ :key="v.id"
|
|
|
+ :title="v.planName"
|
|
|
+ :label="formatTime(v.planStartTime,v.planEndTime,'YYYY-MM-DD')"
|
|
|
+ :value="getDicts(v.status,'resumption_status')"
|
|
|
+ :value-class="`title-red`"/>
|
|
|
+ </div>
|
|
|
</van-tab>
|
|
|
<van-tab title="已完成">
|
|
|
<template #title>已完成 {{otherList.finished.length}} </template>
|
|
|
<van-empty description="暂无数据" v-if="!otherList.finished.length"/>
|
|
|
- <van-cell-group v-else>
|
|
|
- <van-cell
|
|
|
+ <div class="list-container" v-else>
|
|
|
+ <van-cell
|
|
|
v-for="v in otherList.finished"
|
|
|
:key="v.id"
|
|
|
:title="v.planName"
|
|
|
@@ -100,7 +96,7 @@
|
|
|
:to="{path:path,query:{id:v.id,taskDate:date}}"
|
|
|
:value="getDicts(v.status,'resumption_status')"
|
|
|
:value-class="`title-green`"/>
|
|
|
- </van-cell-group>
|
|
|
+ </div>
|
|
|
</van-tab>
|
|
|
</van-tabs>
|
|
|
</div>
|
|
|
@@ -224,8 +220,13 @@ export default {
|
|
|
<style lang="scss">
|
|
|
.lvzhi{
|
|
|
.van-empty{
|
|
|
+ padding: 20px;
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
+ .van-tabs__wrap{
|
|
|
+ height: 90px;
|
|
|
+ border-bottom: 1px solid #f5f5f5;
|
|
|
+ }
|
|
|
.van-cell-group{
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
@@ -253,12 +254,19 @@ export default {
|
|
|
.list-item{
|
|
|
margin: 20px;
|
|
|
>p{
|
|
|
- color:#999;
|
|
|
+ color:#333;
|
|
|
font-size: 30px;
|
|
|
- height: 60px;
|
|
|
- line-height: 60px;
|
|
|
+ height: 90px;
|
|
|
+ line-height: 90px;
|
|
|
+ background-color: #fff;
|
|
|
+ padding-left: 20px;
|
|
|
+ border-bottom: 1px solid #f5f5f5;
|
|
|
}
|
|
|
}
|
|
|
+.list-container{
|
|
|
+ max-height: 500px;
|
|
|
+ overflow: auto;
|
|
|
+}
|
|
|
.title-red{
|
|
|
color: #f16363;
|
|
|
}
|