mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 17:40:13 +08:00
update
This commit is contained in:
@@ -275,7 +275,6 @@ export default {
|
||||
// 查询充电桩接口列表
|
||||
this.queryPileConnectorList();
|
||||
// 查询桩对应的第三方平台桩编号列表
|
||||
this.getThirdPartySnRelationList();
|
||||
},
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
@@ -336,7 +335,7 @@ export default {
|
||||
},
|
||||
openEditSnRelation(index) {
|
||||
const updatedSnRelationList = this.snRelationList.map((item, currentIndex) => {
|
||||
// 只对当前点击的项进行状态切换
|
||||
// 只对当前点击的项进行状态切换
|
||||
if (currentIndex === index) {
|
||||
return {
|
||||
...item,
|
||||
@@ -345,7 +344,7 @@ export default {
|
||||
}
|
||||
return item;
|
||||
});
|
||||
// 更新snRelationList
|
||||
// 更新snRelationList
|
||||
this.snRelationList = updatedSnRelationList;
|
||||
},
|
||||
// 修改充电桩别名
|
||||
@@ -396,12 +395,11 @@ export default {
|
||||
this.pileDetailLoading = false;
|
||||
console.log("getPileDetailById结果:", this.pileDetail);
|
||||
});
|
||||
},
|
||||
|
||||
getThirdPartySnRelationList() {
|
||||
const params = {
|
||||
pileSn: this.pileDetail.pileSn
|
||||
pileSn: this.pileSn
|
||||
}
|
||||
console.log("params", params)
|
||||
getThirdPartySnRelation(params).then((response) => {
|
||||
this.snRelationList = response.rows;
|
||||
//默认添加一个状态
|
||||
|
||||
Reference in New Issue
Block a user