修复:无法打卡

master
masong 2 years ago
parent ad5ed76097
commit 679a39c393
  1. 2
      subPackWork/electronicPatrol/patrolTrack.vue
  2. 9
      subPackWork/electronicPatrol/taskDetails.vue

@ -9,7 +9,7 @@
<text class="detail-status small-font" :class="pointDetail.checkDate != ''?'detail-status-on':'detail-status'">{{ pointDetail.checkDate != '' ? '已打卡' : '未打卡' }}</text>
</view>
<view class="detail-box">
<view>开始时间{{ pointDetail.patrolDate }}</view>
<!-- <view>开始时间{{ pointDetail.patrolDate }}</view> -->
<view>打开时间{{ pointDetail.checkDate }}</view>
<view>打卡方式{{ pointDetail.checkInWay }}</view>
</view>

@ -43,6 +43,7 @@
<script>
import {getPatrollingTaskDetail,patrollingClock} from '@/api/word/electronicPatrol.js';
import { formatDate } from '../../pages/work/util/date';
export default {
data() {
return {
@ -54,7 +55,8 @@ export default {
startDate: '08:20',
completeness: '100.0%',
taskState: '未完成',
list: [ ]
list: [ ],
nowDate: '',
}
};
},
@ -63,7 +65,8 @@ export default {
let patrolDate = option.patrolDate;
this.taskId = id;
this.patrolDate = patrolDate;
let now = new Date();
console.log(formatDate(now))
this.getPatrollingTaskDetail();
},
methods:{
@ -108,7 +111,7 @@ export default {
},
//
patrollingClock(id){
patrollingClock(val){
let _that =this;
uni.getLocation({
type: 'gcj02',

Loading…
Cancel
Save