From 9c2b5a8851fbdcd0a81f5c5d760863365d4acce7 Mon Sep 17 00:00:00 2001
From: Yueng <14617246+YuengMeYuuer@user.noreply.gitee.com>
Date: Sun, 29 Sep 2024 14:21:26 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E6=B7=BB=E7=BB=B4=E6=8A=A4=20?=
=?UTF-8?q?=E8=BD=A6=E8=BE=86=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/car/information.js | 10 +-
src/api/car/message.js | 10 +-
src/api/platform/logs.js | 44 +++
src/api/platform/rule.js | 52 +++
src/api/platform/strategy.js | 52 +++
src/router/index.js | 14 +
src/views/car/information/index.vue | 6 +-
src/views/platform/logs/index.vue | 364 ++++++++++++++++++++
src/views/platform/rule/index.vue | 462 ++++++++++++++++++++++++++
src/views/platform/strategy/index.vue | 312 +++++++++++++++++
10 files changed, 1313 insertions(+), 13 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/car/information.js b/src/api/car/information.js
index 23e36e3..2c215ff 100644
--- a/src/api/car/information.js
+++ b/src/api/car/information.js
@@ -3,7 +3,7 @@ import request from "@/utils/request";
export function selectCarInformationList(data){
return request({
- url:"/car/carinformation/selectCarInformationList",
+ url:"/electronic/carinformation/selectCarInformationList",
method: "POST",
data: data
})
@@ -11,7 +11,7 @@ export function selectCarInformationList(data){
export function addCarInformation(data){
return request({
- url:"/car/carinformation/addCarInformation",
+ url:"/electronic/carinformation/addCarInformation",
method: "POST",
data: data
})
@@ -19,14 +19,14 @@ export function addCarInformation(data){
export function delBycarInformationId(carInformationId) {
return request({
- url: "/car/carinformation/delBycarInformationId" + carInformationId ,
+ url: "/electronic/carinformation/delBycarInformationId" + carInformationId ,
method: "GET"
})
}
export function updatecarInformation(data) {
return request({
- url: "/car/carinformation/updatecarInformation",
+ url: "/electronic/carinformation/updatecarInformation",
method: "POST",
data: data
})
@@ -36,7 +36,7 @@ export function updatecarInformation(data) {
export function orderssd(ordersId) {
return request({
- url: "car/carinformation/" + ordersId ,
+ url: "electronic/carinformation/" + ordersId ,
method: "GET"
})
}
diff --git a/src/api/car/message.js b/src/api/car/message.js
index 07927b8..d8379c4 100644
--- a/src/api/car/message.js
+++ b/src/api/car/message.js
@@ -3,7 +3,7 @@ import request from "@/utils/request";
export function selectCarMessageList(data){
return request({
- url:"/car/carMessage/selectCarMessageList",
+ url:"/electronic/carMessage/selectCarMessageList",
method: "POST",
data: data
})
@@ -11,7 +11,7 @@ export function selectCarMessageList(data){
export function insertCarMessage(data){
return request({
- url:"/car/carMessage/insertCarMessage",
+ url:"/electronic/carMessage/insertCarMessage",
method: "POST",
data: data
})
@@ -19,14 +19,14 @@ export function insertCarMessage(data){
export function delBycarInformationId(carInformationId) {
return request({
- url: "/car/carinformation/delBycarInformationId" + carInformationId ,
+ url: "/electronic/carinformation/delBycarInformationId" + carInformationId ,
method: "GET"
})
}
export function updatecarInformation(data) {
return request({
- url: "/car/carinformation/updatecarInformation",
+ url: "/electronic/carinformation/updatecarInformation",
method: "POST",
data: data
})
@@ -36,7 +36,7 @@ export function updatecarInformation(data) {
export function orderssd(ordersId) {
return request({
- url: "car/carinformation/" + ordersId ,
+ url: "electronic/carinformation/" + ordersId ,
method: "GET"
})
}
diff --git a/src/api/platform/logs.js b/src/api/platform/logs.js
new file mode 100644
index 0000000..69fbc02
--- /dev/null
+++ b/src/api/platform/logs.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询预警日志列表
+export function listLogs(query) {
+ return request({
+ url: '/cloud-warn/logs/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询预警日志详细
+export function getLogs(id) {
+ return request({
+ url: '/cloud-warn/logs/' + id,
+ method: 'get'
+ })
+}
+
+// 新增预警日志
+export function addLogs(data) {
+ return request({
+ url: '/cloud-warn/logs',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改预警日志
+export function updateLogs(data) {
+ return request({
+ url: '/cloud-warn/logs',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除预警日志
+export function delLogs(id) {
+ return request({
+ url: '/cloud-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..3ce8b06
--- /dev/null
+++ b/src/api/platform/rule.js
@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询预警规则列表
+export function listRule(query) {
+ return request({
+ url: '/cloud-warn/rule/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询预警规则详细
+export function getRule(id) {
+ return request({
+ url: '/cloud-warn/rule/' + id,
+ method: 'get'
+ })
+}
+
+// 新增预警规则
+export function addRule(data) {
+ return request({
+ url: '/cloud-warn/rule',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改预警规则
+export function updateRule(data) {
+ return request({
+ url: '/cloud-warn/rule',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除预警规则
+export function delRule(id) {
+ return request({
+ url: '/cloud-warn/rule/' + id,
+ method: 'delete'
+ })
+}
+
+// 查询类型报文模板
+export function findByMsg(id) {
+ return request({
+ url: '/cloud-warn/rule/msg/' + id,
+ method: 'get'
+ })
+}
diff --git a/src/api/platform/strategy.js b/src/api/platform/strategy.js
new file mode 100644
index 0000000..8f854a6
--- /dev/null
+++ b/src/api/platform/strategy.js
@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询预警策略列表
+export function listStrategy(query) {
+ return request({
+ url: '/cloud-warn/strategy/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询预警策略详细
+export function getStrategy(id) {
+ return request({
+ url: '/cloud-warn/strategy/' + id,
+ method: 'get'
+ })
+}
+
+// 新增预警策略
+export function addStrategy(data) {
+ return request({
+ url: '/cloud-warn/strategy',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改预警策略
+export function updateStrategy(data) {
+ return request({
+ url: '/cloud-warn/strategy',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除预警策略
+export function delStrategy(id) {
+ return request({
+ url: '/cloud-warn/strategy/' + id,
+ method: 'delete'
+ })
+}
+
+// 查询车辆类型
+export function findByCarType() {
+ return request({
+ url: '/cloud-warn/strategy/findByCarType',
+ method: 'post',
+ })
+}
diff --git a/src/router/index.js b/src/router/index.js
index f1f4359..3cc9817 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -120,6 +120,20 @@ export const dynamicRoutes = [
}
]
},
+ {
+ path: '/platform/rule',
+ component: Layout,
+ hidden: true,
+ permissions: ['platform:rule:list'],
+ children: [
+ {
+ path: 'index/:id(\\d+)',
+ component: () => import('@/views/platform/rule/index'),
+ name: 'Rule',
+ meta: {title: '规则维护', activeMenu: '/platform/rule'}
+ }
+ ]
+ },
{
path: '/system/role-auth',
component: Layout,
diff --git a/src/views/car/information/index.vue b/src/views/car/information/index.vue
index 450c9fb..4cc21c5 100644
--- a/src/views/car/information/index.vue
+++ b/src/views/car/information/index.vue
@@ -50,7 +50,7 @@
- {{ scope.row.carInformationVIN }}
+ {{ scope.row.carInformationVin }}
@@ -108,7 +108,7 @@
- {{ scope.row.fencename}}
+ {{ scope.row.name}}
@@ -292,7 +292,7 @@ export default {
selectCarInformationList(this.information).then(
res => {
console.log(res)
- this.arr = res.data.list
+ this.arr = res.data.records
this.information.total = res.data.total
}
)
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..cbc1c85
--- /dev/null
+++ b/src/views/platform/rule/index.vue
@@ -0,0 +1,462 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 参看详情
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1/1
+ 1/2
+ 1/3
+ 1/4
+ 1/5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/platform/strategy/index.vue b/src/views/platform/strategy/index.vue
new file mode 100644
index 0000000..91f6536
--- /dev/null
+++ b/src/views/platform/strategy/index.vue
@@ -0,0 +1,312 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 规则维护
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+