From e627ce55f85900297c8ad721426239a41a4b60cf Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 23 Aug 2024 10:50:35 +0800
Subject: [PATCH] 固件管理查询调整,按设备名称查询,固件升级优化,超时时间设置调整,api 请求路径调整
---
src/views/device/components/firmwareManage.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/views/device/components/firmwareManage.vue b/src/views/device/components/firmwareManage.vue
index 18c7c33..baad1d1 100644
--- a/src/views/device/components/firmwareManage.vue
+++ b/src/views/device/components/firmwareManage.vue
@@ -28,6 +28,7 @@
<el-form
ref="form"
:model="importForm"
+ v-loading="loadingForm"
label-width="80px"
style="width: 80%; margin-left: 10%"
:rules="rules"
@@ -76,6 +77,7 @@
export default {
data() {
return {
+ loadingForm:false,
file: '',
rules: {
device_name: [{ required: true, message: '请输入设备名称', trigger: 'blur' }],
@@ -284,11 +286,12 @@
formDatas.append('deviceName', that.importForm.device_name);
formDatas.append('releaseNote', that.importForm.release_note);
formDatas.append('status', that.importForm.status);
- this.loading = true;
+ this.loadingForm = true;
// 提交
upload(this.workspaceId, formDatas).then(res => {
- this.loading = false;
+ this.loadingForm = false;
this.firmwareUploadBox = false;
+ that.importForm = {}
this.onLoad(this.page);
this.$message({
type: 'success',
@@ -404,7 +407,7 @@
onLoad(page, params = {}) {
params['device_name'] = this.deviceName;
this.loading = true;
- getDeviceFirmwareList(page.currentPage, page.pageSize, this.workspaceId, params).then(res => {
+ getDeviceFirmwareList(page.currentPage, page.pageSize, params).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
--
Gitblit v1.9.3