修改签到打卡
This commit is contained in:
@@ -3,41 +3,30 @@ import request from "@/utils/request";
|
|||||||
//新增地图开始签到接口
|
//新增地图开始签到接口
|
||||||
export function addStartMap(data) {
|
export function addStartMap(data) {
|
||||||
return request.post({
|
return request.post({
|
||||||
url: "/crm/app/appVisistMap/Startadd",
|
url: "/crm/jys/app/appVisistMap/Startadd",
|
||||||
data,
|
data,
|
||||||
},{
|
},{
|
||||||
isTransformResponse:false
|
isTransformResponse:false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// //出差打卡接口
|
//出差打卡接口
|
||||||
// export function businessTripClockIn(data) {
|
export function businessTripClockIn(data) {
|
||||||
// return request.post({
|
return request.post({
|
||||||
// url: '/crm/app/appVisistMap/businessTripClockIn',
|
url: '/crm/jys/app/appVisistMap/businessTripClockIn',
|
||||||
// data
|
data
|
||||||
// },{isTransformResponse:false});
|
},{isTransformResponse:false});
|
||||||
// }
|
}
|
||||||
|
|
||||||
// //新增地图开始打卡接口
|
|
||||||
// export function addStartMapForClockIn(data) {
|
|
||||||
// return request.post({
|
|
||||||
// url: "/crm/app/appVisistMap/StartaddForClockIn",
|
|
||||||
// data,
|
|
||||||
// },{
|
|
||||||
// isTransformResponse:false
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
//出差打卡接口
|
|
||||||
export function businessTripClockIn(data) {
|
|
||||||
return request('/app/appVisistMap/businessTripClockIn', data, 'POST', 'application/json;charset=UTF-8');
|
|
||||||
}
|
|
||||||
|
|
||||||
//新增地图开始打卡接口
|
|
||||||
export function addStartMapForClockIn(data) {
|
|
||||||
return request('/app/appVisistMap/StartaddForClockIn', data, 'POST', 'application/json;charset=UTF-8');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
//新增地图开始打卡接口
|
||||||
|
export function addStartMapForClockIn(data) {
|
||||||
|
return request.post({
|
||||||
|
url: "/crm/jys/app/appVisistMap/StartaddForClockIn",
|
||||||
|
data,
|
||||||
|
},{
|
||||||
|
isTransformResponse:false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
//打卡信息查看
|
//打卡信息查看
|
||||||
export function CheckInInformationViewing(data) {
|
export function CheckInInformationViewing(data) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="con-body">
|
<view class="con-body">
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="pub-add-box1" @click="addInsertMapForSignIn">
|
<view class="pub-add-box1" @click="addInsertMapForSignIn">
|
||||||
<view style="color: aliceblue; font-size: 22px;">签到</view>
|
<view style="color: aliceblue; font-size: 22px;">签到</view>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="modal-footer">
|
<view class="modal-footer">
|
||||||
<view class="btn-group">
|
<view class="btn-group">
|
||||||
<button class="cancel-btn" @click="businessTripClockIn">出差</button>
|
<button class="cancel-btn" @click="setBusinessTripClockIn">出差</button>
|
||||||
<button class="confirm-btn" @click="confirmClockIn">未出差</button>
|
<button class="confirm-btn" @click="confirmClockIn">未出差</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -32,7 +32,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { addStartMapForClockIn, businessTripClockIn } from '@/api/crm/activity/map.js';
|
import {addStartMapForClockIn, businessTripClockIn} from '../../../../api/crm/activity/map';
|
||||||
|
import {MapApiConfig} from "../../../../constants/mapApiConstants";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -97,11 +98,9 @@ export default {
|
|||||||
},
|
},
|
||||||
//签到
|
//签到
|
||||||
addInsertMapForSignIn() {
|
addInsertMapForSignIn() {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: './addRearkSignIn'
|
url: './addRearkSignIn'
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
//打卡
|
//打卡
|
||||||
addInsertMapClockIn() {
|
addInsertMapClockIn() {
|
||||||
@@ -154,7 +153,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 出差打卡
|
// 出差打卡
|
||||||
businessTripClockIn() {
|
setBusinessTripClockIn() {
|
||||||
const that = this;
|
const that = this;
|
||||||
businessTripClockIn(this.clockInData).then(res => {
|
businessTripClockIn(this.clockInData).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
@@ -214,7 +213,7 @@ export default {
|
|||||||
inverseGeocoding(latiude, longitude) {
|
inverseGeocoding(latiude, longitude) {
|
||||||
var that = this;
|
var that = this;
|
||||||
let points = longitude + ',' + latiude
|
let points = longitude + ',' + latiude
|
||||||
const apiURL = 'https://tiles.geovisearth.com/geo/v1/geocode/regeo';
|
const apiURL = MapApiConfig.URL;
|
||||||
const params = {
|
const params = {
|
||||||
lat: latiude,
|
lat: latiude,
|
||||||
lng: longitude,
|
lng: longitude,
|
||||||
@@ -222,7 +221,7 @@ export default {
|
|||||||
pageSize: 1,
|
pageSize: 1,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
};
|
};
|
||||||
const token = '66c87c897f0251295afdc794e4fbf73046a070338a726fe04f06cece6cb1ffdf';
|
const token = MapApiConfig.token;
|
||||||
uni.request({
|
uni.request({
|
||||||
url: apiURL,
|
url: apiURL,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
|||||||
Reference in New Issue
Block a user