diff --git a/jsowell-ui/src/views/pile/station/detail.vue b/jsowell-ui/src/views/pile/station/detail.vue index c287f90d0..b4b5c42b6 100644 --- a/jsowell-ui/src/views/pile/station/detail.vue +++ b/jsowell-ui/src/views/pile/station/detail.vue @@ -205,8 +205,8 @@ - 固定电量 - 固定时长 + 固定电量 + 固定时长 @@ -227,8 +227,8 @@ - 减时间(分钟) - 减金额(元) + 减时间(分钟) + 减金额(元) @@ -364,7 +364,7 @@ import { getParkingInfoList, bindParkingPlatform, getRelationByStationId, - updateThirdPartyStationRelation, saveChargeParkingDiscount, + updateThirdPartyStationRelation, saveChargeParkingDiscount, getChargeParkingDiscount, } from "@/api/pile/station"; import Whitelist from "@/views/pile/station/stationWhiteList"; import OrderReport from "./orderReport.vue"; @@ -430,6 +430,7 @@ export default { this.getRelationByStationId(); this.getParkingList(); this.queryStationInfo(); + this.getChargeParkingDiscount(); }, mounted() { this.initializeData(this.activeName); @@ -614,11 +615,19 @@ export default { saveChargeParkingDiscount() { this.chargeParkingDiscount.stationId = this.stationId; saveChargeParkingDiscount(this.chargeParkingDiscount).then((response) => { - console.log("response", response); + console.log("saveChargeParkingDiscount.response", response); this.$message.success(response.msg); }) }, + // 查询充电停车优惠配置 + getChargeParkingDiscount() { + getChargeParkingDiscount(this.stationId).then((response) => { + console.log("getChargeParkingDiscount.response", response); + this.chargeParkingDiscount = response.data; + }) + }, + // 绑定站点与停车平台配置 saveParkingSetting(parkingId) { console.log("parkingId", parkingId, this.stationId);