mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-15 15:28:41 +08:00
充电桩详情 配置管理已完成
This commit is contained in:
@@ -213,10 +213,7 @@
|
||||
</el-row>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="配置管理" name="second">
|
||||
<el-button type="primary" icon="el-icon-s-tools" round @click="updateFirmware('/update.bin')">远程升级</el-button>
|
||||
|
||||
<el-button type="primary" icon="el-icon-s-tools" round @click="updateFirmware('/update2.bin')">远程升级2</el-button>
|
||||
<remoteUpgrade></remoteUpgrade>
|
||||
<remoteUpgrade :pileSn="pileSn" ref="second"></remoteUpgrade>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
@@ -232,7 +229,6 @@ import {
|
||||
import { queryConnectorListByParams } from "@/api/pile/connector";
|
||||
// 二维码组件
|
||||
import VueQr from "vue-qr";
|
||||
import {updateFirmware} from "@/api/pile/pileRemote";
|
||||
|
||||
export default {
|
||||
components: { VueQr ,remoteUpgrade},
|
||||
@@ -291,17 +287,6 @@ export default {
|
||||
setTimeout(() => {}, 300);
|
||||
},
|
||||
methods: {
|
||||
// 远程升级固件
|
||||
updateFirmware(filePath) {
|
||||
const data = {
|
||||
pileSns: [this.pileSn],
|
||||
filePath: filePath
|
||||
};
|
||||
console.log("远程升级固件:", data);
|
||||
updateFirmware(data).then((response) => {
|
||||
console.log("updateFirmware结果:", response);
|
||||
});
|
||||
},
|
||||
//点击二维码事件
|
||||
qrcodeClick(row) {
|
||||
if (this.flag) {
|
||||
@@ -348,8 +333,12 @@ export default {
|
||||
console.log("getPileDetailById结果:", this.pileDetail);
|
||||
});
|
||||
},
|
||||
handleClick() {
|
||||
console.log("handleClick");
|
||||
handleClick(tab, event) {
|
||||
// console.log(tab.name, event);
|
||||
if(tab.name === 'second') {
|
||||
this.$refs.second.getList();
|
||||
}
|
||||
// this.initializeData(tab.name);
|
||||
},
|
||||
// 刷新按钮重新获取数据
|
||||
refreshPileConnectorList() {
|
||||
|
||||
Reference in New Issue
Block a user