|
@@ -102,7 +102,7 @@
|
|
|
import { shallowRef } from '@vue/reactivity'
|
|
|
import { lazyAMapApiLoaderInstance } from 'vue-amap'
|
|
|
import Slider from './slider.vue'
|
|
|
-import { getCookie } from "@/utils/util.js";
|
|
|
+import { getCookie } from '@/utils/util.js'
|
|
|
Vue.use(Slider)
|
|
|
import Vue from 'vue'
|
|
|
var infoWindow
|
|
@@ -113,7 +113,7 @@ export default {
|
|
|
capacityNumber: '',
|
|
|
startPointName: '',
|
|
|
endPointName: '',
|
|
|
- statusCode:''
|
|
|
+ statusCode: ''
|
|
|
},
|
|
|
setup() {
|
|
|
const map = shallowRef(null)
|
|
@@ -416,10 +416,10 @@ export default {
|
|
|
let that = this
|
|
|
let increment = that.listPath[0].runPath.length * 0.1
|
|
|
let result = that.point + increment
|
|
|
- if(result < that.listPath[0].runPath.length){
|
|
|
+ if (result < that.listPath[0].runPath.length) {
|
|
|
that.pathNavigator.start(that.point + increment)
|
|
|
- }else{
|
|
|
- that.pathNavigator.start(that.listPath[0].runPath.length-1)
|
|
|
+ } else {
|
|
|
+ that.pathNavigator.start(that.listPath[0].runPath.length - 1)
|
|
|
}
|
|
|
},
|
|
|
///che
|
|
@@ -469,8 +469,8 @@ export default {
|
|
|
},
|
|
|
initData(orderNumber) {
|
|
|
let that = this
|
|
|
- if(this.map){
|
|
|
- this.map.destroy();
|
|
|
+ if (this.map) {
|
|
|
+ this.map.destroy()
|
|
|
}
|
|
|
that.axios
|
|
|
.post('/api/v1/otms/fullPath?orderNumber=' + orderNumber)
|
|
@@ -535,25 +535,32 @@ export default {
|
|
|
that.geocoder.getAddress(lnglatXY, function(status, result) {
|
|
|
if (status === 'complete' && result.info === 'OK') {
|
|
|
that.currentPointName = result.regeocode.formattedAddress
|
|
|
- let content= that.statusCode+
|
|
|
+ let content =
|
|
|
+ that.statusCode +
|
|
|
':' +
|
|
|
- that.currentPointName +
|
|
|
- '<br/>' +
|
|
|
- '距离:' +
|
|
|
- that.listPath[0].miled +
|
|
|
- '<br/>' +
|
|
|
- '时间范围:' +
|
|
|
- that.startTime +
|
|
|
- ' 至 ' +
|
|
|
- that.endTime;
|
|
|
- if(getCookie('orgCode')!='wuliuyunshubu' && getCookie('orgCode')!='shichangxinxibu' && getCookie('orgCode')!='caiwubu'){
|
|
|
- content = that.statusCode +':' +
|
|
|
+ that.currentPointName +
|
|
|
+ '<br/>' +
|
|
|
+ '距离:' +
|
|
|
+ that.listPath[0].miled +
|
|
|
+ '<br/>' +
|
|
|
+ '时间范围:' +
|
|
|
+ that.startTime +
|
|
|
+ ' 至 ' +
|
|
|
+ that.endTime
|
|
|
+ if (
|
|
|
+ getCookie('orgCode') != 'wuliuyunshubu' &&
|
|
|
+ getCookie('orgCode') != 'shichangxinxibu' &&
|
|
|
+ getCookie('orgCode') != 'caiwubu'
|
|
|
+ ) {
|
|
|
+ content =
|
|
|
+ that.statusCode +
|
|
|
+ ':' +
|
|
|
that.currentPointName +
|
|
|
'<br/>' +
|
|
|
'时间范围:' +
|
|
|
that.startTime +
|
|
|
' 至 ' +
|
|
|
- that.endTime;
|
|
|
+ that.endTime
|
|
|
}
|
|
|
that.initCustomMarkes(
|
|
|
that.capacityNumber,
|