update 高德

This commit is contained in:
2023-06-27 09:14:30 +08:00
parent cf741ac3ce
commit 1f7c1f07cd
7 changed files with 51 additions and 15 deletions

View File

@@ -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) => {