新增固件升级页面

This commit is contained in:
admin-lmm
2023-06-29 16:41:45 +08:00
parent 43b0dd18c8
commit 925c468d55
3 changed files with 132 additions and 34 deletions

View File

@@ -212,19 +212,18 @@
</el-col>
</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>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import remoteUpgrade from './components/remoteUpgrade.vue';
import {
getPileDetailById,
getPileFeedList,
@@ -236,7 +235,7 @@ import VueQr from "vue-qr";
import {updateFirmware} from "@/api/pile/pileRemote";
export default {
components: { VueQr },
components: { VueQr ,remoteUpgrade},
name: "pile-detail",
dicts: ["connector_status", "connector_type", "sim_supplier", "sim_operator"],
data() {
@@ -370,22 +369,6 @@ export default {
this.total = response.data.total;
this.feedListLoading = false;
});
// this.feedList = [
// {
// time: '2016-05-02',
// description: '设备上线'
// },
// {
// time: '2016-05-01',
// description: '设备离线'
// },
// {
// time: '2016-05-01',
// description: '设备离线'
// }
// ];
// this.total = 3;
// this.loading = false;
},
},
watch: {