From ac9ae5ee11e399ca24d2882e8b9e597e591921ba Mon Sep 17 00:00:00 2001
From: chentaisen <14615430+chentaisen@user.noreply.gitee.com>
Date: Fri, 20 Sep 2024 22:32:06 +0800
Subject: [PATCH] c
---
src/api/platform/logs.js | 44 ++++
src/api/platform/rule.js | 44 ++++
src/api/platform/strategy.js | 44 ++++
src/views/platform/logs/index.vue | 364 ++++++++++++++++++++++++++
src/views/platform/rule/index.vue | 329 +++++++++++++++++++++++
src/views/platform/strategy/index.vue | 273 +++++++++++++++++++
6 files changed, 1098 insertions(+)
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/platform/logs/index.vue b/src/views/platform/logs/index.vue
new file mode 100644
index 0000000..52679a4
--- /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..16d0222
--- /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..484eb57
--- /dev/null
+++ b/src/views/platform/strategy/index.vue
@@ -0,0 +1,273 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+