From de9c9f8d88fb214d082b22ffa7d1ffca0bd3efba Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Wed, 28 Aug 2024 10:44:57 +0800
Subject: [PATCH] 操作日志页面修改
---
src/views/device/components/firmwareManage.vue | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/views/device/components/firmwareManage.vue b/src/views/device/components/firmwareManage.vue
index 18c7c33..0fe4c63 100644
--- a/src/views/device/components/firmwareManage.vue
+++ b/src/views/device/components/firmwareManage.vue
@@ -17,6 +17,7 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
+ @on-load="onLoad"
>
<template #menu-left>
<el-button type="primary" icon="el-icon-plus" plain @click="openFirmwareUpload"
@@ -28,12 +29,13 @@
<el-form
ref="form"
:model="importForm"
+ v-loading="loadingForm"
label-width="80px"
style="width: 80%; margin-left: 10%"
:rules="rules"
>
<el-form-item label="设备名称" prop="device_name">
- <el-input v-model="importForm.device_name" clearable disabled></el-input>
+ <el-input v-model="importForm.device_name" clearable></el-input>
</el-form-item>
<!-- 上传 -->
@@ -76,6 +78,7 @@
export default {
data() {
return {
+ loadingForm:false,
file: '',
rules: {
device_name: [{ required: true, message: '请输入设备名称', trigger: 'blur' }],
@@ -223,6 +226,7 @@
label: '上传状态',
prop: 'upload_status',
addDisplay: false,
+ editDisplay: false,
labelWidth: 130,
type: 'select',
width: 100,
@@ -284,11 +288,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 +409,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