update 修改充电桩别名

This commit is contained in:
Lemon
2023-08-08 15:54:53 +08:00
parent ae05198fdb
commit 6d67dd212c
9 changed files with 83 additions and 3 deletions

View File

@@ -261,7 +261,7 @@ import remoteUpgrade from './components/remoteUpgrade.vue';
import {
getPileDetailById,
getPileFeedList,
listBasic, updateBasic,
listBasic, updateBasic, updatePileName,
} from "@/api/pile/basic";
import {queryConnectorListByParams} from "@/api/pile/connector";
// 二维码组件
@@ -276,6 +276,8 @@ export default {
data() {
return {
clearableFlag: true,
resCode: null,
msg: null,
pileDetailLoading: false,
pileListLoading: false,
pileId: this.$route.params.pileId,
@@ -389,8 +391,16 @@ export default {
stationId: this.pileDetail.stationId
}
console.log("params", params)
updateBasic(params).then((response) => {
updatePileName(params).then((response) => {
console.log("response", response)
this.resCode = response.resCode;
this.msg = response.msg
if (this.resCode !== '00100000') {
this.$message({
type: 'error',
message: this.msg,
});
}
this.clearableFlag = true;
this.getPileDetail();
})