diff --git a/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileStationInfoController.java b/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileStationInfoController.java index 2d3dd9d68..43cfb4c08 100644 --- a/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileStationInfoController.java +++ b/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileStationInfoController.java @@ -190,7 +190,7 @@ public class PileStationInfoController extends BaseController { */ @PreAuthorize("@ss.hasPermi('pile:station:edit')") @PostMapping("/updateSettingByStationId") - public AjaxResult updateSettingByStationId(ThirdPartySettingInfo info) { + public AjaxResult updateSettingByStationId(@RequestBody ThirdPartySettingInfo info) { return AjaxResult.success(thirdPartySettingInfoService.updateStationSettingInfo(info)); } diff --git a/jsowell-ui/src/views/pile/station/detail.vue b/jsowell-ui/src/views/pile/station/detail.vue index 05c119834..a470f1d9f 100644 --- a/jsowell-ui/src/views/pile/station/detail.vue +++ b/jsowell-ui/src/views/pile/station/detail.vue @@ -57,35 +57,35 @@

互联互通配置

- + - - + + - - + + - - + + - - + + - - + + @@ -125,7 +125,7 @@ import pileList from "./pileList.vue"; import MapContainer from "../../../components/MapContainer/MapContainer.vue"; import stationOrderList from "@/views/pile/station/stationOrderList"; import stationWhiteList from "@/views/pile/station/stationWhiteList"; -import {getStationInfo, updateStationQRCodePrefix} from "@/api/pile/station"; +import {getStationInfo, updateStationQRCodePrefix, getSettingByStationId, updateSettingByStationId} from "@/api/pile/station"; import Whitelist from "@/views/pile/station/stationWhiteList"; export default { @@ -152,7 +152,8 @@ export default { stationName: this.$route.params.stationName, stationDetail: {}, stationLat:null, - stationLng:null + stationLng:null, + stationSettingInfo: {}, }; }, created() { @@ -163,6 +164,7 @@ export default { const route = Object.assign({}, this.$route, { title: `${title}` }) this.$store.dispatch('tagsView/updateVisitedView', route); this.queryStationInfo(); + this.getStationSettingInfo(); }, mounted() { this.initializeData(this.activeName); @@ -199,6 +201,15 @@ export default { }); console.log("queryStationInfo==", this.stationDetail); }, + // 查询站点互联互通配置信息 + getStationSettingInfo() { + getSettingByStationId(this.stationId).then((res) =>{ + console.log("stationId:", this.stationId) + console.log("getSettingByStationId==", res) + this.stationSettingInfo = res.data; + }) + }, + // 配置参数按钮 handleCreate() { this.dialogTitle = '配置参数';