update 平台配置页面

This commit is contained in:
2024-05-04 10:12:24 +08:00
parent 186c6f5f40
commit dcf32e5f99
3 changed files with 33 additions and 18 deletions

View File

@@ -164,3 +164,11 @@ export function getParkingInfoList() {
})
}
// 更新站点与第三方平台关系
export function updateThirdPartyStationRelation(data) {
return request({
url: '/pile/station/updateThirdPartyStationRelation',
method: 'post',
data: data,
})
}

View File

@@ -48,7 +48,7 @@
</el-form>
</el-card>
<el-card>
<el-card style="margin-bottom: 10px">
<h2>互联互通配置</h2>
<!-- <el-button icon="el-icon-edit" size="big" @click="openEdit" v-has-permi="['pile:station:edit']">编辑参数-->
<!-- </el-button>-->
@@ -66,11 +66,11 @@
</el-col>
<el-col :span="12">
<el-form-item>
<el-button size="big" @click="pushStation" v-has-permi="['pile:station:edit']">
推送站点信息
</el-button>
<el-button size="big" @click="pushStation" v-has-permi="['pile:station:edit']">
推送站点信息
<!--<el-button size="big" @click="pushStation" v-has-permi="['pile:station:edit']">-->
<!-- 推送站点信息-->
<!--</el-button>-->
<el-button size="big" @click="saveStationThirdParty" v-has-permi="['pile:station:edit']">
保存对接平台关系
</el-button>
</el-form-item>
</el-col>
@@ -78,7 +78,7 @@
</el-form>
</el-card>
<el-card>
<el-card style="margin-bottom: 10px">
<h2>绑定停车平台(配置完成后订单完成将自动下发优惠券)</h2>
<el-button icon="el-icon-edit" size="big" @click="parkingOpenEdit" v-has-permi="['pile:station:edit']">编辑参数
</el-button>
@@ -177,14 +177,14 @@ import MapContainer from "../../../components/MapContainer/MapContainer.vue";
import stationOrderList from "@/views/pile/station/stationOrderList";
import stationWhiteList from "@/views/pile/station/stationWhiteList";
import {
getStationInfo,
updateStationQRCodePrefix,
getSettingByStationId,
updateSettingByStationId,
pushStationInfo,
getSettingInfo,
getParkingInfoList,
bindParkingPlatform, getRelationByStationId,
getStationInfo,
updateStationQRCodePrefix,
getSettingByStationId,
updateSettingByStationId,
pushStationInfo,
getSettingInfo,
getParkingInfoList,
bindParkingPlatform, getRelationByStationId, updateThirdPartyStationRelation,
} from "@/api/pile/station";
import Whitelist from "@/views/pile/station/stationWhiteList";
import OrderReport from "./orderReport.vue";
@@ -390,7 +390,14 @@ export default {
// 保存站点与第三方平台关系
saveStationThirdParty() {
const param = {
stationId: this.stationId,
thirdPartyTypes: this.exchange,
};
console.log('param', param);
updateThirdPartyStationRelation(param).then((response) => {
this.$message.success(response.msg);
});
},
// 绑定站点与停车平台配置