From b7ff6d1f8486902a51a70974e64d23d55cdff301 Mon Sep 17 00:00:00 2001 From: huguanghan Date: Thu, 17 Oct 2024 16:56:34 +0800 Subject: [PATCH 1/4] =?UTF-8?q?tdengine=E6=95=B0=E6=8D=AE=E6=8C=89?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=88=86=E4=B8=BA=E9=AB=98=E9=A2=91=E5=92=8C?= =?UTF-8?q?=E4=BD=8E=E9=A2=91=E8=A1=A8,=E5=85=A5=E5=BA=93=EF=BC=8Credis?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../node/service/impl/DataServiceImpl.java | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/das/src/main/java/com/das/modules/node/service/impl/DataServiceImpl.java b/das/src/main/java/com/das/modules/node/service/impl/DataServiceImpl.java index 8fc28f8b..cae27f97 100644 --- a/das/src/main/java/com/das/modules/node/service/impl/DataServiceImpl.java +++ b/das/src/main/java/com/das/modules/node/service/impl/DataServiceImpl.java @@ -267,24 +267,24 @@ public class DataServiceImpl implements DataService { keyValueMap.put(key, high.get(fieldName).asDouble()); } adminRedisTemplate.mSet(keyValueMap); - Long dataTime = data.getTime(); - - // 存入td库 - List highList = new ArrayList<>(); - List lowList = new ArrayList<>(); - RTData rtHighData = RTData.builder() - .dataTime(dataTime) - .deviceId(Long.valueOf(deviceId)) - .values(highFieldMap) - .build(); - RTData rtLowData = RTData.builder() - .dataTime(dataTime) - .deviceId(Long.valueOf(deviceId)) - .values(highFieldMap) - .build(); - highList.add(rtHighData); - lowList.add(rtLowData); - tdEngineService.updateYCHighValues(highList, iotModelCode); - tdEngineService.updateYCLowValues(lowList, iotModelCode); +// Long dataTime = data.getTime(); +// +// // 存入td库 +// List highList = new ArrayList<>(); +// List lowList = new ArrayList<>(); +// RTData rtHighData = RTData.builder() +// .dataTime(dataTime) +// .deviceId(Long.valueOf(deviceId)) +// .values(highFieldMap) +// .build(); +// RTData rtLowData = RTData.builder() +// .dataTime(dataTime) +// .deviceId(Long.valueOf(deviceId)) +// .values(highFieldMap) +// .build(); +// highList.add(rtHighData); +// lowList.add(rtLowData); +// tdEngineService.updateYCHighValues(highList, iotModelCode); +// tdEngineService.updateYCLowValues(lowList, iotModelCode); } } From cd3bc0a0450a5a3973982b4490ccdc8fc3781582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E4=BA=91=E9=B9=8F?= Date: Thu, 17 Oct 2024 17:09:11 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E7=89=A9=E6=A8=A1=E5=9E=8B=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5=20=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=8F=AF=E8=A7=81visbile=20=E6=95=B0=E6=8D=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8BdataType?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/dasadmin/.env.development | 3 +- .../src/views/backend/auth/model/index.vue | 70 +++++++++++++++---- .../src/views/backend/auth/model/type.ts | 13 ++-- 3 files changed, 66 insertions(+), 20 deletions(-) diff --git a/ui/dasadmin/.env.development b/ui/dasadmin/.env.development index c8c70d94..d5455a0b 100644 --- a/ui/dasadmin/.env.development +++ b/ui/dasadmin/.env.development @@ -6,9 +6,10 @@ VITE_BASE_PATH = './' # 代理配置(开发使用),必须在一行中 # 本地 - # VITE_APP_PROXY=[["/api","http://10.65.57.55:8080/api"]] +# VITE_APP_PROXY=[["/api","http://192.168.130.12:8080/api"]] # 线上 VITE_APP_PROXY=[["/api","https://test.jsspisoft.com/api"]] + diff --git a/ui/dasadmin/src/views/backend/auth/model/index.vue b/ui/dasadmin/src/views/backend/auth/model/index.vue index 054f7ead..0858f3dd 100644 --- a/ui/dasadmin/src/views/backend/auth/model/index.vue +++ b/ui/dasadmin/src/views/backend/auth/model/index.vue @@ -185,13 +185,28 @@ - - - - - - - +
+ + + + + + + + + + + + +
@@ -201,6 +216,9 @@ + + +