diff --git a/ruoyi-ui/src/views/ems/base/baseCollectDeviceInfo/index.vue b/ruoyi-ui/src/views/ems/base/baseCollectDeviceInfo/index.vue
index 767f1a1..954b5af 100644
--- a/ruoyi-ui/src/views/ems/base/baseCollectDeviceInfo/index.vue
+++ b/ruoyi-ui/src/views/ems/base/baseCollectDeviceInfo/index.vue
@@ -98,7 +98,12 @@
-
+
+
+
+ {{ getEnergyTypeName(scope.row.energyTypeId) }}
+
+
@@ -153,7 +158,7 @@
-
+
+
+
+
+
@@ -289,7 +302,7 @@ export default {
},
created() {
getBaseEnergyTypeList({}).then(response => {
- this.energyTypeList = response.data
+ this.energyTypeList = response.data.filter(item => item.energyTypeId !== 1)
})
this.getList()
},
@@ -298,8 +311,8 @@ export default {
getList() {
this.loading = true
listBaseCollectDeviceInfo(this.queryParams).then(response => {
- this.baseCollectDeviceInfoList = response.rows
- this.total = response.total
+ this.baseCollectDeviceInfoList = response.rows.filter(item => item.energyTypeId !== 1)
+ this.total = this.baseCollectDeviceInfoList.length
this.loading = false
})
},
diff --git a/ruoyi-ui/src/views/ems/base/baseEnergyType/index.vue b/ruoyi-ui/src/views/ems/base/baseEnergyType/index.vue
index 42567eb..f9d9970 100644
--- a/ruoyi-ui/src/views/ems/base/baseEnergyType/index.vue
+++ b/ruoyi-ui/src/views/ems/base/baseEnergyType/index.vue
@@ -170,9 +170,9 @@ export default {
form: {},
// 表单校验
rules: {
- objId: [
+/* objId: [
{ required: true, message: '自增标识不能为空', trigger: 'blur' }
- ]
+ ]*/
},
columns: [
{ key: 0, label: `自增标识`, visible: false },
@@ -195,10 +195,11 @@ export default {
getList() {
this.loading = true
listBaseEnergyType(this.queryParams).then(response => {
- this.baseEnergyTypeList = response.rows
+ this.baseEnergyTypeList = response.rows.filter(item => item.energyTypeId !== 1)
+ console.log(this.baseEnergyTypeList)
this.total = response.total
this.loading = false
- })
+ });
},
// 取消按钮
cancel() {
diff --git a/ruoyi-ui/src/views/ems/base/baseMonitorInfo/index.vue b/ruoyi-ui/src/views/ems/base/baseMonitorInfo/index.vue
index 3cb437d..a61bfb7 100644
--- a/ruoyi-ui/src/views/ems/base/baseMonitorInfo/index.vue
+++ b/ruoyi-ui/src/views/ems/base/baseMonitorInfo/index.vue
@@ -253,7 +253,7 @@ export default {
monitorCode: null,
monitorName: null,
monitorAddr: null,
- monitorType: 2,
+ monitorType: 1,
monitorStatus: null,
collectDeviceId: null,
ancestors: null,
diff --git a/ruoyi-ui/src/views/ems/base/baseMonitorInfoIOTDevice/index.vue b/ruoyi-ui/src/views/ems/base/baseMonitorInfoIOTDevice/index.vue
index 5da07cb..6ca84d6 100644
--- a/ruoyi-ui/src/views/ems/base/baseMonitorInfoIOTDevice/index.vue
+++ b/ruoyi-ui/src/views/ems/base/baseMonitorInfoIOTDevice/index.vue
@@ -56,9 +56,14 @@
-
+
+
+
+ {{ getEnergyTypeName(scope.row.monitorType) }}
@@ -117,11 +122,16 @@
-
+
+
+
+
+
@@ -272,18 +282,25 @@ export default {
};
},
created() {
- getBaseEnergyTypeList({}).then(response => {
+/* getBaseEnergyTypeList({}).then(response => {
this.energyTypeList = response.data
- })
+ })*/
+ getBaseEnergyTypeList({}).then(response => {
+ this.energyTypeList = response.data.filter(item => item.energyTypeId !== 1);
+ });
this.getList()
},
methods: {
/** 查询计量设备信息列表 */
getList() {
this.loading = true;
- listBaseMonitorInfo(this.queryParams).then(response => {
+/* listBaseMonitorInfo(this.queryParams).then(response => {
this.baseMonitorInfoList = this.handleTree(response.data, "objId", "parentId");
this.loading = false;
+ });*/
+ listBaseMonitorInfo(this.queryParams).then(response => {
+ this.baseMonitorInfoList = this.handleTree(response.data.filter(item => item.monitorType !== 1), "objId", "parentId");
+ this.loading = false;
});
},
/** 转换计量设备信息数据结构 */
@@ -412,7 +429,17 @@ export default {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => { });
- }
+ },
+ /** 根据能源类型ID获取名称 */
+/* getEnergyTypeName(energyTypeId) {
+ const energyType = this.energyTypeList.find(item => item.energyTypeId === energyTypeId);
+ return energyType ? energyType.energyName : '';
+ },*/
+ getEnergyTypeName(energyTypeId) {
+ if (energyTypeId === 1) return ''; // 当 energyType 为 1 时不显示
+ const energyType = this.energyTypeList.find(item => item.energyTypeId === energyTypeId);
+ return energyType ? energyType.energyName : '';
+ },
}
};
diff --git a/ruoyi-ui/src/views/ems/record/recordIOTInstant/index.vue b/ruoyi-ui/src/views/ems/record/recordIOTInstant/index.vue
index e1f8087..55700da 100644
--- a/ruoyi-ui/src/views/ems/record/recordIOTInstant/index.vue
+++ b/ruoyi-ui/src/views/ems/record/recordIOTInstant/index.vue
@@ -86,7 +86,7 @@
clearable
@keyup.enter.native="handleQuery"
/>
- -->
+ –>-->
-
+
@@ -183,17 +183,17 @@
{{ parseTime(scope.row.collectTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
-
-
-
-
-
-
+
+
+
+
+
+
{{ parseTime(scope.row.recodeTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
-
+
-
-
-
-
-
-
-
-
-
+
+
+
-
+
@@ -368,28 +362,30 @@
alarmType: null,
confirmPersonID: null,
confirmTime: null,
- confirmFlag: null
+ confirmFlag: null,
+ energyType: null,
+ monitorType: null,
},
// 表单参数
form: {},
// 表单校验
rules: {
- objid: [
+/* objid: [
{ required: true, message: "主键标识不能为空", trigger: "blur" }
- ],
+ ],*/
},
columns: [
{ key: 0, label: `主键标识`, visible: true },
{ key: 1, label: `计量设备编号`, visible: true },
{ key: 2, label: `计量设备名称`, visible: true },
{ key: 3, label: `采集时间`, visible: true },
- { key: 4, label: `温度`, visible: true },
- { key: 5, label: `湿度`, visible: true },
- { key: 6, label: `照度`, visible: true },
- { key: 7, label: `噪声`, visible: true },
- { key: 8, label: `硫化氢浓度`, visible: true },
- { key: 9, label: `记录时间`, visible: true },
- { key: 10, label: `报警类型`, visible: true },
+/* { key: 4, label: `温度`, visible: true },*/
+ { key: 4, label: `湿度`, visible: true },
+ { key: 5, label: `照度`, visible: true },
+ { key: 6, label: `噪声`, visible: true },
+ { key: 7, label: `硫化氢浓度`, visible: true },
+ { key: 8, label: `记录时间`, visible: true },
+ { key: 9, label: `报警类型`, visible: true },
]
};
},
@@ -417,19 +413,20 @@
delete node.children
}
return {
- id: node.monitorId,
+ id: node.monitorCode,
label: node.monitorName,
- children: node.children
+ children: node.children,
+ monitorType: node.monitorType // 添加 monitorType 字段
}
},
/** 查询计量设备信息下拉树结构 新增用*/
getTreeMonitorInfo() {
- listBaseMonitorInfo({ monitorTypeList: [5,6,7,8,9] }).then(response => {
+ listBaseMonitorInfo({ }).then(response => {
this.baseMonitorInfoOptions = []
- const data = { objId: 0, monitorName: '顶级节点', children: [] }
- data.children = this.handleTree(response.data, 'objId', 'parentId')
+ const data = { monitorCode: 0, monitorName: '顶级节点', children: [] }
+ data.children = this.handleTree(response.data.filter(item => item.monitorType !== 1), 'objId', 'parentId')
this.baseMonitorInfoOptions.push(data)
- })
+ })
},
/** 查询物联网实时数据列表 */
getList() {
@@ -443,9 +440,10 @@
this.queryParams.params['endRecordTime'] = this.daterangeRecordTime[1]
}
listRecordIOTInstant(this.queryParams).then(response => {
- this.recordIOTInstantList = response.rows;
- this.total = response.total;
- this.loading = false;
+ this.recordIOTInstantList = response.rows.filter(item => item.monitorType !== 1);
+ console.log(this.recordIOTInstantList);
+ this.total = this.recordIOTInstantList.length;
+ this.loading = false;
});
},
// 取消按钮
@@ -469,7 +467,9 @@
alarmType: null,
confirmPersonID: null,
confirmTime: null,
- confirmFlag: null
+ confirmFlag: null,
+ energyType: null,
+ monitorType: null,
};
this.resetForm("form");
},
@@ -504,8 +504,9 @@
},
/** 查询计量设备信息下拉树结构 */
getTreeselect() {
- getMonitorInfoTree({ monitorTypeList: [5,6,7,8,9]}).then(response => {
- this.monitorInfoOptions = response.data
+ getMonitorInfoTree({}).then(response => {
+ console.log(response.data)
+ this.monitorInfoOptions = response.data.filter(item => item.monitorType !== 1);
})
},
// 筛选节点
diff --git a/ruoyi-ui/src/views/ems/report/TemperatureHumidityMonitoring/index.vue b/ruoyi-ui/src/views/ems/report/TemperatureHumidityMonitoring/index.vue
index df362fe..494d01c 100644
--- a/ruoyi-ui/src/views/ems/report/TemperatureHumidityMonitoring/index.vue
+++ b/ruoyi-ui/src/views/ems/report/TemperatureHumidityMonitoring/index.vue
@@ -132,7 +132,8 @@ export default {
zxyg: null,
activePower: null,
reactivePower: null,
- collectType: null
+ collectType: null,
+ monitorType: 1,
},
// 表单参数
form: {},
@@ -142,9 +143,9 @@ export default {
},
// 表单校验
rules: {
- objId: [
+/* objId: [
{ required: true, message: '编号不能为空', trigger: 'blur' }
- ]
+ ]*/
},
columns: [
{ key: 0, label: `主键标识`, visible: false },
@@ -215,7 +216,8 @@ export default {
monitorId: null,
collectTime: null,
recordTime: null,
- collectType: 1
+ collectType: 1,
+ monitorType: 1,
}
this.resetForm('form')
},
@@ -241,7 +243,7 @@ export default {
/** 查询计量设备信息下拉树结构 */
getTreeselect() {
- getMonitorInfoTree({ monitorTypeList: [5,6,7,8,9],monitorType:this.$route.query.monitorType}).then(response => {
+ getMonitorInfoTree({ monitorTypeList: [1],monitorType:this.$route.query.monitorType}).then(response => {
this.monitorInfoOptions = response.data
})
},
diff --git a/ruoyi-ui/src/views/ems/report/TemperatureHumidityMonitoring2/index.vue b/ruoyi-ui/src/views/ems/report/TemperatureHumidityMonitoring2/index.vue
index 7a227ab..6568ce1 100644
--- a/ruoyi-ui/src/views/ems/report/TemperatureHumidityMonitoring2/index.vue
+++ b/ruoyi-ui/src/views/ems/report/TemperatureHumidityMonitoring2/index.vue
@@ -135,7 +135,8 @@ export default {
zxyg: null,
activePower: null,
reactivePower: null,
- collectType: null
+ collectType: null,
+ monitorType: 3
},
// 表单参数
form: {},
@@ -218,7 +219,7 @@ export default {
monitorId: null,
collectTime: null,
recordTime: null,
- collectType: 1
+ collectType: 3
}
this.resetForm('form')
},
@@ -244,7 +245,7 @@ export default {
/** 查询计量设备信息下拉树结构 */
getTreeselect() {
- getMonitorInfoTree({ monitorTypeList: [5,6,7,8,9],monitorType:this.$route.query.monitorType}).then(response => {
+ getMonitorInfoTree({ monitorTypeList: [3],monitorType:this.$route.query.monitorType}).then(response => {
this.monitorInfoOptions = response.data
})
},
diff --git a/ruoyi-ui/src/views/ems/report/currentIOTCurve/index.vue b/ruoyi-ui/src/views/ems/report/currentIOTCurve/index.vue
index 9354a88..a0dfd5f 100644
--- a/ruoyi-ui/src/views/ems/report/currentIOTCurve/index.vue
+++ b/ruoyi-ui/src/views/ems/report/currentIOTCurve/index.vue
@@ -237,8 +237,8 @@ export default {
/** 查询计量设备信息下拉树结构 */
getTreeselect() {
- getMonitorInfoTree({monitorTypeList: [5, 6, 7, 8, 9]}).then(response => {
- this.monitorInfoOptions = response.data
+ getMonitorInfoTree({}).then(response => {
+ this.monitorInfoOptions = response.data.filter(item => item.monitorType !== 1);
})
},
diff --git a/ruoyi-ui/src/views/ems/report/currentIOTCurveTemp/index.vue b/ruoyi-ui/src/views/ems/report/currentIOTCurveTemp/index.vue
new file mode 100644
index 0000000..619797d
--- /dev/null
+++ b/ruoyi-ui/src/views/ems/report/currentIOTCurveTemp/index.vue
@@ -0,0 +1,483 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+