将推送第三方平台改为可推送多个平台

This commit is contained in:
Lemon
2024-01-18 17:03:08 +08:00
parent 63ae3c8ab7
commit 0b09585bbc
21 changed files with 534 additions and 63 deletions

View File

@@ -91,8 +91,8 @@
<el-row>
<el-col :span="12">
<el-form-item label="对接平台名称:" prop="type">
<el-checkbox-group v-model="checkList" v-for="dict in dict.type.third_party_type">
<el-checkbox
<el-checkbox-group v-model="checkList">
<el-checkbox v-for="dict in dict.type.third_party_type"
:label="dict.label"
:key="dict.value"
:value="dict.value"
@@ -361,14 +361,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,
getStationInfo,
updateStationQRCodePrefix,
getSettingByStationId,
updateSettingByStationId,
pushStationInfo,
getSettingInfo,
getParkingInfoList,
bindParkingPlatform, getRelationByStationId,
} from "@/api/pile/station";
import Whitelist from "@/views/pile/station/stationWhiteList";
import OrderReport from "./orderReport.vue";
@@ -420,9 +420,10 @@ export default {
const title = "【" + stationName + "】站点详情";
const route = Object.assign({}, this.$route, { title: `${title}` });
this.$store.dispatch("tagsView/updateVisitedView", route);
this.getRelationByStationId();
this.getParkingList();
this.queryStationInfo();
this.getStationSettingInfo();
},
mounted() {
this.initializeData(this.activeName);
@@ -466,33 +467,39 @@ export default {
console.log("queryStationInfo==", this.stationDetail);
},
// 查询站点互联互通配置信息
getStationSettingInfo() {
getSettingByStationId(this.stationId).then((res) => {
getRelationByStationId() {
getRelationByStationId(this.stationId).then((res) => {
console.log("stationId:", this.stationId);
console.log("getSettingByStationId==", res.data === undefined);
if (res.data === undefined) {
this.stationSettingInfo.thirdPartyType = "0";
} else {
this.stationSettingInfo = res.data;
}
console.log("res", res);
console.log("res.rows", res.rows);
res.rows.forEach((item, index) =>{
this.checkList.push(item.thirdPartyType);
})
console.log("this.checkList", this.checkList);
// if (res.data === undefined) {
// this.stationSettingInfo.thirdPartyType = "0";
// } else {
// this.stationSettingInfo = res.data;
// }
});
},
// 根据对接平台类型查询配置信息
getSettingParams() {
const param = {
// stationId: this.stationId,
type: this.stationSettingInfo.type,
};
console.log("param", param);
getSettingInfo(param).then((res) => {
console.log("getSettingInfo", res);
if (res.data === undefined) {
this.stationSettingInfo = [];
} else {
this.stationSettingInfo = res.data;
}
});
},
// getSettingParams() {
// const param = {
// // stationId: this.stationId,
// type: this.stationSettingInfo.type,
// };
// console.log("param", param);
// getSettingInfo(param).then((res) => {
// console.log("getSettingInfo", res);
// if (res.data === undefined) {
// this.stationSettingInfo = [];
// } else {
// this.stationSettingInfo = res.data;
// }
// });
// },
// 获取停车平台列表
getParkingList() {