diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/special.ts b/src/api/home/rule/special.ts
new file mode 100644
index 0000000..5ecd2a0
--- /dev/null
+++ b/src/api/home/rule/special.ts
@@ -0,0 +1,39 @@
+/**
+ * 规则引擎--特殊报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getSpecialAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRuleDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeSpecialAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRuleDevice/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新增
+export function addSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/special.ts b/src/api/home/rule/special.ts
new file mode 100644
index 0000000..5ecd2a0
--- /dev/null
+++ b/src/api/home/rule/special.ts
@@ -0,0 +1,39 @@
+/**
+ * 规则引擎--特殊报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getSpecialAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRuleDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeSpecialAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRuleDevice/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新增
+export function addSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/views/home/pipeline/components/map.vue b/src/views/home/pipeline/components/map.vue
index 662d4c7..6f9660b 100644
--- a/src/views/home/pipeline/components/map.vue
+++ b/src/views/home/pipeline/components/map.vue
@@ -255,6 +255,9 @@
})
// 绘制线
resetDrawLine()
+ setTimeout(() => {
+ pageIsFirst.value = false
+ }, 2000)
}
defineExpose({ openInfoDetail, drawMarker, resetDraw, drawLine, resetDrawLine, mapRef })
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/special.ts b/src/api/home/rule/special.ts
new file mode 100644
index 0000000..5ecd2a0
--- /dev/null
+++ b/src/api/home/rule/special.ts
@@ -0,0 +1,39 @@
+/**
+ * 规则引擎--特殊报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getSpecialAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRuleDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeSpecialAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRuleDevice/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新增
+export function addSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/views/home/pipeline/components/map.vue b/src/views/home/pipeline/components/map.vue
index 662d4c7..6f9660b 100644
--- a/src/views/home/pipeline/components/map.vue
+++ b/src/views/home/pipeline/components/map.vue
@@ -255,6 +255,9 @@
})
// 绘制线
resetDrawLine()
+ setTimeout(() => {
+ pageIsFirst.value = false
+ }, 2000)
}
defineExpose({ openInfoDetail, drawMarker, resetDraw, drawLine, resetDrawLine, mapRef })
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/rule/alarm/components/alarmLevelList.vue b/src/views/home/rule/alarm/components/alarmLevelList.vue
new file mode 100644
index 0000000..c1b129d
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmLevelList.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/special.ts b/src/api/home/rule/special.ts
new file mode 100644
index 0000000..5ecd2a0
--- /dev/null
+++ b/src/api/home/rule/special.ts
@@ -0,0 +1,39 @@
+/**
+ * 规则引擎--特殊报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getSpecialAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRuleDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeSpecialAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRuleDevice/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新增
+export function addSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/views/home/pipeline/components/map.vue b/src/views/home/pipeline/components/map.vue
index 662d4c7..6f9660b 100644
--- a/src/views/home/pipeline/components/map.vue
+++ b/src/views/home/pipeline/components/map.vue
@@ -255,6 +255,9 @@
})
// 绘制线
resetDrawLine()
+ setTimeout(() => {
+ pageIsFirst.value = false
+ }, 2000)
}
defineExpose({ openInfoDetail, drawMarker, resetDraw, drawLine, resetDrawLine, mapRef })
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/rule/alarm/components/alarmLevelList.vue b/src/views/home/rule/alarm/components/alarmLevelList.vue
new file mode 100644
index 0000000..c1b129d
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmLevelList.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/alarmTypeList.vue b/src/views/home/rule/alarm/components/alarmTypeList.vue
new file mode 100644
index 0000000..f3bc573
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmTypeList.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/special.ts b/src/api/home/rule/special.ts
new file mode 100644
index 0000000..5ecd2a0
--- /dev/null
+++ b/src/api/home/rule/special.ts
@@ -0,0 +1,39 @@
+/**
+ * 规则引擎--特殊报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getSpecialAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRuleDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeSpecialAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRuleDevice/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新增
+export function addSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/views/home/pipeline/components/map.vue b/src/views/home/pipeline/components/map.vue
index 662d4c7..6f9660b 100644
--- a/src/views/home/pipeline/components/map.vue
+++ b/src/views/home/pipeline/components/map.vue
@@ -255,6 +255,9 @@
})
// 绘制线
resetDrawLine()
+ setTimeout(() => {
+ pageIsFirst.value = false
+ }, 2000)
}
defineExpose({ openInfoDetail, drawMarker, resetDraw, drawLine, resetDrawLine, mapRef })
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/rule/alarm/components/alarmLevelList.vue b/src/views/home/rule/alarm/components/alarmLevelList.vue
new file mode 100644
index 0000000..c1b129d
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmLevelList.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/alarmTypeList.vue b/src/views/home/rule/alarm/components/alarmTypeList.vue
new file mode 100644
index 0000000..f3bc573
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmTypeList.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
new file mode 100644
index 0000000..fe60451
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/special.ts b/src/api/home/rule/special.ts
new file mode 100644
index 0000000..5ecd2a0
--- /dev/null
+++ b/src/api/home/rule/special.ts
@@ -0,0 +1,39 @@
+/**
+ * 规则引擎--特殊报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getSpecialAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRuleDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeSpecialAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRuleDevice/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新增
+export function addSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/views/home/pipeline/components/map.vue b/src/views/home/pipeline/components/map.vue
index 662d4c7..6f9660b 100644
--- a/src/views/home/pipeline/components/map.vue
+++ b/src/views/home/pipeline/components/map.vue
@@ -255,6 +255,9 @@
})
// 绘制线
resetDrawLine()
+ setTimeout(() => {
+ pageIsFirst.value = false
+ }, 2000)
}
defineExpose({ openInfoDetail, drawMarker, resetDraw, drawLine, resetDrawLine, mapRef })
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/rule/alarm/components/alarmLevelList.vue b/src/views/home/rule/alarm/components/alarmLevelList.vue
new file mode 100644
index 0000000..c1b129d
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmLevelList.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/alarmTypeList.vue b/src/views/home/rule/alarm/components/alarmTypeList.vue
new file mode 100644
index 0000000..f3bc573
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmTypeList.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
new file mode 100644
index 0000000..fe60451
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
new file mode 100644
index 0000000..59c523f
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/special.ts b/src/api/home/rule/special.ts
new file mode 100644
index 0000000..5ecd2a0
--- /dev/null
+++ b/src/api/home/rule/special.ts
@@ -0,0 +1,39 @@
+/**
+ * 规则引擎--特殊报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getSpecialAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRuleDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeSpecialAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRuleDevice/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新增
+export function addSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/views/home/pipeline/components/map.vue b/src/views/home/pipeline/components/map.vue
index 662d4c7..6f9660b 100644
--- a/src/views/home/pipeline/components/map.vue
+++ b/src/views/home/pipeline/components/map.vue
@@ -255,6 +255,9 @@
})
// 绘制线
resetDrawLine()
+ setTimeout(() => {
+ pageIsFirst.value = false
+ }, 2000)
}
defineExpose({ openInfoDetail, drawMarker, resetDraw, drawLine, resetDrawLine, mapRef })
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/rule/alarm/components/alarmLevelList.vue b/src/views/home/rule/alarm/components/alarmLevelList.vue
new file mode 100644
index 0000000..c1b129d
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmLevelList.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/alarmTypeList.vue b/src/views/home/rule/alarm/components/alarmTypeList.vue
new file mode 100644
index 0000000..f3bc573
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmTypeList.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
new file mode 100644
index 0000000..fe60451
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
new file mode 100644
index 0000000..59c523f
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editDialog.vue b/src/views/home/rule/alarm/components/editDialog.vue
new file mode 100644
index 0000000..d4357eb
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editDialog.vue
@@ -0,0 +1,277 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/special.ts b/src/api/home/rule/special.ts
new file mode 100644
index 0000000..5ecd2a0
--- /dev/null
+++ b/src/api/home/rule/special.ts
@@ -0,0 +1,39 @@
+/**
+ * 规则引擎--特殊报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getSpecialAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRuleDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeSpecialAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRuleDevice/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新增
+export function addSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/views/home/pipeline/components/map.vue b/src/views/home/pipeline/components/map.vue
index 662d4c7..6f9660b 100644
--- a/src/views/home/pipeline/components/map.vue
+++ b/src/views/home/pipeline/components/map.vue
@@ -255,6 +255,9 @@
})
// 绘制线
resetDrawLine()
+ setTimeout(() => {
+ pageIsFirst.value = false
+ }, 2000)
}
defineExpose({ openInfoDetail, drawMarker, resetDraw, drawLine, resetDrawLine, mapRef })
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/rule/alarm/components/alarmLevelList.vue b/src/views/home/rule/alarm/components/alarmLevelList.vue
new file mode 100644
index 0000000..c1b129d
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmLevelList.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/alarmTypeList.vue b/src/views/home/rule/alarm/components/alarmTypeList.vue
new file mode 100644
index 0000000..f3bc573
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmTypeList.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
new file mode 100644
index 0000000..fe60451
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
new file mode 100644
index 0000000..59c523f
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editDialog.vue b/src/views/home/rule/alarm/components/editDialog.vue
new file mode 100644
index 0000000..d4357eb
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editDialog.vue
@@ -0,0 +1,277 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/index.vue b/src/views/home/rule/alarm/index.vue
index 98f2b83..dbcfed3 100644
--- a/src/views/home/rule/alarm/index.vue
+++ b/src/views/home/rule/alarm/index.vue
@@ -5,19 +5,25 @@
-->
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/rule/alarm/components/alarmLevelList.vue b/src/views/home/rule/alarm/components/alarmLevelList.vue
new file mode 100644
index 0000000..c1b129d
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmLevelList.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/alarmTypeList.vue b/src/views/home/rule/alarm/components/alarmTypeList.vue
new file mode 100644
index 0000000..f3bc573
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmTypeList.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
new file mode 100644
index 0000000..fe60451
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
new file mode 100644
index 0000000..59c523f
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editDialog.vue b/src/views/home/rule/alarm/components/editDialog.vue
new file mode 100644
index 0000000..d4357eb
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editDialog.vue
@@ -0,0 +1,277 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/index.vue b/src/views/home/rule/alarm/index.vue
index 98f2b83..dbcfed3 100644
--- a/src/views/home/rule/alarm/index.vue
+++ b/src/views/home/rule/alarm/index.vue
@@ -5,19 +5,25 @@
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %LEL
+
+
+
+
+
+
+ 保存
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/special.ts b/src/api/home/rule/special.ts
new file mode 100644
index 0000000..5ecd2a0
--- /dev/null
+++ b/src/api/home/rule/special.ts
@@ -0,0 +1,39 @@
+/**
+ * 规则引擎--特殊报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getSpecialAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRuleDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeSpecialAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRuleDevice/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新增
+export function addSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/views/home/pipeline/components/map.vue b/src/views/home/pipeline/components/map.vue
index 662d4c7..6f9660b 100644
--- a/src/views/home/pipeline/components/map.vue
+++ b/src/views/home/pipeline/components/map.vue
@@ -255,6 +255,9 @@
})
// 绘制线
resetDrawLine()
+ setTimeout(() => {
+ pageIsFirst.value = false
+ }, 2000)
}
defineExpose({ openInfoDetail, drawMarker, resetDraw, drawLine, resetDrawLine, mapRef })
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/rule/alarm/components/alarmLevelList.vue b/src/views/home/rule/alarm/components/alarmLevelList.vue
new file mode 100644
index 0000000..c1b129d
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmLevelList.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/alarmTypeList.vue b/src/views/home/rule/alarm/components/alarmTypeList.vue
new file mode 100644
index 0000000..f3bc573
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmTypeList.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
new file mode 100644
index 0000000..fe60451
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
new file mode 100644
index 0000000..59c523f
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editDialog.vue b/src/views/home/rule/alarm/components/editDialog.vue
new file mode 100644
index 0000000..d4357eb
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editDialog.vue
@@ -0,0 +1,277 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/index.vue b/src/views/home/rule/alarm/index.vue
index 98f2b83..dbcfed3 100644
--- a/src/views/home/rule/alarm/index.vue
+++ b/src/views/home/rule/alarm/index.vue
@@ -5,19 +5,25 @@
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %LEL
+
+
+
+
+
+
+ 保存
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/special/index.vue b/src/views/home/rule/special/index.vue
index b739dcd..65f2650 100644
--- a/src/views/home/rule/special/index.vue
+++ b/src/views/home/rule/special/index.vue
@@ -5,20 +5,22 @@
-->
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/rule/alarm/components/alarmLevelList.vue b/src/views/home/rule/alarm/components/alarmLevelList.vue
new file mode 100644
index 0000000..c1b129d
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmLevelList.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/alarmTypeList.vue b/src/views/home/rule/alarm/components/alarmTypeList.vue
new file mode 100644
index 0000000..f3bc573
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmTypeList.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
new file mode 100644
index 0000000..fe60451
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
new file mode 100644
index 0000000..59c523f
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editDialog.vue b/src/views/home/rule/alarm/components/editDialog.vue
new file mode 100644
index 0000000..d4357eb
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editDialog.vue
@@ -0,0 +1,277 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/index.vue b/src/views/home/rule/alarm/index.vue
index 98f2b83..dbcfed3 100644
--- a/src/views/home/rule/alarm/index.vue
+++ b/src/views/home/rule/alarm/index.vue
@@ -5,19 +5,25 @@
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %LEL
+
+
+
+
+
+
+ 保存
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/special/index.vue b/src/views/home/rule/special/index.vue
index b739dcd..65f2650 100644
--- a/src/views/home/rule/special/index.vue
+++ b/src/views/home/rule/special/index.vue
@@ -5,20 +5,22 @@
-->
@@ -198,7 +201,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -211,17 +214,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/api/home/rule/alarm.ts b/src/api/home/rule/alarm.ts
new file mode 100644
index 0000000..f2041d0
--- /dev/null
+++ b/src/api/home/rule/alarm.ts
@@ -0,0 +1,115 @@
+/**
+ * 规则引擎--报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRule/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 停用或者启用
+export function switchStatus(data: any) {
+ return request({
+ url: '/system/alarmRule/stop',
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRule/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建
+export function addAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRule/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警类型管理列表
+export function getAlarmTypeListPage(data: any) {
+ return request({
+ url: `/system/alarmType/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警类型
+export function removeAlarmType(id: string) {
+ return request({
+ url: '/system/alarmType/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警类型
+export function addAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警类型
+export function editAlarmType(data: any) {
+ return request({
+ url: '/system/alarmType/edit',
+ method: 'post',
+ data,
+ })
+}
+// 报警等级管理列表
+export function getAlarmLevelListPage(data: any) {
+ return request({
+ url: `/system/alarmLevelControl/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除报警等级
+export function removeAlarmLevel(id: string) {
+ return request({
+ url: '/system/alarmLevelControl/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新建报警等级
+export function addAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑报警等级
+export function editAlarmLevel(data: any) {
+ return request({
+ url: '/system/alarmLevelControl/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/home/rule/special.ts b/src/api/home/rule/special.ts
new file mode 100644
index 0000000..5ecd2a0
--- /dev/null
+++ b/src/api/home/rule/special.ts
@@ -0,0 +1,39 @@
+/**
+ * 规则引擎--特殊报警规则管理接口
+ */
+import request from '@/api/index'
+
+// 基础列表
+export function getSpecialAlarmRuleListPage(data: any) {
+ return request({
+ url: `/system/alarmRuleDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 删除
+export function removeSpecialAlarmRule(id: any) {
+ return request({
+ url: '/system/alarmRuleDevice/batchDelete',
+ method: 'post',
+ data: {
+ ids: [id],
+ },
+ })
+}
+// 新增
+export function addSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/add',
+ method: 'post',
+ data,
+ })
+}
+// 编辑
+export function editSpecialAlarmRule(data: any) {
+ return request({
+ url: '/system/alarmRuleDevice/edit',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/views/home/pipeline/components/map.vue b/src/views/home/pipeline/components/map.vue
index 662d4c7..6f9660b 100644
--- a/src/views/home/pipeline/components/map.vue
+++ b/src/views/home/pipeline/components/map.vue
@@ -255,6 +255,9 @@
})
// 绘制线
resetDrawLine()
+ setTimeout(() => {
+ pageIsFirst.value = false
+ }, 2000)
}
defineExpose({ openInfoDetail, drawMarker, resetDraw, drawLine, resetDrawLine, mapRef })
@@ -270,7 +273,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -283,17 +286,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/rule/alarm/components/alarmLevelList.vue b/src/views/home/rule/alarm/components/alarmLevelList.vue
new file mode 100644
index 0000000..c1b129d
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmLevelList.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/alarmTypeList.vue b/src/views/home/rule/alarm/components/alarmTypeList.vue
new file mode 100644
index 0000000..f3bc573
--- /dev/null
+++ b/src/views/home/rule/alarm/components/alarmTypeList.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
new file mode 100644
index 0000000..fe60451
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmLevelDialog.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
new file mode 100644
index 0000000..59c523f
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editAlarmTypeDialog.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/components/editDialog.vue b/src/views/home/rule/alarm/components/editDialog.vue
new file mode 100644
index 0000000..d4357eb
--- /dev/null
+++ b/src/views/home/rule/alarm/components/editDialog.vue
@@ -0,0 +1,277 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/alarm/index.vue b/src/views/home/rule/alarm/index.vue
index 98f2b83..dbcfed3 100644
--- a/src/views/home/rule/alarm/index.vue
+++ b/src/views/home/rule/alarm/index.vue
@@ -5,19 +5,25 @@
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %LEL
+
+
+
+
+
+
+ 保存
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/rule/special/index.vue b/src/views/home/rule/special/index.vue
index b739dcd..65f2650 100644
--- a/src/views/home/rule/special/index.vue
+++ b/src/views/home/rule/special/index.vue
@@ -5,20 +5,22 @@
-->
@@ -198,7 +201,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -211,17 +214,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;
diff --git a/src/views/home/well/components/map.vue b/src/views/home/well/components/map.vue
index f74230f..6b3d892 100644
--- a/src/views/home/well/components/map.vue
+++ b/src/views/home/well/components/map.vue
@@ -96,7 +96,7 @@
const data = $props.data.map((item: any) => ({ ...item, monitorState: item.monitorState || '0' })).filter((item: any) => legendShowData.value.includes(item.monitorState)).filter((item: any) => item.lngGaode && item.latGaode).map((item: any) => ({
lnglat: [item.lngGaode, item.latGaode],
name: item.ledgerName,
- style: item.monitorState ? styleDict[item.monitorState] : 3,
+ style: item.monitorState ? styleDict[item.monitorState] : 0,
id: item.id,
row: item,
}))
@@ -183,6 +183,9 @@
console.log('地图绘制完毕')
// 绘制海量点
resetDraw()
+ setTimeout(() => {
+ pageIsFirst.value = false
+ }, 2000)
}
defineExpose({ openInfoDetail, drawMarker, resetDraw })
@@ -198,7 +201,7 @@
-
{{ item.name }}
+
{{ item.name }}
@@ -211,17 +214,17 @@
}
.legend {
- background: rgb(68 66 66 / 20%);
+ background: rgb(255 255 255 / 80%);
position: absolute;
z-index: 1;
left: 15px;
bottom: 10px;
padding: 0 10px;
- border-radius: 8px;
+ border-radius: 3px;
.legend-item {
- margin: 5px 0;
- font-weight: 700;
+ margin: 10px 0;
+ // font-weight: 700;
display: flex;
align-items: center;