|
@@ -1,13 +1,11 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <!-- <d-rili></d-rili> -->
|
|
|
- <calendar showDot='true' :extraData='extraData' bgColor='#22C572' @monthTap='monthTap'></calendar>
|
|
|
<view class="uni-container">
|
|
|
- <!-- <view class="top">
|
|
|
+ <view class="top">
|
|
|
<view class="center">月份</view>
|
|
|
<view @click='show=true'>{{createDate}}</view>
|
|
|
<u-picker v-model="show" mode="time" @confirm='dateChange($event)' :params="params"></u-picker>
|
|
|
- </view> -->
|
|
|
+ </view>
|
|
|
<uni-table border stripe emptyText="暂无更多数据">
|
|
|
<!-- 表头行 -->
|
|
|
<uni-tr>
|
|
@@ -21,8 +19,9 @@
|
|
|
<uni-td align="center">
|
|
|
<view class="toClockDate" v-if="item.toClockDate">{{ item.toClockDate.split(" ")[1] }}</view>
|
|
|
<view class="toClockDate" v-else-if="!item.toClockDate">
|
|
|
- <button v-if='item.approveStatus ==null && item.status == null' @click='supp(item)' class="uni-button" size="mini"
|
|
|
- type="primary" align="center" style="height: 30px;">补卡</button>
|
|
|
+ <button v-if='item.approveStatus ==null && item.status == null' @click='supp(item)'
|
|
|
+ class="uni-button" size="mini" type="primary" align="center"
|
|
|
+ style="height: 30px;">补卡</button>
|
|
|
<button v-if='item.approveStatus=="待人事审核"' class='listitemStatus audit Regular' size="mini"
|
|
|
type="primary" align="center" style="height: 30px;">审核中</button>
|
|
|
<button v-if='item.status=="补卡失败"' class='listitemStatus notPass Regular' size="mini"
|
|
@@ -34,8 +33,9 @@
|
|
|
<uni-td align="center">
|
|
|
<view class="offClockDate" v-if="item.offClockDate">{{ item.offClockDate.split(" ")[1] }}</view>
|
|
|
<view class="offClockDate" v-else-if="!item.offClockDate">
|
|
|
- <button v-if='item.approveStatus ==null && item.status == null' @click='supp(item)' class="uni-button" size="mini"
|
|
|
- type="primary" align="center" style="height: 30px;">补卡</button>
|
|
|
+ <button v-if='item.approveStatus ==null && item.status == null' @click='supp(item)'
|
|
|
+ class="uni-button" size="mini" type="primary" align="center"
|
|
|
+ style="height: 30px;">补卡</button>
|
|
|
<button v-if='item.approveStatus=="待人事审核"' class='listitemStatus audit Regular' size="mini"
|
|
|
type="primary" align="center" style="height: 30px;">审核中</button>
|
|
|
<button v-if='item.status=="补卡失败"' class='listitemStatus notPass Regular' size="mini"
|
|
@@ -51,16 +51,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import dRili from '@/components/d-rili/d-rili.vue';
|
|
|
- import calendar from '@/components/tale-calendar/calendar.vue';
|
|
|
export default {
|
|
|
- components:{
|
|
|
- dRili,
|
|
|
- calendar
|
|
|
- },
|
|
|
data() {
|
|
|
return {
|
|
|
- extraData:[{date: '2022-10-10', value: '签到', dot: true, active: true}],
|
|
|
isSHowBtn: true,
|
|
|
show: false,
|
|
|
tableData: [],
|
|
@@ -71,8 +64,8 @@
|
|
|
month: true
|
|
|
},
|
|
|
isLoadMore: false,
|
|
|
- createDate:'',
|
|
|
- createDate1:'',
|
|
|
+ createDate: '',
|
|
|
+ createDate1: '',
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -91,7 +84,6 @@
|
|
|
this.createDate = _day.getFullYear() + "." + (_day.getMonth() + 1);
|
|
|
this.createDate1 = _day.getFullYear() + "-" + (_day.getMonth() + 1);
|
|
|
},
|
|
|
-
|
|
|
onReachBottom() { //上拉触底函数
|
|
|
if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
|
|
|
this.currentPage += 1
|
|
@@ -99,10 +91,6 @@
|
|
|
this.getData()
|
|
|
},
|
|
|
methods: {
|
|
|
- monthTap(e){
|
|
|
- this.createDate1 = e.year + "-" + e.month
|
|
|
- console.log(e)
|
|
|
- },
|
|
|
dateChange(e) {
|
|
|
console.log(e)
|
|
|
this.createDate = e.year + "." + e.month
|