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",