From dd82bd909016555a4aca94234407d4028b852d56 Mon Sep 17 00:00:00 2001 From: yxq Date: Mon, 14 Aug 2023 18:21:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?app=20=E5=AD=A6=E7=94=9F=E8=80=83=E5=8B=A4?= =?UTF-8?q?=E6=89=93=E5=8D=A1=20=E6=95=99=E5=B8=88=E8=80=83=E5=8B=A4?= =?UTF-8?q?=E6=89=93=E5=8D=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/AttendanceCard/list.vue | 41 +++++++++--------- .../pages/AttendanceCard/single.vue | 2 +- .../pages/AttendanceCardStudent/list.vue | 43 +++++++++++-------- .../pages/AttendanceCardStudent/single.vue | 2 +- 4 files changed, 47 insertions(+), 41 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue index 24da7cd02..efe9a78ef 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue @@ -150,12 +150,12 @@ // }else { // this.imgsrc=dkred; // } + // 保存原打卡状态 + this.resInfo = { + AttendanceType:this.info.AttendanceType, + AttendanceTypeString:this.info.AttendanceTypeString, + } if (![5].includes(this.info.AttendanceType)) { - // 保存原打卡状态,改为外勤 - this.resInfo = { - AttendanceType:this.info.AttendanceType, - AttendanceTypeString:this.info.AttendanceTypeString, - } this.$set(this.info, 'AttendanceType', 4) this.$set(this.info, 'AttendanceTypeString', '外勤打卡') this.$set(this.postData, 'AIsOut', 1) @@ -287,23 +287,24 @@ width: 100%; background-color: #fff; } - + .content { - width: 48%; + width: 100%; height: 50%; position: absolute; top: 15%; left: 50%; transform: translate(-50%, 10%); + text-align: center; } - + .title { font-size: 14px; text-align: center; color: #333; margin-top: 8px; } - + .rules { display: flex; justify-content: space-between; @@ -311,33 +312,31 @@ padding: 15px; line-height: 24px; } - + .rules>* { width: 49%; background-color: #BDE4FF; padding: 8px; border-radius: 8px 12px; } - + .rules>*>*:first-child { color: #333; } - + #show { text-align: center; height: 200rpx; font-size: 56rpx; } - + .pen { - // height: 48%; + width: 48%; + display: inline-block; border-radius: 50%; background-color: #e7f5ff; - display: flex; - align-items: center; - justify-content: center; } - + .pen2 { width: 91%; height: 91%; @@ -347,7 +346,7 @@ align-items: center; justify-content: center; } - + .pen3 { width: 84%; height: 84%; @@ -360,7 +359,7 @@ justify-content: center; color: #ffff; } - + .footer { width: 100%; position: fixed; @@ -368,7 +367,7 @@ bottom: 0; overflow: hidden; } - + .gray { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/single.vue index 30da66a3a..40da4a491 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/single.vue @@ -130,7 +130,7 @@ console.log(postData) let strEntity = JSON.parse(postData.strEntity) let strEntity_ = {...strEntity,...this.params} - this.HTTP_POST('learun/adms/attendance/clockin', {strEntity:JSON.stringify(strEntity_)}, '打卡失败').then(success => { + this.HTTP_POST('learun/adms/attendance/clockin', JSON.stringify(strEntity_), '打卡失败').then(success => { this.HIDE_LOADING() if (!success) { this.TOAST('打卡失败') diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/list.vue index c056f243e..29dca55a1 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/list.vue @@ -15,7 +15,7 @@ 下课 {{info.EndTime}} - {{info.UserCloseTime?info.UserCloseTime.split(' ')[1]+' 打卡':'未打卡'}} + {{info.UserCloseTime?info.UserCloseTime.split(' ')[1]+' 打卡':'--'}} @@ -25,16 +25,20 @@ - {{resInfo.AttendanceTypeString}} - {{postData.AIsOut== 1 ? ' | ' + info.AttendanceTypeString:''}} + {{postData.AIsOut == 1 ? ' | ' + info.AttendanceTypeString:''}} - {{postData.ClockPlace}} - - {{info.LessonSortNo == 1?'必修:':info.LessonSortNo == 2?'选修:':''}} {{info.LessonName}} + + {{info.Classroom?'教室:'+info.Classroom:''}} + + + {{info.LessonName}} {{info.LessonSortNo == 1?'必修':info.LessonSortNo == 2?'选修':''}} - - 教师:{{info.EmpName}} + + {{info.EmpName?'教师:'+info.EmpName:''}} + + + {{postData.ClockPlace}} @@ -117,6 +121,10 @@ async action(type) { switch (type) { case 'dk': + if (this.info.UserWorkTime) { + this.TOAST('已打卡,不可再次打卡') + return + } if ([5].includes(this.info.AttendanceType)) { return } @@ -161,12 +169,12 @@ // }else { // this.imgsrc=dkred; // } + // 保存原打卡状态 + this.resInfo = { + AttendanceType:this.info.AttendanceType, + AttendanceTypeString:this.info.AttendanceTypeString, + } if (![5].includes(this.info.AttendanceType)) { - // 保存原打卡状态,改为外勤 - this.resInfo = { - AttendanceType:this.info.AttendanceType, - AttendanceTypeString:this.info.AttendanceTypeString, - } this.$set(this.info, 'AttendanceType', 4) this.$set(this.info, 'AttendanceTypeString', '外勤打卡') this.$set(this.postData, 'AIsOut', 1) @@ -304,12 +312,13 @@ } .content { - width: 48%; + width: 100%; height: 50%; position: absolute; top: 15%; left: 50%; transform: translate(-50%, 10%); + text-align: center; } .title { @@ -345,12 +354,10 @@ } .pen { - // height: 48%; + width: 48%; + display: inline-block; border-radius: 50%; background-color: #e7f5ff; - display: flex; - align-items: center; - justify-content: center; } .pen2 { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/single.vue index 49ded7557..be71ea500 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/single.vue @@ -130,7 +130,7 @@ console.log(postData) let strEntity = JSON.parse(postData.strEntity) let strEntity_ = {...strEntity,...this.params} - this.HTTP_POST('learun/adms/attendance/clockinStudent', {strEntity:JSON.stringify(strEntity_)}, '打卡失败').then(success => { + this.HTTP_POST('learun/adms/attendance/clockinStudent', JSON.stringify(strEntity_), '打卡失败').then(success => { this.HIDE_LOADING() if (!success) { this.TOAST('打卡失败') From 75d4a5030aaeabecbe13802c597ffb74f6f4e924 Mon Sep 17 00:00:00 2001 From: yxq Date: Mon, 14 Aug 2023 18:27:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?app=20=E8=80=83=E5=8B=A4=E6=89=93=E5=8D=A1?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LearunApp-2.2.0/pages/AttendanceCard/list.vue | 2 +- .../LearunApp-2.2.0/pages/AttendanceCardStudent/list.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue index efe9a78ef..7224ffb71 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCard/list.vue @@ -334,7 +334,7 @@ width: 48%; display: inline-block; border-radius: 50%; - background-color: #e7f5ff; + // background-color: #e7f5ff; } .pen2 { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/list.vue index 29dca55a1..b2310a099 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AttendanceCardStudent/list.vue @@ -357,7 +357,7 @@ width: 48%; display: inline-block; border-radius: 50%; - background-color: #e7f5ff; + // background-color: #e7f5ff; } .pen2 {