修改打卡间隔时间
This commit is contained in:
26
src/App.vue
26
src/App.vue
@ -1,14 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<router-view v-slot="{ Component }">
|
<router-view v-slot="{ Component }">
|
||||||
<Component :is="Component"></Component>
|
<Component :is="Component"></Component>
|
||||||
<van-popup
|
<van-popup v-model:show="showAlert" closeable :close-on-click-overlay="false" close-icon-position="top-right"
|
||||||
v-model:show="showAlert"
|
position="bottom" @close="closePopup">
|
||||||
closeable
|
|
||||||
:close-on-click-overlay="false"
|
|
||||||
close-icon-position="top-right"
|
|
||||||
position="bottom"
|
|
||||||
@close="closePopup"
|
|
||||||
>
|
|
||||||
<div class="alert-content">
|
<div class="alert-content">
|
||||||
<div class="alert-cnt">
|
<div class="alert-cnt">
|
||||||
<van-icon name="warning-o" color="orange"></van-icon> {{ message }}
|
<van-icon name="warning-o" color="orange"></van-icon> {{ message }}
|
||||||
@ -30,17 +24,10 @@ import watermark from "./utils/watermark.js";
|
|||||||
import emitter from "./utils/eventBus.js";
|
import emitter from "./utils/eventBus.js";
|
||||||
import { onMounted, onUnmounted, ref, watch, reactive } from "vue";
|
import { onMounted, onUnmounted, ref, watch, reactive } from "vue";
|
||||||
import { getMyTaskList, getMyTaskTotal } from "./api/rwzx.js";
|
import { getMyTaskList, getMyTaskTotal } from "./api/rwzx.js";
|
||||||
import { updateDate } from "./api/checkponit.js";
|
|
||||||
import { getDistance, hintToast, timeValidate } from "./utils/tools";
|
import { getDistance, hintToast, timeValidate } from "./utils/tools";
|
||||||
import { getAPPLocation } from "./api/spsApi";
|
|
||||||
import { qcckPost, qcckGet } from "@/api/qcckApi";
|
import { qcckPost, qcckGet } from "@/api/qcckApi";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import router from "./router/index.js";
|
|
||||||
import store from "./store";
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
let userLocation = null; //用户位置信息
|
|
||||||
const keepAlive = ref(false);
|
|
||||||
const routerName = ref(""); //要跳转的路由名称
|
|
||||||
const bbTime = ref(null); //查询报备定时函数
|
const bbTime = ref(null); //查询报备定时函数
|
||||||
let userInfo;
|
let userInfo;
|
||||||
let message = ref("版本已经更新,请退出重新登录!");
|
let message = ref("版本已经更新,请退出重新登录!");
|
||||||
@ -86,10 +73,10 @@ watch(
|
|||||||
);
|
);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getLocation(); //获取经纬度
|
// getLocation(); //获取经纬度
|
||||||
setInterval(() => {
|
// setInterval(() => {
|
||||||
getLocation(); //获取经纬度
|
// getLocation(); //获取经纬度
|
||||||
}, 10000);
|
// }, 10000);
|
||||||
//默认设置用户主题色
|
//默认设置用户主题色
|
||||||
if (!getStorage("themeSetting")) {
|
if (!getStorage("themeSetting")) {
|
||||||
setStorage("themeSetting", "light");
|
setStorage("themeSetting", "light");
|
||||||
@ -464,6 +451,7 @@ body {
|
|||||||
.sticky_box {
|
.sticky_box {
|
||||||
@include bg_color($background-color-theme);
|
@include bg_color($background-color-theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
.amap-icon img {
|
.amap-icon img {
|
||||||
width: 25px;
|
width: 25px;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
|
|||||||
@ -9,28 +9,20 @@
|
|||||||
<div v-if="item?.dkKsSj" class="time">
|
<div v-if="item?.dkKsSj" class="time">
|
||||||
打卡时间:<text>{{ handleTime(item?.dkKsSj) }}</text>
|
打卡时间:<text>{{ handleTime(item?.dkKsSj) }}</text>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="item?.imgUrlDkKsFj" class="image">
|
<div v-if="item?.imgUrlDkKsFj" class="image">
|
||||||
<van-image
|
<van-image width="80px" height="90px" :src="item?.imgUrlDkKsFj" @click="onClickImg(item?.imgUrlDkKsFj)"
|
||||||
width="80px"
|
style="flex: 1">
|
||||||
height="90px"
|
|
||||||
:src="item?.imgUrlDkKsFj"
|
|
||||||
@click="onClickImg(item?.imgUrlDkKsFj)"
|
|
||||||
style="flex: 1"
|
|
||||||
>
|
|
||||||
<template v-slot:loading>
|
<template v-slot:loading>
|
||||||
<van-loading type="spinner" size="20" />
|
<van-loading type="spinner" size="20" />
|
||||||
</template>
|
</template>
|
||||||
</van-image>
|
</van-image>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="address">-->
|
<!-- <div class="address">-->
|
||||||
<!-- <van-icon name="location-o" color="#1DB1FF" />-->
|
<!-- <van-icon name="location-o" color="#1DB1FF" />-->
|
||||||
<!-- <div class="name">四川省成都市</div>-->
|
<!-- <div class="name">四川省成都市</div>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div :class="['item', { disabled: !item?.dkJsSj }]">
|
<div :class="['item', { disabled: !item?.dkJsSj }]">
|
||||||
<div class="point"></div>
|
<div class="point"></div>
|
||||||
<div class="info-right">
|
<div class="info-right">
|
||||||
@ -38,21 +30,14 @@
|
|||||||
<div v-if="item?.dkJsSj" class="time">
|
<div v-if="item?.dkJsSj" class="time">
|
||||||
打卡时间:<text>{{ handleTime(item?.dkJsSj) }}</text>
|
打卡时间:<text>{{ handleTime(item?.dkJsSj) }}</text>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="item?.imgUrlDkJsFj" class="image">
|
<div v-if="item?.imgUrlDkJsFj" class="image">
|
||||||
<van-image
|
<van-image width="80px" height="95px" :src="item?.imgUrlDkJsFj" @click="onClickImg(item?.imgUrlDkJsFj)"
|
||||||
width="80px"
|
style="flex: 1">
|
||||||
height="95px"
|
|
||||||
:src="item?.imgUrlDkJsFj"
|
|
||||||
@click="onClickImg(item?.imgUrlDkJsFj)"
|
|
||||||
style="flex: 1"
|
|
||||||
>
|
|
||||||
<template v-slot:loading>
|
<template v-slot:loading>
|
||||||
<van-loading type="spinner" size="20" />
|
<van-loading type="spinner" size="20" />
|
||||||
</template>
|
</template>
|
||||||
</van-image>
|
</van-image>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="address">-->
|
<!-- <div class="address">-->
|
||||||
<!-- <van-icon name="location-o" color="#1DB1FF" />-->
|
<!-- <van-icon name="location-o" color="#1DB1FF" />-->
|
||||||
<!-- <div class="name">四川省成都市</div>-->
|
<!-- <div class="name">四川省成都市</div>-->
|
||||||
@ -118,6 +103,7 @@ const handleTime = (time) => {
|
|||||||
margin-left: 5.33vw;
|
margin-left: 5.33vw;
|
||||||
font-family: PingFang HK, PingFang HK;
|
font-family: PingFang HK, PingFang HK;
|
||||||
margin-top: -1.33vw;
|
margin-top: -1.33vw;
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 3.73vw;
|
font-size: 3.73vw;
|
||||||
|
|||||||
@ -437,7 +437,6 @@ onMounted(() => {
|
|||||||
<van-tab :title="item.bddMc" />
|
<van-tab :title="item.bddMc" />
|
||||||
</template>
|
</template>
|
||||||
</van-tabs>
|
</van-tabs>
|
||||||
|
|
||||||
<div class="clockInList">
|
<div class="clockInList">
|
||||||
<template v-for="(item, index) in data.info" :key="index">
|
<template v-for="(item, index) in data.info" :key="index">
|
||||||
<div :class="['clockInList_item', { active: nextStep === index }]" @click="handleNext(index)">
|
<div :class="['clockInList_item', { active: nextStep === index }]" @click="handleNext(index)">
|
||||||
@ -459,7 +458,6 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="upload_box">
|
<div class="upload_box">
|
||||||
<div class="image_box" v-if="baseUrl">
|
<div class="image_box" v-if="baseUrl">
|
||||||
<van-icon name="close" class="close_icon" @click="clearImage" color="#000" size="24px" />
|
<van-icon name="close" class="close_icon" @click="clearImage" color="#000" size="24px" />
|
||||||
@ -479,7 +477,6 @@ onMounted(() => {
|
|||||||
<span style="color: red">*</span>须拍摄实景图才可进行打卡
|
<span style="color: red">*</span>须拍摄实景图才可进行打卡
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clockWrapper">
|
<div class="clockWrapper">
|
||||||
<div v-if="!infoData?.dkJsSj || !infoData?.dkKsSj" class="circleWrapper" :class="{
|
<div v-if="!infoData?.dkJsSj || !infoData?.dkKsSj" class="circleWrapper" :class="{
|
||||||
disabled: (!isExpired && expirationTime) || infoData?.dkJsSj,
|
disabled: (!isExpired && expirationTime) || infoData?.dkJsSj,
|
||||||
@ -700,6 +697,7 @@ onMounted(() => {
|
|||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-tab--active {
|
.van-tab--active {
|
||||||
background: rgba(62, 110, 232, 0.2);
|
background: rgba(62, 110, 232, 0.2);
|
||||||
border: 0.27vw solid #3e6ee8;
|
border: 0.27vw solid #3e6ee8;
|
||||||
|
|||||||
@ -58,10 +58,8 @@ const getFetchTbZdxlFgdwId = async (id) => {
|
|||||||
const position = [[Number(x1),Number(y1)],[Number(x2),Number(y2)]]
|
const position = [[Number(x1),Number(y1)],[Number(x2),Number(y2)]]
|
||||||
const text = mc
|
const text = mc
|
||||||
const obj = [{ position: position, text, id, userData: res }]
|
const obj = [{ position: position, text, id, userData: res }]
|
||||||
|
|
||||||
emitter.emit("echoPlane", { fontColor:'#12fdb8',coords: obj, type:'rectangle', flag:'addfg', color:'rgba(2,20,51,0.5)', linecolor:'#1C97FF'})
|
emitter.emit("echoPlane", { fontColor:'#12fdb8',coords: obj, type:'rectangle', flag:'addfg', color:'rgba(2,20,51,0.5)', linecolor:'#1C97FF'})
|
||||||
emitter.emit("setMapCenter", { location: centerPoint, zoomLevel: 14 });
|
emitter.emit("setMapCenter", { location: centerPoint, zoomLevel: 14 });
|
||||||
|
|
||||||
emitter.emit("addPointArea", {
|
emitter.emit("addPointArea", {
|
||||||
coords: [{ jd: formData.value?.jd, wd: formData.value?.wd }],
|
coords: [{ jd: formData.value?.jd, wd: formData.value?.wd }],
|
||||||
coordinates: [formData.value?.jd, formData.value?.wd],
|
coordinates: [formData.value?.jd, formData.value?.wd],
|
||||||
|
|||||||
Reference in New Issue
Block a user