- 新增标签
+ 新增设备
@@ -357,13 +357,17 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
let labelCodes = this.getAllLabelCodes(this.tagData)
+ let arr = this.tagData.ancestors.split(',');
+ arr.shift()
+ arr.shift()
+ arr.push(...labelCodes);
this.$confirm("是否将该设备移出该标签?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(function() {
- return delTagGroupdevice({ deviceKey: row.deviceKey,labelCodes:labelCodes.join()});
+ return delTagGroupdevice({ deviceKey: row.deviceKey,labelCodes:arr});
})
.then(() => {
this.getList();
diff --git a/src/views/iot/project/profileV2/TagType.vue b/src/views/iot/project/profileV2/TagType.vue
index ac1c9816..e93d50a8 100644
--- a/src/views/iot/project/profileV2/TagType.vue
+++ b/src/views/iot/project/profileV2/TagType.vue
@@ -44,12 +44,12 @@
>
修改
- 删除
+
+
+
+
+
+
diff --git a/src/views/iot/project/profileV2/details.vue b/src/views/iot/project/profileV2/details.vue
index 0b3ed653..80355f88 100644
--- a/src/views/iot/project/profileV2/details.vue
+++ b/src/views/iot/project/profileV2/details.vue
@@ -302,81 +302,81 @@ export default {
icon: "iconfont iconxiangmugl",
template: "EObjectContainer",
},
- {
- label: "设备管理",
- key: "EDeviceManage",
- icon: "iconfont iconwumoxing",
- template: "EDeviceManage",
- },
- {
- label: "安全监管",
- key: "safety",
- icon: "iconfont iconanquangl",
- template: "ENavLayout",
- children: [
- // 漏电流 温度 漏电报警 温度报警 漏保自检 短路报警 过欠压 过流过载 电弧报警 三相报警 异常状态 分合闸警示
- {
- label: "全部报警",
- key: "EAlarmManage",
- template: "EAlarmManage",
- },
- {
- label: "漏电流",
- key: "leakage",
- template: "ELeakageCurrent",
- },
- {
- label: "温度",
- key: "A006,A007,A008,A009,B004,B005,B006,B007",
- template: "ESafetyTemplate",
- },
- {
- label: "漏电报警",
- key: "A002,B002",
- template: "ESafetyTemplate",
- },
- {
- label: "漏保自检",
- key: "A002,B004",
- template: "ESafetyTemplate",
- },
- {
- label: "短路报警",
- key: "A001,B004",
- template: "ESafetyTemplate",
- },
- {
- label: "过欠压",
- key: "A005,A004,B000,B001",
- template: "ESafetyTemplate",
- },
- {
- label: "过流过载",
- key: "A003,A013,B003,B009",
- template: "ESafetyTemplate",
- },
- {
- label: "电弧报警",
- key: "A014,B010",
- template: "ESafetyTemplate",
- },
- {
- label: "三相报警",
- key: "A015,B011",
- template: "ESafetyTemplate",
- },
- {
- label: "异常状态",
- key: "A010",
- template: "EDebuff",
- },
- {
- label: "分合闸警示",
- key: "A011",
- template: "EDeviceSwitchWarning",
- },
- ],
- },
+ // {
+ // label: "设备管理",
+ // key: "EDeviceManage",
+ // icon: "iconfont iconwumoxing",
+ // template: "EDeviceManage",
+ // },
+ // {
+ // label: "安全监管",
+ // key: "safety",
+ // icon: "iconfont iconanquangl",
+ // template: "ENavLayout",
+ // children: [
+ // // 漏电流 温度 漏电报警 温度报警 漏保自检 短路报警 过欠压 过流过载 电弧报警 三相报警 异常状态 分合闸警示
+ // {
+ // label: "全部报警",
+ // key: "EAlarmManage",
+ // template: "EAlarmManage",
+ // },
+ // {
+ // label: "漏电流",
+ // key: "leakage",
+ // template: "ELeakageCurrent",
+ // },
+ // {
+ // label: "温度",
+ // key: "A006,A007,A008,A009,B004,B005,B006,B007",
+ // template: "ESafetyTemplate",
+ // },
+ // {
+ // label: "漏电报警",
+ // key: "A002,B002",
+ // template: "ESafetyTemplate",
+ // },
+ // {
+ // label: "漏保自检",
+ // key: "A002,B004",
+ // template: "ESafetyTemplate",
+ // },
+ // {
+ // label: "短路报警",
+ // key: "A001,B004",
+ // template: "ESafetyTemplate",
+ // },
+ // {
+ // label: "过欠压",
+ // key: "A005,A004,B000,B001",
+ // template: "ESafetyTemplate",
+ // },
+ // {
+ // label: "过流过载",
+ // key: "A003,A013,B003,B009",
+ // template: "ESafetyTemplate",
+ // },
+ // {
+ // label: "电弧报警",
+ // key: "A014,B010",
+ // template: "ESafetyTemplate",
+ // },
+ // {
+ // label: "三相报警",
+ // key: "A015,B011",
+ // template: "ESafetyTemplate",
+ // },
+ // {
+ // label: "异常状态",
+ // key: "A010",
+ // template: "EDebuff",
+ // },
+ // {
+ // label: "分合闸警示",
+ // key: "A011",
+ // template: "EDeviceSwitchWarning",
+ // },
+ // ],
+ // },
{
label: "能源管理",
key: "energyManage",
diff --git a/src/views/tenant/alarm/record.vue b/src/views/tenant/alarm/record.vue
index a8dd0776..2f195387 100644
--- a/src/views/tenant/alarm/record.vue
+++ b/src/views/tenant/alarm/record.vue
@@ -2,23 +2,33 @@
-
+
+
+
+
+
+
@@ -26,17 +36,17 @@
搜索
@@ -44,10 +54,10 @@
>重置
导出
@@ -61,23 +71,23 @@
@sort-change="sortChange"
>
+
-
+
-
-
+
+
{{
@@ -110,30 +118,28 @@
处理
创建工单
@@ -143,17 +149,17 @@
@@ -193,6 +199,7 @@ import {
import { handlerRecord } from "@/api/alarm/record";
import Editor from "@/components/Editor";
+import { listProject } from "@/api/tenant/project";
export default {
name: "Record",
@@ -225,6 +232,7 @@ export default {
pageSize: 10,
typeName: null,
typeCode: null,
+ inProject: null,
beginTime: null,
endTime: null,
alarmDivide: "ALARM",
@@ -236,13 +244,26 @@ export default {
// 表单校验
rules: {},
time: [],
+ inProjectList:[],
};
},
created() {
// this.newTime();
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/tenant/alarm/warning.vue b/src/views/tenant/alarm/warning.vue
index bdcedba2..a5572811 100644
--- a/src/views/tenant/alarm/warning.vue
+++ b/src/views/tenant/alarm/warning.vue
@@ -2,40 +2,50 @@
+
+
+
+
+
搜索
@@ -43,10 +53,10 @@
>重置
导出
@@ -60,26 +70,26 @@
@sort-change="sortChange"
>
+
-
+
{{
@@ -88,19 +98,17 @@
-
-
+
+
{{
@@ -109,30 +117,28 @@
处理
创建工单
@@ -142,17 +148,17 @@
@@ -191,6 +197,7 @@ import {
} from "@/api/alarm/tenantAlarm";
import Editor from "@/components/Editor";
import { handlerRecord } from "@/api/alarm/record";
+import { listProject } from "@/api/tenant/project";
export default {
name: "Warning",
@@ -223,6 +230,7 @@ export default {
pageSize: 10,
typeName: null,
typeCode: null,
+ inProject: null,
beginTime: null,
endTime: null,
alarmDivide: "WARNING",
@@ -234,12 +242,26 @@ 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",
diff --git a/src/views/tenant/device/index.vue b/src/views/tenant/device/index.vue
index 96bb3f9a..068bf580 100644
--- a/src/views/tenant/device/index.vue
+++ b/src/views/tenant/device/index.vue
@@ -9,6 +9,16 @@
:model="queryParams"
label-width="68px"
>
+
+
+
+
+
-
-
+
+
+ {{ scope.row.deviceName }}
+
+
+
+
{
+ this.inProjectList = response.rows;
+ });
+ },
// 查询设备类型列表
getDeviceTypeList() {
listDeviceTypeList().then(response => {