首页调度
This commit is contained in:
parent
90ae6ce4ea
commit
f184dc4a34
@ -37,8 +37,8 @@
|
||||
</div>
|
||||
<div style="margin-top:15px;display:flex;justify-content:space-between;">
|
||||
<label class="divBtnBlue" @click="openBikeInfo">车辆详情</label>
|
||||
<label v-show="data.rightlx=='dd'" class="divBtnBlue" style="margin-left: 10px;" @click="openBikeInfo">开锁</label>
|
||||
<label v-show="data.rightlx=='dd'" class="divBtnBlue" style="margin-left: 10px;" @click="openBikeInfo">关锁</label>
|
||||
<label v-show="data.rightlx=='dd'" class="divBtnBlue" style="margin-left: 10px;" @click="checkecu('unlock')">开锁</label>
|
||||
<label v-show="data.rightlx=='dd'" class="divBtnBlue" style="margin-left: 10px;" @click="checkecu('lock')">关锁</label>
|
||||
<label v-show="data.rightlx=='dd'" class="divBtnBlue" style="margin-left: 10px;" @click="openBikeInfo">调度</label>
|
||||
<label v-show="data.rightlx=='hd'" class="divBtnBlue" style="margin-left: 10px;" @click="changeBattery">换电</label>
|
||||
|
||||
|
||||
@ -746,7 +746,8 @@
|
||||
}
|
||||
dataBikeInfo.value={};
|
||||
polylines.value=[];
|
||||
showMarker();
|
||||
const countData=showMarker();
|
||||
showCountData(countData);
|
||||
}
|
||||
|
||||
//关闭电量信息
|
||||
@ -857,7 +858,7 @@
|
||||
minLng = region.southwest.longitude;
|
||||
maxLng = region.northeast.longitude;
|
||||
const l=Math.floor((Date.now()-loadeTime)/1000);
|
||||
if(l>=1){
|
||||
if(l>=2){
|
||||
showMarker();
|
||||
}
|
||||
|
||||
@ -940,7 +941,6 @@
|
||||
let icnt_2 = 0;
|
||||
let showCount=0;
|
||||
let arrPoints=[];
|
||||
let ordercnt=0;
|
||||
arrMakers.map((item,index) => {
|
||||
const {
|
||||
bikeId,
|
||||
@ -950,10 +950,10 @@
|
||||
inParking,
|
||||
intervalTime
|
||||
} = item;
|
||||
if(inOperation) {
|
||||
if(!inOperation) {
|
||||
icnt_1++;
|
||||
}
|
||||
else if(inParking) {
|
||||
else if(!inParking) {
|
||||
icnt_2++;
|
||||
}
|
||||
else{
|
||||
@ -971,7 +971,7 @@
|
||||
arrPoints[i]={...arrPoints[i],joinCluster:true}
|
||||
}
|
||||
}
|
||||
return {icnt_2,icnt_0,icnt_1,showCount,ordercnt,arrPoints};
|
||||
return {icnt_2,icnt_0,icnt_1,showCount,ordercnt:showCount,arrPoints};
|
||||
}
|
||||
|
||||
//调度
|
||||
|
||||
@ -114,6 +114,7 @@
|
||||
getInfoList();
|
||||
})
|
||||
const getInfoList = () => {
|
||||
if(!orderId.value) return;
|
||||
api.callEbikeInfo("getDispatchVehicleByOrderId?orderId=" + orderId.value, {}, "get").then(
|
||||
res => {
|
||||
if (res.code == 200) {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
const config = {
|
||||
apiUrl: "http://192.168.2.151:10010/",
|
||||
//apiUrl: "https://www.cdzhuojing.cn/",
|
||||
apiUrl: "http://192.168.2.147:10010/",
|
||||
//apiUrl: "https://www.cdzhuojing.cn/ebike/",
|
||||
cdnPath: "/",
|
||||
ERR_OK: 200,
|
||||
sm2PublicKey: "04f5084ee12767d932f293508e30e3b0100185042ec0f061dedaf92b793b93f79fd6179d5e47e25b7aec98e00cf90dd56df1f8191012537187e7bbfd2d1de299fc", //f8209a2ebe6691e41e1f2b667bfe71f0b511716cc0f7c4452502fc12ec3957e4
|
||||
|
||||
@ -478,10 +478,10 @@ export function addMarker_Q(id, data, joinCluster, lx) {
|
||||
break;
|
||||
case "dd":
|
||||
icon = "bike_0.png";
|
||||
if(inOperation){
|
||||
if(!inOperation){
|
||||
lbContent="超";
|
||||
}
|
||||
else if(inParking){
|
||||
else if(!inParking){
|
||||
lbContent=`${intervalTime}H`;
|
||||
}
|
||||
break;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
const config = {
|
||||
apiUrl: "http://192.168.2.4:10010/",
|
||||
//apiUrl: "https://www.cdzhuojing.cn/",
|
||||
apiUrl: "http://192.168.2.147:10010/",
|
||||
//apiUrl: "https://www.cdzhuojing.cn/ebike/",
|
||||
cdnPath: "/",
|
||||
ERR_OK: 200,
|
||||
sm2PublicKey: "04f5084ee12767d932f293508e30e3b0100185042ec0f061dedaf92b793b93f79fd6179d5e47e25b7aec98e00cf90dd56df1f8191012537187e7bbfd2d1de299fc", //f8209a2ebe6691e41e1f2b667bfe71f0b511716cc0f7c4452502fc12ec3957e4
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user