From afdebd9dc6ec160d9ed66920ad6f4c78c11b04bc Mon Sep 17 00:00:00 2001
From: Guoqs <123@jsowell.com>
Date: Mon, 17 Feb 2025 16:58:05 +0800
Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=85=85=E7=94=B5=E5=81=9C?=
=?UTF-8?q?=E8=BD=A6=E4=BC=98=E6=83=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jsowell-ui/src/views/pile/station/detail.vue | 21 ++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
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);