From f2d896626aa408d110275d01cf475892e4745931 Mon Sep 17 00:00:00 2001
From: fhysy <1149505133@qq.com>
Date: Tue, 12 Nov 2024 14:13:28 +0800
Subject: [PATCH] =?UTF-8?q?=20fast(=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E3=80=81=E5=91=8A=E8=AD=A6=E7=AE=A1=E7=90=86):=20=E8=AE=BE?=
=?UTF-8?q?=E5=A4=87=E7=AE=A1=E7=90=86=E3=80=81=E6=8A=A5=E8=AD=A6=E8=AE=B0?=
=?UTF-8?q?=E5=BD=95=E3=80=81=E9=A2=84=E8=AD=A6=E8=AE=B0=E5=BD=95=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E9=A1=B9=E7=9B=AE=E6=9F=A5=E8=AF=A2=E5=92=8C=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/iot/alarm/waringRecord/index.vue | 112 +++++++++++--------
src/views/iot/device/index.vue | 31 +++++-
src/views/personal/waring/index.vue | 120 +++++++++++++--------
3 files changed, 168 insertions(+), 95 deletions(-)
diff --git a/src/views/iot/alarm/waringRecord/index.vue b/src/views/iot/alarm/waringRecord/index.vue
index 62aa45ac..f1665a07 100644
--- a/src/views/iot/alarm/waringRecord/index.vue
+++ b/src/views/iot/alarm/waringRecord/index.vue
@@ -2,40 +2,50 @@
+
+
+
+
+
-
+
搜索
@@ -43,10 +53,10 @@
>重置
导出
@@ -60,29 +70,29 @@
@sort-change="sortChange"
>
+
-
+
@@ -92,24 +102,21 @@
-
-
+
+
{{
@@ -118,31 +125,29 @@
处理
创建工单
@@ -152,9 +157,9 @@
@@ -168,6 +173,7 @@ import {
addAlarmRecord,
handlerRecord,
} from "@/api/alarm/record";
+import { listProject } from "@/api/tenant/project";
export default {
name: "WarningRecord",
@@ -198,6 +204,7 @@ export default {
pageSize: 10,
typeName: null,
typeCode: null,
+ inProject: null,
beginTime: null,
endTime: null,
alarmDivide: "WARNING",
@@ -209,12 +216,25 @@ export default {
// 表单校验
rules: {},
time: [],
+ inProjectList:[],
};
},
created() {
this.getList();
+ this.getInProjectList();
},
methods: {
+ // 查询所属项目列表
+ getInProjectList() {
+ listProject({
+ pageNum: 1,
+ pageSize: 100,
+ orderByColumn: 'createTime',
+ isAsc: 'desc'
+ }).then(response => {
+ this.inProjectList = response.rows;
+ });
+ },
// 处理告警
handleUpdate(row) {
const recordId = row.recordId || this.ids;
diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue
index 00252c52..f3bf6b4d 100644
--- a/src/views/iot/device/index.vue
+++ b/src/views/iot/device/index.vue
@@ -14,6 +14,16 @@
:model="queryParams"
label-width="68px"
>
+
+
+
+
+
@@ -137,6 +147,7 @@
+
{
+ this.inProjectList = response.rows;
+ });
+ },
handleDeviceDialogEvent(e) {
this.form.parentId = e.deviceId;
this.form.parentName = e.deviceName;
diff --git a/src/views/personal/waring/index.vue b/src/views/personal/waring/index.vue
index 2dc1ed00..6ba11dce 100644
--- a/src/views/personal/waring/index.vue
+++ b/src/views/personal/waring/index.vue
@@ -2,40 +2,50 @@
+
+
+
+
+
-
+
搜索
@@ -48,12 +58,12 @@
导出
@@ -70,30 +80,31 @@
@sort-change="sortChange"
>
+
-
+
{{
@@ -102,24 +113,24 @@
-
-
+
+
{{
@@ -128,31 +139,31 @@
处理
创建工单
@@ -162,9 +173,9 @@
@@ -174,6 +185,7 @@
import { listRecord, exportRecord } from "@/api/personal/alarm";
import { addAlarmRecord } from "@/api/alarm/tenantAlarm";
import { handlerRecord } from "@/api/alarm/record";
+import { listProject } from "@/api/tenant/project";
export default {
name: "WarningRecord",
@@ -204,6 +216,7 @@ export default {
pageSize: 10,
typeName: null,
typeCode: null,
+ inProject: null,
beginTime: null,
endTime: null,
alarmDivide: "WARNING",
@@ -213,12 +226,25 @@ export default {
// 表单校验
rules: {},
time: [],
+ inProjectList:[],
};
},
created() {
this.getList();
+ this.getInProjectList();
},
methods: {
+ // 查询所属项目列表
+ getInProjectList() {
+ listProject({
+ pageNum: 1,
+ pageSize: 100,
+ orderByColumn: 'createTime',
+ isAsc: 'desc'
+ }).then(response => {
+ this.inProjectList = response.rows;
+ });
+ },
sortChange(column) {
const sort = {
isAsc: column.order === "descending" ? "desc" : "asc",