|
@@ -13,21 +13,20 @@
|
|
|
<view class="lbtab flexc">
|
|
|
<image :src="licoimg" class="limg" @click='getResetFn'></image>
|
|
|
<view class="lbtabs flexc">
|
|
|
- <picker class="pickbox" range-key='dictLabel' :range="adrlist" @change="bindTimeChangea">
|
|
|
+ <!-- <picker class="pickbox" range-key='dictLabel' :range="adrlist" @change="bindTimeChangea">
|
|
|
<view class="pickboxa">
|
|
|
<view class="tit overtwo" >{{deptName||'全部部门'}}</view>
|
|
|
<image :src="wupimg" class="hupimg"></image>
|
|
|
</view>
|
|
|
- </picker>
|
|
|
+ </picker> -->
|
|
|
<picker mode="date" class="pickbox"
|
|
|
@change="bindTimeChangea">
|
|
|
<view class="pickboxa">
|
|
|
- <view class="tit" >{{time||'2024年07月'}}</view>
|
|
|
+ <view class="tit" >{{time||'选择时间'}}</view>
|
|
|
<image :src="wupimg" class="hupimg"></image>
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
- <!-- <view class="czbtns">重置</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -113,10 +112,21 @@
|
|
|
this.reachflag=true;
|
|
|
this.getDataFn()
|
|
|
},
|
|
|
+ getResetFn(){
|
|
|
+ this.time='';
|
|
|
+ this.title='';
|
|
|
+ this.getConfirm()
|
|
|
+ },
|
|
|
getBack() {
|
|
|
uni.navigateBack({
|
|
|
delta: 1
|
|
|
})
|
|
|
+ },
|
|
|
+ gettypeFn(){
|
|
|
+
|
|
|
+ },
|
|
|
+ getDelFn(){
|
|
|
+
|
|
|
},
|
|
|
getDetail(ite){
|
|
|
var obj={
|
|
@@ -127,7 +137,8 @@
|
|
|
},
|
|
|
bindTimeChangea(e){
|
|
|
var val=e.detail.value;
|
|
|
- this.day=val
|
|
|
+ this.time=val
|
|
|
+ this.getConfirm()
|
|
|
},
|
|
|
getHeightFn() {
|
|
|
let query = uni.createSelectorQuery().in(this);
|
|
@@ -164,9 +175,15 @@
|
|
|
pageSize: this.pageSize,
|
|
|
pageNum: this.pageNum,
|
|
|
}
|
|
|
- if(!checkRole(['manager'])){
|
|
|
+ if(!checkRole(['administrators'])){
|
|
|
params.userId=this.userId
|
|
|
}
|
|
|
+ if(this.time){
|
|
|
+ params.recordTime=this.time
|
|
|
+ }
|
|
|
+ if(this.title){
|
|
|
+ params.userName=this.title
|
|
|
+ }
|
|
|
getClockList(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
if (res.rows.length < this.pageSize) {
|
|
@@ -210,12 +227,12 @@
|
|
|
.search{padding: 0 52rpx;box-sizing: border-box;
|
|
|
width: 100%;height: 76rpx;background: rgba(40, 139, 214, 0.5);border-radius: 38rpx;
|
|
|
image{width: 24rpx;height: 24rpx;margin-right: 22rpx;flex: 0 0 auto;}
|
|
|
- input{flex: 1;font-weight: 500;font-size: 22rpx;color: #131313;}
|
|
|
+ input{flex: 1;font-weight: 500;font-size: 22rpx;color: #FFFFFF;}
|
|
|
}
|
|
|
.lbtab{padding: 0 56rpx;
|
|
|
.limg{width: 24rpx;height: 24rpx;margin-right: 16rpx;flex:0 0 auto;}
|
|
|
.lbtabs{overflow: auto;flex-wrap: nowrap;flex:1;
|
|
|
- .pickbox{flex: 1;text-align: right;font-weight: 500;font-size: 28rpx;color: #161616;min-height:88rpx;margin: 0 10rpx;
|
|
|
+ .pickbox{text-align: right;font-weight: 500;font-size: 28rpx;color: #161616;min-height:88rpx;margin: 0 10rpx;
|
|
|
.pickboxa{justify-content: center;
|
|
|
min-height: 88rpx;display: flex;align-items: center;
|
|
|
}
|