mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
Merge branch 'dev' of http://192.168.2.2:8099/jsowell/jsowell-charger-web into dev
This commit is contained in:
@@ -213,10 +213,14 @@
|
||||
</el-row>
|
||||
</el-tab-pane>
|
||||
|
||||
<!-- 右侧配置管理页面目前不管 -->
|
||||
<el-tab-pane label="配置管理" name="second">
|
||||
<el-button type="primary" icon="el-icon-s-tools" round @click="updateFirmware">远程升级</el-button>
|
||||
</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-tab-pane>
|
||||
|
||||
<el-tab-pane label="配置管理" name="second">
|
||||
<el-button type="primary" icon="el-icon-s-tools" round @click="updateFirmware('/update2.bin')">远程升级2</el-button>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
@@ -290,9 +294,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
// 远程升级固件
|
||||
updateFirmware() {
|
||||
updateFirmware(filePath) {
|
||||
const data = {
|
||||
pileSns: [this.pileSn],
|
||||
filePath: filePath
|
||||
};
|
||||
console.log("远程升级固件:", data);
|
||||
updateFirmware(data).then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user