From 83d417e1c62764cf656bed9d057b242a82530f46 Mon Sep 17 00:00:00 2001
From: yangjun <1173114630@qq.com>
Date: Thu, 21 Aug 2025 13:53:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/deviceSync/compoents/DbList.vue | 16 +-
src/views/deviceSync/compoents/SbList.vue | 17 +-
src/views/deviceSync/compoents/SxtList.vue | 18 +-
src/views/deviceSync/compoents/WsdjList.vue | 19 +-
src/views/deviceSync/index.vue | 10 +-
.../tq/ApiRequestLog/ApiRequestLog.data.ts | 30 +++
.../tq/ApiRequestLog/ApiRequestLogList2.vue | 198 ++++++++++++++++++
.../iot/tq/electricity/apilog/ApiLogList.vue | 5 +-
.../tq/electricity/apilog/WaterApiLogList.vue | 5 +-
src/views/iot/tq/electricity/index.vue | 2 +-
src/views/iot/tq/water/index.vue | 2 +-
src/views/iot/yiweilian/humid/humid.data.ts | 86 +++++++-
12 files changed, 363 insertions(+), 45 deletions(-)
create mode 100644 src/views/iot/tq/ApiRequestLog/ApiRequestLogList2.vue
diff --git a/src/views/deviceSync/compoents/DbList.vue b/src/views/deviceSync/compoents/DbList.vue
index f2f4655..d14db71 100644
--- a/src/views/deviceSync/compoents/DbList.vue
+++ b/src/views/deviceSync/compoents/DbList.vue
@@ -7,7 +7,7 @@
SN:{{item.address}}
-
+
{{item.relayState=='1'?'在线':'离线'}}
@@ -156,18 +156,24 @@ const plainOptions = [
font-size:14px;
background: linear-gradient(to right, #1ea0fa, #017de9);
border-radius: 8px;
- height: 35px;
+ height: 25px;
color: white;
- line-height: 35px;
+ line-height: 25px;
+ text-align: center;
+ width:50px;
+ margin-top:11px;
}
.lxClass{
font-size:14px;
background: linear-gradient(to right, #cccccc, #cccccc);
border-radius: 8px;
- height: 35px;
+ height: 25px;
color: white;
- line-height: 35px;
+ line-height: 25px;
+ text-align: center;
+ width:50px;
+ margin-top:11px;
}
.tbClass{
background: #f6f6f6;
diff --git a/src/views/deviceSync/compoents/SbList.vue b/src/views/deviceSync/compoents/SbList.vue
index 9510a08..930a037 100644
--- a/src/views/deviceSync/compoents/SbList.vue
+++ b/src/views/deviceSync/compoents/SbList.vue
@@ -7,7 +7,7 @@
SN:{{item.address}}
-
+
{{item.relayState=='1'?'在线':'离线'}}
@@ -150,23 +150,28 @@ const plainOptions = [
diff --git a/src/views/iot/tq/electricity/apilog/ApiLogList.vue b/src/views/iot/tq/electricity/apilog/ApiLogList.vue
index 8615e77..b024de7 100644
--- a/src/views/iot/tq/electricity/apilog/ApiLogList.vue
+++ b/src/views/iot/tq/electricity/apilog/ApiLogList.vue
@@ -8,10 +8,10 @@
-
+
-
+
@@ -21,6 +21,7 @@
import { ref, reactive } from 'vue';
import ApiRequestLogList from '/@/views/iot/tq/ApiRequestLog/ApiRequestLogList.vue';
+ import ApiRequestLogList2 from '/@/views/iot/tq/ApiRequestLog/ApiRequestLogList2.vue';
const activeKey= ref('3');
const dbsbInfo = ref({});
diff --git a/src/views/iot/tq/electricity/apilog/WaterApiLogList.vue b/src/views/iot/tq/electricity/apilog/WaterApiLogList.vue
index 36595ef..7291d3d 100644
--- a/src/views/iot/tq/electricity/apilog/WaterApiLogList.vue
+++ b/src/views/iot/tq/electricity/apilog/WaterApiLogList.vue
@@ -8,10 +8,10 @@
-
+
-
+
@@ -21,6 +21,7 @@
import { ref, reactive } from 'vue';
import ApiRequestLogList from '/@/views/iot/tq/ApiRequestLog/ApiRequestLogList.vue';
+ import ApiRequestLogList2 from '/@/views/iot/tq/ApiRequestLog/ApiRequestLogList2.vue';
const activeKey= ref('42');
const dbsbInfo = ref({});
diff --git a/src/views/iot/tq/electricity/index.vue b/src/views/iot/tq/electricity/index.vue
index 4572f87..d9c69f7 100644
--- a/src/views/iot/tq/electricity/index.vue
+++ b/src/views/iot/tq/electricity/index.vue
@@ -35,7 +35,7 @@
低
-
+
中
diff --git a/src/views/iot/tq/water/index.vue b/src/views/iot/tq/water/index.vue
index a74534e..9afbb1c 100644
--- a/src/views/iot/tq/water/index.vue
+++ b/src/views/iot/tq/water/index.vue
@@ -46,7 +46,7 @@
低
-
+
中
diff --git a/src/views/iot/yiweilian/humid/humid.data.ts b/src/views/iot/yiweilian/humid/humid.data.ts
index e22a0cc..66b05b6 100644
--- a/src/views/iot/yiweilian/humid/humid.data.ts
+++ b/src/views/iot/yiweilian/humid/humid.data.ts
@@ -150,7 +150,10 @@ export const formSchema: FormSchema[] = [
field: 'deviceName',
component: 'Input',
required: true,
- labelWidth: '160px'
+ labelWidth: '160px',
+ componentProps: {
+ maxlength: 20
+ }
},
{
label: '时区',
@@ -181,7 +184,14 @@ export const formSchema: FormSchema[] = [
return values.isUpdate;
},
required: true,
- labelWidth: '160px'
+ labelWidth: '160px',
+ componentProps: {
+ maxlength: 2,
+ min: 0, // 最小值设为1(正整数)
+ precision: 0, // 不允许小数
+ controls: true, // 显示增减按钮(可选)
+ controlsPosition: 'right' // 增减按钮位置(可选)
+ }
},
{
label: '上报间隔(分钟)',
@@ -192,7 +202,14 @@ export const formSchema: FormSchema[] = [
return values.isUpdate;
},
required: true,
- labelWidth: '160px'
+ labelWidth: '160px',
+ componentProps: {
+ maxlength: 2,
+ min: 0, // 最小值设为1(正整数)
+ precision: 0, // 不允许小数
+ controls: true, // 显示增减按钮(可选)
+ controlsPosition: 'right' // 增减按钮位置(可选)
+ }
},
{
label: '历史上报时刻(00:00)',
@@ -218,7 +235,14 @@ export const formSchema: FormSchema[] = [
return values.isUpdate;
},
required: true,
- labelWidth: '160px'
+ labelWidth: '160px',
+ componentProps: {
+ maxlength: 2,
+ min: 0, // 最小值设为1(正整数)
+ precision: 0, // 不允许小数
+ controls: true, // 显示增减按钮(可选)
+ controlsPosition: 'right' // 增减按钮位置(可选)
+ }
},
{
label: '温度预警-上限',
@@ -229,7 +253,14 @@ export const formSchema: FormSchema[] = [
return values.isUpdate;
},
required: true,
- labelWidth: '160px'
+ labelWidth: '160px',
+ componentProps: {
+ maxlength: 2,
+ min: 0, // 最小值设为1(正整数)
+ precision: 0, // 不允许小数
+ controls: true, // 显示增减按钮(可选)
+ controlsPosition: 'right' // 增减按钮位置(可选)
+ }
},
{
label: '温度预警-下限',
@@ -240,7 +271,14 @@ export const formSchema: FormSchema[] = [
return values.isUpdate;
},
required: true,
- labelWidth: '160px'
+ labelWidth: '160px',
+ componentProps: {
+ maxlength: 2,
+ min: 0, // 最小值设为1(正整数)
+ precision: 0, // 不允许小数
+ controls: true, // 显示增减按钮(可选)
+ controlsPosition: 'right' // 增减按钮位置(可选)
+ }
},
{
label: '温度缓冲值',
@@ -251,7 +289,14 @@ export const formSchema: FormSchema[] = [
return values.isUpdate;
},
required: true,
- labelWidth: '160px'
+ labelWidth: '160px',
+ componentProps: {
+ maxlength: 3,
+ min: 0, // 最小值设为1(正整数)
+ precision: 2, // 不允许小数
+ controls: true, // 显示增减按钮(可选)
+ controlsPosition: 'right' // 增减按钮位置(可选)
+ }
},
{
label: '湿度预警-上限',
@@ -262,7 +307,14 @@ export const formSchema: FormSchema[] = [
return values.isUpdate;
},
required: true,
- labelWidth: '160px'
+ labelWidth: '160px',
+ componentProps: {
+ maxlength: 2,
+ min: 0, // 最小值设为1(正整数)
+ precision: 0, // 不允许小数
+ controls: true, // 显示增减按钮(可选)
+ controlsPosition: 'right' // 增减按钮位置(可选)
+ }
},
{
label: '湿度预警-下限',
@@ -273,7 +325,14 @@ export const formSchema: FormSchema[] = [
return values.isUpdate;
},
required: true,
- labelWidth: '160px'
+ labelWidth: '160px',
+ componentProps: {
+ maxlength: 2,
+ min: 0, // 最小值设为1(正整数)
+ precision: 0, // 不允许小数
+ controls: true, // 显示增减按钮(可选)
+ controlsPosition: 'right' // 增减按钮位置(可选)
+ }
},
{
label: '湿度缓冲值',
@@ -284,7 +343,14 @@ export const formSchema: FormSchema[] = [
return values.isUpdate;
},
required: true,
- labelWidth: '160px'
+ labelWidth: '160px',
+ componentProps: {
+ maxlength: 3,
+ min: 0, // 最小值设为1(正整数)
+ precision: 2, // 不允许小数
+ controls: true, // 显示增减按钮(可选)
+ controlsPosition: 'right' // 增减按钮位置(可选)
+ }
},
{
label: '断电报警开关',