diff --git a/src/api/system/order.js b/src/api/system/order.js index 7ce580a..e8ca327 100644 --- a/src/api/system/order.js +++ b/src/api/system/order.js @@ -51,3 +51,30 @@ export function delOrder(orderId) { method: 'delete' }) } + +// 改价 +export function changePrice(data) { + return request({ + url: '/appVerify/order/editPrice', + method: 'put', + data: data + }) +} + +// 退款 +export function refund(data) { + return request({ + url: '/appVerify/order/refund', + method: 'put', + data: data + }) +} + +// 退款 +export function returnVehicle(data) { + return request({ + url: '/appVerify/device/return', + method: 'post', + params: data + }) +} diff --git a/src/components/AreaMap/index.vue b/src/components/AreaMap/index.vue index ef72b17..0ed6e2b 100644 --- a/src/components/AreaMap/index.vue +++ b/src/components/AreaMap/index.vue @@ -54,6 +54,8 @@ export default { coordList: "", timer: "", status:true, + lon2: null, + lat2: null }; }, props: ["pathList", "dataId","lon","lat"], @@ -114,6 +116,8 @@ export default { console.log("接收参数", this.pathList); console.log("接收参数", this.lon); console.log("接收参数", this.lat); + this.lon2 = this.lon === undefined ? 120.35218 : this.lon; + this.lat2 = this.lat === undefined ? 26.944335 : this.lat; // console.log(typeof JSON.parse(this.pathList)); await AMapLoader.load({ key: globalConfig.aMap.key, // 申请好的Web端开发者Key,首次调用 load 时必填 @@ -129,7 +133,7 @@ export default { //设置地图容器id viewMode: "3D", //是否为3D地图模式 zoom: 13, //初始化地图级别 - center: [this.lon,this.lat], //初始化地图中心点位置--大嵛山岛 + center: [this.lon2, this.lat2], // 初始化地图中心点位置 }); this.map.setFitView(); }) @@ -222,7 +226,7 @@ export default { } .input-card-left { position: absolute; - top: -40px; + top: 5px; left: 20px; font-size: 13px; line-height: 20px; diff --git a/src/components/Map/TrajectoryMap.vue b/src/components/Map/TrajectoryMap.vue index 9d81b17..94b504e 100644 --- a/src/components/Map/TrajectoryMap.vue +++ b/src/components/Map/TrajectoryMap.vue @@ -91,17 +91,8 @@ export default { }, // 显示轨迹 trajectory() { - console.log("this.tripRouteStr-----------------"+JSON.stringify(this.tripRouteStr)) this.line = JSON.parse(this.tripRouteStr) let line = this.line; - console.log("this.tripRouteStr-----------------"+JSON.parse(this.tripRouteStr)) - if (Array.isArray(line)) { - // this.lineArr 是数组 - console.log("this.lineArr-是数组"); - } else { - // this.lineArr 不是数组 - console.log("this.lineArr-不是数组"); - } this.marker = new AMap.Marker({ map: this.map, position: line[0], @@ -136,25 +127,11 @@ export default { this.map.setFitView(); }, - // /** - // * 获取区域对角线的两点坐标,即这个区域内的最小坐标值和最大坐标值 - // * - // * @param pointerArray [[a,b],[c,d]] - // * @return Array {min:number[a,b], max:number[c,d]} - // */ - // getMaxBoundsPointer(pointerArray){ - // console.log("JSON-------------"+JSON.stringify(pointerArray)) - // let lngArray = pointerArray.map(item => item[0]) - // let latArray = pointerArray.map(item => item[1]) - // console.log("lngArray-------------"+lngArray) - // console.log("latArray-------------"+latArray) - // return { - // min: [Math.min(...lngArray), Math.min(...latArray)], - // max: [Math.max(...lngArray), Math.max(...latArray)], - // } - // }, startAnimation() { - this.marker.moveAlong(this.line, 200); + this.marker.moveAlong(this.line, { + // 每一段的时长 + duration: 100,//可根据实际采集时间间隔设置 + }); }, pauseAnimation() { this.marker.pauseMove(); diff --git a/src/views/system/adminOrder/index.vue b/src/views/system/adminOrder/index.vue index 168b638..37a58c6 100644 --- a/src/views/system/adminOrder/index.vue +++ b/src/views/system/adminOrder/index.vue @@ -72,6 +72,7 @@ + - + diff --git a/src/views/system/area/index.vue b/src/views/system/area/index.vue index 823ce53..bdef621 100644 --- a/src/views/system/area/index.vue +++ b/src/views/system/area/index.vue @@ -248,7 +248,7 @@ - + {{ dict.label }} diff --git a/src/views/system/area/noparking.vue b/src/views/system/area/noparking.vue index b9594b3..69f6617 100644 --- a/src/views/system/area/noparking.vue +++ b/src/views/system/area/noparking.vue @@ -90,12 +90,6 @@ - - - - - - - {{ form.onlineStatus == 1 ? '在线' : '离线' }} + {{ form.onlineStatus == 1 ? '在线' : '离线' }} @@ -455,9 +457,9 @@ export default { mac: [ { required: true, message: "MAC不能为空", trigger: "blur" } ], - areaId: [ - { required: true, message: "运营区不能为空", trigger: "blur" } - ], + // areaId: [ + // { required: true, message: "运营区不能为空", trigger: "blur" } + // ], } }; }, @@ -595,7 +597,7 @@ export default { const deviceId = row.deviceId || this.ids getDevice(deviceId).then(response => { let form1 = response.data; - let text = form1.status === '0'? '上架': '下架'; + let text = form1.status === '0'? '上线': '下线'; form1.status = form1.status === '0'? '1': '0'; if(form1.areaId == null){ this.$modal.msgError("未绑定运营区,无法上架!") diff --git a/src/views/system/fault/index.vue b/src/views/system/fault/index.vue index 86ca0a8..17a1cd8 100644 --- a/src/views/system/fault/index.vue +++ b/src/views/system/fault/index.vue @@ -1,14 +1,6 @@