|
@@ -160,8 +160,8 @@
|
|
that.detailData.clockDistance = that.clockDistance.replace("m","")
|
|
that.detailData.clockDistance = that.clockDistance.replace("m","")
|
|
}
|
|
}
|
|
console.log(that.detailData)
|
|
console.log(that.detailData)
|
|
- // if(that.detailData.clockDistance > 1500){
|
|
|
|
- // that.$api.msg('请在目标位置1.5km范围内进行打卡')
|
|
|
|
|
|
+ // if(that.detailData.clockDistance > 2000){
|
|
|
|
+ // that.$api.msg('请在目标位置2km范围内进行打卡')
|
|
// return
|
|
// return
|
|
// }else{
|
|
// }else{
|
|
that.$api.doRequest('post', '/clockInfo/api/addClock', that.detailData)
|
|
that.$api.doRequest('post', '/clockInfo/api/addClock', that.detailData)
|
|
@@ -169,7 +169,10 @@
|
|
console.log(res.data)
|
|
console.log(res.data)
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
that.$api.msg('提交成功')
|
|
that.$api.msg('提交成功')
|
|
- } else {
|
|
|
|
|
|
+ } else if(res.data.message == '上班时间未打卡'){
|
|
|
|
+ that.$api.msg(res.data.message)
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
that.$api.msg('提交失败')
|
|
that.$api.msg('提交失败')
|
|
}
|
|
}
|
|
})
|
|
})
|