|
|
@@ -63,8 +63,8 @@
|
|
|
import config from '@/config.js';
|
|
|
import {
|
|
|
createAttendance,
|
|
|
- TranAddress,
|
|
|
- CheckAttendance
|
|
|
+ tranAddress,
|
|
|
+ checkAttendance
|
|
|
} from '@/api/mine.js'
|
|
|
const userStore = useUserStore();
|
|
|
const thisUser = userStore.user;
|
|
|
@@ -106,7 +106,7 @@
|
|
|
universalid: thisUser.useId,
|
|
|
rizi: currentDate.value
|
|
|
}
|
|
|
- CheckAttendance(params).then(res => {
|
|
|
+ checkAttendance(params).then(res => {
|
|
|
if ("success" == res.returnMsg) {
|
|
|
// console.log("kaoqin",res);
|
|
|
const attList = res.returnParams.list;
|
|
|
@@ -249,13 +249,13 @@
|
|
|
// 获取当前位置地址
|
|
|
function getAddress() {
|
|
|
getlocation(); // 获取当前位置
|
|
|
- tranAddress(); // 执行地址转换
|
|
|
+ tranLocationToAddress(); // 执行地址转换
|
|
|
}
|
|
|
|
|
|
// 经纬度转地址
|
|
|
- function tranAddress() {
|
|
|
+ function tranLocationToAddress() {
|
|
|
let locationStr = latitude.value + ',' + longitude.value; // 组合经纬度
|
|
|
- TranAddress(locationStr).then(res => {
|
|
|
+ tranAddress(locationStr).then(res => {
|
|
|
console.log('请求成功', res);
|
|
|
address.value = res.result.address; // 保存地址
|
|
|
})
|