mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-04 10:00:11 +08:00
update 修改充电桩别名
This commit is contained in:
@@ -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();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user