| | |
| | | @getUserPositionStatus="getUserPositionStatus" |
| | | @getMapStatus="(evt) => mapStatus = evt" |
| | | @getDistance="getDistance" |
| | | @getPosition="getUserPosition" |
| | | /> |
| | | </div> |
| | | <div class="center-sign"> |
| | |
| | | }, |
| | | clickCount: 0, |
| | | personType: 0, |
| | | limitDistanceFlag: false |
| | | limitDistanceFlag: false, |
| | | userPosition: {} |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | created() { |
| | | const type = localStorage.getItem('_personType') |
| | | this.personType = Number(type) |
| | | this.personType = 0 |
| | | if (this.personType == 2) { |
| | | this.limitDistanceFlag = true |
| | | this.getVerifyAddress() |
| | |
| | | this.currentTimeText = this.$dayjs().format('HH:mm') |
| | | }, |
| | | methods: { |
| | | getUserPosition(evt) { |
| | | this.userPosition = evt |
| | | }, |
| | | getVerifyAddress() { |
| | | const params = { applicationId: this.appId } |
| | | this.$axios.get('/exam/verify-record/get-by-application-id', { params }).then(res => { |
| | |
| | | targetId: this.appId, |
| | | targetType: this.personType, |
| | | url: this.url, |
| | | type: this.url ? 0 : 2 |
| | | type: this.url ? 0 : 2, |
| | | details: JSON.stringify(this.userPosition) |
| | | } |
| | | this.confirmLoading = true |
| | | this.$axios.post('/exam/staff/checkin', data).then(res => { |