From 76309559a27cf25b1c991d19ca13b2f3ff70e7a8 Mon Sep 17 00:00:00 2001
From: ruyaxie <648179520@qq.comgit>
Date: Fri, 20 Sep 2024 21:20:32 +0800
Subject: [PATCH] =?UTF-8?q?feat():=E4=BF=AE=E5=A4=8D=E8=BD=A6=E8=BE=86?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E5=89=8D=E5=8F=B0=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/platform/logs.js | 44 ++++
src/api/platform/rule.js | 44 ++++
src/api/platform/strategy.js | 44 ++++
src/views/car/car/index.vue | 26 --
src/views/platform/logs/index.vue | 364 ++++++++++++++++++++++++++
src/views/platform/rule/index.vue | 329 +++++++++++++++++++++++
src/views/platform/strategy/index.vue | 273 +++++++++++++++++++
7 files changed, 1098 insertions(+), 26 deletions(-)
create mode 100644 src/api/platform/logs.js
create mode 100644 src/api/platform/rule.js
create mode 100644 src/api/platform/strategy.js
create mode 100644 src/views/platform/logs/index.vue
create mode 100644 src/views/platform/rule/index.vue
create mode 100644 src/views/platform/strategy/index.vue
diff --git a/src/api/platform/logs.js b/src/api/platform/logs.js
new file mode 100644
index 0000000..cc5f885
--- /dev/null
+++ b/src/api/platform/logs.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询预警日志列表
+export function listLogs(query) {
+ return request({
+ url: '/warn/logs/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询预警日志详细
+export function getLogs(id) {
+ return request({
+ url: '/warn/logs/' + id,
+ method: 'get'
+ })
+}
+
+// 新增预警日志
+export function addLogs(data) {
+ return request({
+ url: '/warn/logs',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改预警日志
+export function updateLogs(data) {
+ return request({
+ url: '/warn/logs',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除预警日志
+export function delLogs(id) {
+ return request({
+ url: '/warn/logs/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/platform/rule.js b/src/api/platform/rule.js
new file mode 100644
index 0000000..146db11
--- /dev/null
+++ b/src/api/platform/rule.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询预警规则列表
+export function listRule(query) {
+ return request({
+ url: '/warn/rule/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询预警规则详细
+export function getRule(id) {
+ return request({
+ url: '/warn/rule/' + id,
+ method: 'get'
+ })
+}
+
+// 新增预警规则
+export function addRule(data) {
+ return request({
+ url: '/warn/rule',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改预警规则
+export function updateRule(data) {
+ return request({
+ url: '/warn/rule',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除预警规则
+export function delRule(id) {
+ return request({
+ url: '/warn/rule/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/platform/strategy.js b/src/api/platform/strategy.js
new file mode 100644
index 0000000..6cec6de
--- /dev/null
+++ b/src/api/platform/strategy.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询预警策略列表
+export function listStrategy(query) {
+ return request({
+ url: '/warn/strategy/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询预警策略详细
+export function getStrategy(id) {
+ return request({
+ url: '/warn/strategy/' + id,
+ method: 'get'
+ })
+}
+
+// 新增预警策略
+export function addStrategy(data) {
+ return request({
+ url: '/warn/strategy',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改预警策略
+export function updateStrategy(data) {
+ return request({
+ url: '/warn/strategy',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除预警策略
+export function delStrategy(id) {
+ return request({
+ url: '/warn/strategy/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/views/car/car/index.vue b/src/views/car/car/index.vue
index c52dbd4..454c0c8 100644
--- a/src/views/car/car/index.vue
+++ b/src/views/car/car/index.vue
@@ -85,16 +85,6 @@
-
-
- {{ parseTime(scope.row.carLastJoinTime, '{y}-{m}-{d}') }}
-
-
-
-
- {{ parseTime(scope.row.carLastOfflineTime, '{y}-{m}-{d}') }}
-
-
@@ -138,22 +128,6 @@
-
-
-
-
-
-
-
-
diff --git a/src/views/platform/logs/index.vue b/src/views/platform/logs/index.vue
new file mode 100644
index 0000000..9e7f7f5
--- /dev/null
+++ b/src/views/platform/logs/index.vue
@@ -0,0 +1,364 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.startTime, '{y}-{m}-{d}') }}
+
+
+
+
+ {{ parseTime(scope.row.endTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/platform/rule/index.vue b/src/views/platform/rule/index.vue
new file mode 100644
index 0000000..4e76f79
--- /dev/null
+++ b/src/views/platform/rule/index.vue
@@ -0,0 +1,329 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/platform/strategy/index.vue b/src/views/platform/strategy/index.vue
new file mode 100644
index 0000000..87cdd73
--- /dev/null
+++ b/src/views/platform/strategy/index.vue
@@ -0,0 +1,273 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+