From d00f1c5363596983b10bcad4759189bcc0ba3609 Mon Sep 17 00:00:00 2001 From: haha Date: Thu, 20 Mar 2025 21:50:07 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=A1=94=E6=9C=BA=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/TowerCraneApiController.java | 4 +- .../src/api/device/towerDataRound.js | 44 ++ .../src/views/device/towerDataRound/index.vue | 418 +++++++++++++++++- .../views/device/towerProjectConfig/index.vue | 3 +- 4 files changed, 463 insertions(+), 6 deletions(-) create mode 100644 yanzhu-ui-vue3/src/api/device/towerDataRound.js diff --git a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/device/TowerCraneApiController.java b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/device/TowerCraneApiController.java index f4e4ed72..547d73a0 100644 --- a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/device/TowerCraneApiController.java +++ b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/device/TowerCraneApiController.java @@ -27,6 +27,8 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; +import static com.yanzhu.manage.service.impl.DevTowerProjectConfigServiceImpl.YANZHU_DEVICE_TOWER; + /** * 塔吊监测APIController * @@ -70,7 +72,7 @@ public class TowerCraneApiController { @RateLimiter(count = 10, limitType = LimitType.IP) @PostMapping("/v1/push") public AjaxResult pushData(@Validated @RequestBody TowerReqVo req) { - DevTowerProjectConfig config = redisService.getCacheObject(CacheConstants.YANZHU_DEVICE_TOWER+req.getContent().getDeviceKey()); + DevTowerProjectConfig config = redisService.getCacheObject(YANZHU_DEVICE_TOWER+req.getContent().getDeviceKey()); if(config==null){ throw new ServiceException(HttpStatusEnum.DARA_EXCEPTION.getInfo(), HttpStatusEnum.DARA_EXCEPTION.getCode()); } diff --git a/yanzhu-ui-vue3/src/api/device/towerDataRound.js b/yanzhu-ui-vue3/src/api/device/towerDataRound.js new file mode 100644 index 00000000..3dcc4477 --- /dev/null +++ b/yanzhu-ui-vue3/src/api/device/towerDataRound.js @@ -0,0 +1,44 @@ +import request from "@/utils/request"; + +// 查询塔机工作循环列表 +export function listTowerDataRound(query) { + return request({ + url: "/manage/device/towerDataRound/list", + method: "get", + params: query, + }); +} + +// 查询塔机工作循环详细 +export function getTowerDataRound(id) { + return request({ + url: "/manage/device/towerDataRound/" + id, + method: "get", + }); +} + +// 新增塔机工作循环 +export function addTowerDataRound(data) { + return request({ + url: "/manage/device/towerDataRound", + method: "post", + data: data, + }); +} + +// 修改塔机工作循环 +export function updateTowerDataRound(data) { + return request({ + url: "/manage/device/towerDataRound", + method: "put", + data: data, + }); +} + +// 删除塔机工作循环 +export function delTowerDataRound(id) { + return request({ + url: "/manage/device/towerDataRound/" + id, + method: "delete", + }); +} diff --git a/yanzhu-ui-vue3/src/views/device/towerDataRound/index.vue b/yanzhu-ui-vue3/src/views/device/towerDataRound/index.vue index 5a728fc3..914960ce 100644 --- a/yanzhu-ui-vue3/src/views/device/towerDataRound/index.vue +++ b/yanzhu-ui-vue3/src/views/device/towerDataRound/index.vue @@ -1,13 +1,425 @@