File tree 4 files changed +6
-12
lines changed
4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 20
20
> * 用户模块:用户列表(带分页)、新增、删除、编辑、头像上传等
21
21
> * 个人资料编辑设置
22
22
> * 设备模块:设备列表(带分页)、新增、删除、编辑等
23
+ > * 设备实时参数图表展现
23
24
24
25
TODO
25
26
26
- > * 设备实时监控模块、 设备参数告警、参数管理等
27
+ > * 设备参数告警、参数管理等
27
28
> * OAuth2授权管理模块
28
29
> * 消息管理模块
29
30
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export const startSub = () => {
16
16
} ) . on ( 'error' , err => {
17
17
console . log ( "链接mqtt报错" , err )
18
18
client . end ( )
19
- client . reconnect ( )
19
+ client . reconnect ( )
20
20
} ) . on ( "message" , ( topic , message ) => {
21
21
console . log ( 'topic' , topic ) ;
22
22
// message is Buffer
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ export default new Vuex.Store({
10
10
user,
11
11
devArgsMsg
12
12
}
13
- } )
13
+ } )
Original file line number Diff line number Diff line change 40
40
<el-row type =" flex" justify =" space-around" >
41
41
<el-col :span =" 11" >
42
42
<el-row type =" flex" class =" grid-content bg-purple-light" style =" justify-content :center ; align-items : center ;" >
43
- <chart :options =" monitorArgs" v-if =" monitorArgsVisible " ></chart >
43
+ <chart :options =" monitorArgs" v-if =" device.id && device.argId " ></chart >
44
44
<span v-else >请先选择要查看的设备,并选中要查看的参数(确保该参数有上传数值?)</span >
45
45
<!-- <span v-else>该参数暂未收到统计数值</span> -->
46
46
</el-row >
@@ -72,7 +72,6 @@ export default {
72
72
argName: " " , // 当前选中的参数名称
73
73
pic: " " , // 当前选中设备的pic原理图
74
74
},
75
- monitorArgsVisible: false , // monitorArgs图标可见性
76
75
devArgs: [], // table中的所有设备参数
77
76
currentPage: 1 , // table分页
78
77
pageSize: 5 , // table分页
@@ -124,13 +123,7 @@ export default {
124
123
data: this .doneMsg .filter (
125
124
item => {
126
125
// 仅显示当前选择的设备下的选中的参数的历史值
127
- const ret = item .value [2 ] === this .device .argName && (item .value [3 ] + ' ' === this .device .id + ' ' );
128
- if (ret) {
129
- this .monitorArgsVisible = true ;
130
- } else {
131
- this .monitorArgsVisible = false ;
132
- }
133
- return ret
126
+ return item .value [2 ] === this .device .argName && (item .value [3 ] + ' ' === this .device .id + ' ' );
134
127
}
135
128
)
136
129
}
You can’t perform that action at this time.
0 commit comments