diff --git a/manifest.json b/manifest.json index 05bce13..f959987 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "曲阳金隅EHS", "appid" : "__UNI__B00D419", "description" : "曲阳金隅EHS", - "versionName" : "1.01.25", - "versionCode" : 101025, + "versionName" : "1.01.27", + "versionCode" : 101027, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/comm/userSelect/index.vue b/pages/comm/userSelect/index.vue index 4c76702..bb0fbd6 100644 --- a/pages/comm/userSelect/index.vue +++ b/pages/comm/userSelect/index.vue @@ -90,7 +90,7 @@ export default { let showDepts = []; let params = { page: 0, - belong_dept: dept.id, + depts: dept.id, is_active: true, query: '{id, name, belong_dept}' }; diff --git a/pages/my/clock_in.vue b/pages/my/clock_in.vue index b256223..dcefa32 100644 --- a/pages/my/clock_in.vue +++ b/pages/my/clock_in.vue @@ -16,10 +16,21 @@ - 触发模式:{{val.detail.openTypeStr}} - 打卡类型:上班打卡下班打卡 - 其他信息:{{val.detail.deviceName}} + + 触发设备: + {{trigger_[val.trigger]}} + + 触发地点:{{val.detail.deviceName}} 打卡时间:{{val.create_time}} + 考勤推测: + 上班打卡 + 下班打卡 + - + 在岗时间短 + 在岗时间长 + 缺卡 + 加班 + @@ -35,11 +46,16 @@ return { params: { employee: '', - pageSize: 10, - pageNum: 1, + page_size: 10, + page: 1, month: '', year:'' }, + trigger_:{ + "door": "门禁", + "location": "定位", + "panel":"面板机" + }, totalNum: 0, activeIndex:true,//本月 lists: [], @@ -50,10 +66,10 @@ }, //上拉加载 onReachBottom() { - const totalPage = Math.ceil(this.totalNum / this.params.pageSize); - if (this.params.pageNum < totalPage) { - this.params.pageNum += 1; - + const totalPage = Math.ceil(this.totalNum / this.params.page_size); + if (this.params.page < totalPage) { + this.params.page += 1; + this.getLists(); } else { uni.showToast({ title: "已全部加载", @@ -82,7 +98,7 @@ }, //下拉刷新 onPullDownRefresh() { - this.params.pageNum = 1; + this.params.page = 1; this.lists = []; this.getLists(); }, @@ -98,7 +114,7 @@ }else{ that.activeIndex=false; } - that.params.pageNum = 1; + that.params.page = 1; that.lists = []; that.getLists(); }, @@ -114,7 +130,7 @@ that.activeIndex = index; that.params.month = that.currentMonth; that.params.year = that.currentYear; - that.params.pageNum = 1; + that.params.page = 1; that.lists = []; that.getLists(); }, @@ -180,5 +196,44 @@ line-height: 40rpx; color: #5b5b5b; } - + .nomalState { + font-size: 12px; + padding: 0 9px; + height: 24px; + line-height: 23px; + border-radius: 5px; + vertical-align: top; + display: inline-block; + + } + .nomalState.type1{ + color: #F8DD4E; + background-color: #f9f7e6; + border: 1px solid #f3f0d5; + } + .nomalState.type2{ + color: #FF0000; + background-color: #f7e7e7; + border: 1px solid #fbe0e0; + } + .nomalState.type3{ + color: #FA8435; + background-color: #fef6ed; + border: 1px solid #fde9cc; + } + .nomalState.type4{ + color: #44CEF6; + background-color: #f0f9fb; + border: 1px solid #d2f9ff; + } + .nomalState.type01{ + color: #536dfe; + background-color: #edf0fe; + border: 1px solid #dce1fe; + } + .nomalState.type02{ + color: #67c23a; + background-color: #f0f9eb; + border: 1px solid #e1f3d8; + }