From 86ee4d5654b816f070b56eeaa62b0bb9681a1501 Mon Sep 17 00:00:00 2001 From: liuyibo <14460729+liuyibo12345@user.noreply.gitee.com> Date: Mon, 23 Sep 2024 10:24:36 +0800 Subject: [PATCH] =?UTF-8?q?feat():=E7=AD=96=E7=95=A5=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=A1=B5=E9=9D=A2=E6=9F=A5=E8=AF=A2=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E4=B8=8B=E7=9A=84=E8=A7=84=E5=88=99,=E6=8A=A5?= =?UTF-8?q?=E6=96=87=E4=B8=8B=E6=8B=89=E6=A1=86,=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/warn/rule.js | 15 + src/api/warn/strategy.js | 25 + src/views/fence/test/1/index.vue | 248 --------- src/views/fence/test/3/index.vue | 849 ------------------------------ src/views/fence/test/che.vue | 105 ---- src/views/warn/rule/index.vue | 62 ++- src/views/warn/strategy/index.vue | 71 ++- 7 files changed, 156 insertions(+), 1219 deletions(-) delete mode 100644 src/views/fence/test/1/index.vue delete mode 100644 src/views/fence/test/3/index.vue delete mode 100644 src/views/fence/test/che.vue diff --git a/src/api/warn/rule.js b/src/api/warn/rule.js index 146db11..e6c7178 100644 --- a/src/api/warn/rule.js +++ b/src/api/warn/rule.js @@ -42,3 +42,18 @@ export function delRule(id) { method: 'delete' }) } +//双表联查 +export function selectByStrategyId(id) { + return request({ + url: '/warn/rule/selectByStrategyId?strategyId=' + id, + method: 'get' + }) +} + +//根据模板查询报文 +export function selectByTemplateId(templateId) { + return request({ + url: '/warn/carMessage/selectByTemplateId?templateId='+templateId, + method: 'get' + }) +} diff --git a/src/api/warn/strategy.js b/src/api/warn/strategy.js index 6cec6de..58f5a38 100644 --- a/src/api/warn/strategy.js +++ b/src/api/warn/strategy.js @@ -42,3 +42,28 @@ export function delStrategy(id) { method: 'delete' }) } + +//双表联查 +export function strategyRuleList(data) { + return request({ + url: '/warn/strategy/strategyRuleList', + method: 'post', + data: data + }) +} +//查询所有类型 +export function carTypeList() { + return request({ + url: '/warn/carType/carTypeList', + method: 'get' + }) +} + +//根据类型查询模板 +export function catTypeId(catTypeId) { + return request({ + url: '/warn/carType/catTypeId?catTypeId='+catTypeId, + method: 'post' + }) +} + diff --git a/src/views/fence/test/1/index.vue b/src/views/fence/test/1/index.vue deleted file mode 100644 index bf7b223..0000000 --- a/src/views/fence/test/1/index.vue +++ /dev/null @@ -1,248 +0,0 @@ - - - - - diff --git a/src/views/fence/test/3/index.vue b/src/views/fence/test/3/index.vue deleted file mode 100644 index c938f7c..0000000 --- a/src/views/fence/test/3/index.vue +++ /dev/null @@ -1,849 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/fence/test/che.vue b/src/views/fence/test/che.vue deleted file mode 100644 index 57bf141..0000000 --- a/src/views/fence/test/che.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - 轨迹回放 - - - - -
-
-

轨迹回放控制

-
- - -
-
- - -
-
- - - - diff --git a/src/views/warn/rule/index.vue b/src/views/warn/rule/index.vue index f03ae79..b87f519 100644 --- a/src/views/warn/rule/index.vue +++ b/src/views/warn/rule/index.vue @@ -116,7 +116,8 @@ - + + > @@ -149,15 +150,21 @@ + {{form}} - - - + + + + @@ -181,7 +188,7 @@