Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MyEMS
MyEMS能源管理系统
提交
029f2f77
M
MyEMS能源管理系统
项目概览
MyEMS
/
MyEMS能源管理系统
通知
46
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
MyEMS能源管理系统
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
029f2f77
编写于
5月 30, 2023
作者:
nengyuangzhang
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'PR' into develop
上级
3ff59e9d
50c97dfb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
17 deletion
+2
-17
myems-web/src/components/MyEMS/AuxiliarySystem/DistributionSystem.js
...rc/components/MyEMS/AuxiliarySystem/DistributionSystem.js
+2
-13
myems-web/src/components/MyEMS/AuxiliarySystem/RealtimeChart.js
...web/src/components/MyEMS/AuxiliarySystem/RealtimeChart.js
+0
-4
未找到文件。
myems-web/src/components/MyEMS/AuxiliarySystem/DistributionSystem.js
浏览文件 @
029f2f77
...
...
@@ -56,7 +56,6 @@ const DistributionSystem = ({ setRedirect, setRedirectUrl, t }) => {
// State
// Query Parameters
const
[
distributionSystemList
,
setDistributionSystemList
]
=
useState
([]);
const
[
selectedDistributionSystemName
,
setSelectedDistributionSystemName
]
=
useState
(
undefined
);
const
[
selectedDistributionSystemID
,
setSelectedDistributionSystemID
]
=
useState
(
undefined
);
//Results
...
...
@@ -89,7 +88,6 @@ const DistributionSystem = ({ setRedirect, setRedirectUrl, t }) => {
console
.
log
(
json
);
setDistributionSystemList
(
json
);
setSelectedDistributionSystemID
([
json
[
0
]].
map
(
o
=>
o
.
value
));
setSelectedDistributionSystemName
([
json
[
0
]].
map
(
o
=>
o
.
label
));
let
images
=
{};
json
.
forEach
((
currentValue
,
index
)
=>
{
...
...
@@ -110,11 +108,6 @@ const DistributionSystem = ({ setRedirect, setRedirectUrl, t }) => {
let
onDistributionSystemChange
=
(
event
)
=>
{
setSelectedDistributionSystemID
(
event
.
target
.
value
);
distributionSystemList
.
forEach
((
currentItem
,
index
)
=>
{
if
(
currentItem
[
'
value
'
]
===
event
.
target
.
value
)
{
setSelectedDistributionSystemName
(
currentItem
[
'
label
'
]);
}
});
};
return
(
...
...
@@ -127,12 +120,9 @@ const DistributionSystem = ({ setRedirect, setRedirectUrl, t }) => {
<
Card
className
=
"
bg-light mb-3
"
>
<
CardBody
className
=
"
p-3
"
>
<
Form
>
<
Row
form
>
<
Col
xs
=
{
6
}
sm
=
{
3
}
>
<
Row
form
style
=
{{
height
:
"
38px
"
}}
>
<
Col
xs
=
{
6
}
sm
=
{
3
}
style
=
{{
height
:
"
37px
"
}}
>
<
FormGroup
>
<
Label
className
=
{
labelClasses
}
for
=
"
distributionSystemSelect
"
>
{
t
(
'
Distribution System
'
)}
<
/Label
>
<
CustomInput
type
=
"
select
"
id
=
"
distributionSystemSelect
"
name
=
"
distributionSystemSelect
"
value
=
{
selectedDistributionSystemID
}
onChange
=
{
onDistributionSystemChange
}
>
...
...
@@ -159,7 +149,6 @@ const DistributionSystem = ({ setRedirect, setRedirectUrl, t }) => {
<
Col
lg
=
"
4
"
className
=
"
pr-lg-2
"
key
=
{
uuid
()}
>
<
RealtimeChart
distributionSystemID
=
{
selectedDistributionSystemID
}
distributionSystemName
=
{
selectedDistributionSystemName
}
/
>
<
/Col
>
...
...
myems-web/src/components/MyEMS/AuxiliarySystem/RealtimeChart.js
浏览文件 @
029f2f77
...
...
@@ -123,10 +123,6 @@ class RealtimeChart extends Component {
return
(
<
Card
className
=
"
h-100 bg-gradient
"
>
<
CardHeader
className
=
"
bg-transparent
"
>
<
h5
className
=
"
text-white
"
>
{
this
.
props
.
distributionSystemName
}
<
/h5
>
<
div
className
=
"
real-time-user display-1 font-weight-normal text-white
"
>
{
this
.
state
.
latestUpdateDatetime
}
<
/div
>
<
/CardHeader
>
<
CardBody
className
=
"
text-white fs--1
"
>
<
ListGroup
flush
className
=
"
mt-4
"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录