mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
新增 修改对接高德标识接口
This commit is contained in:
@@ -56,6 +56,16 @@ export function updateStation(data) {
|
||||
});
|
||||
}
|
||||
|
||||
// 修改对接高德标识
|
||||
export function updateAmapFlag(data) {
|
||||
return request({
|
||||
url: "/pile/station/editAmapFlag",
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 删除充电站信息
|
||||
export function delStation(id) {
|
||||
return request({
|
||||
@@ -127,3 +137,4 @@ export function pushStationInfo(data) {
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@ import {
|
||||
delStation,
|
||||
addStation,
|
||||
updateStation,
|
||||
fastCreateStation,
|
||||
fastCreateStation, updateAmapFlag,
|
||||
} from "@/api/pile/station";
|
||||
import {getMerchantList} from "@/api/pile/merchant";
|
||||
import {regionData, CodeToText} from "element-china-area-data";
|
||||
@@ -374,8 +374,20 @@ export default {
|
||||
});
|
||||
},
|
||||
changeFlag(info) {
|
||||
console.log("info", info)
|
||||
const params = {
|
||||
stationId: info.id,
|
||||
amapFlag: info.amapFlag
|
||||
}
|
||||
// console.log(info);
|
||||
updateStation(info).then((response) => {
|
||||
// updateStation(info).then((response) => {
|
||||
// console.log("response", response)
|
||||
// this.$modal.msgSuccess("修改成功");
|
||||
// this.open = false;
|
||||
// this.getList();
|
||||
// });
|
||||
updateAmapFlag(params).then((response) => {
|
||||
console.log("response", response)
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
@@ -566,7 +578,7 @@ export default {
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`station_${new Date().getTime()}.xlsx`
|
||||
`station_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user