Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
b5770ee3
Commit
b5770ee3
authored
Apr 17, 2024
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 发布测试版本
parent
2e525b9a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
9 deletions
+45
-9
index.js
packages/extend-components/EC_HistoryView/src/index.js
+9
-7
indexForBI.less
...ages/extend-components/EC_HistoryView/src/indexForBI.less
+36
-2
No files found.
packages/extend-components/EC_HistoryView/src/index.js
View file @
b5770ee3
...
...
@@ -39,7 +39,7 @@ import {
}
from
'./apis'
;
import
SingleChart
from
'./SingleChart'
;
import
GridChart
from
'./GridChart'
;
import
BIStyles
from
'./indexForBI.less'
;
import
{
globalConfig
}
from
'antd/lib/config-provider'
;
import
{
getSensorType
}
from
'./apis/index'
;
import
{
ExportExcel
}
from
'@wisdom-components/exportexcel'
;
...
...
@@ -318,9 +318,11 @@ const timeColumn = {
const
OriginMaxDays
=
31
;
// 原始曲线请求数据的最大天数
const
CharacteristicMaxDays
=
null
;
// 特征曲线或者其他曲线的最大天数
const
HistoryView
=
(
props
)
=>
{
debugger
const
[
completeInit
,
setCompleteInit
]
=
useState
(
false
);
const
{
getPrefixCls
}
=
useContext
(
ConfigProvider
.
ConfigContext
);
const
prefixCls
=
getPrefixCls
(
'history-view'
);
const
prefixCls
=
props
.
theme
===
'BI'
?
getPrefixCls
(
'BI-history-view'
)
:
getPrefixCls
(
'history-view'
);
// const prefixClsForBI = getPrefixCls('BI-history-view');
const
themeMap
=
{
Normal
:
`
${
prefixCls
}
-wrapper`
,
BI
:
`
${
prefixCls
}
-BI-wrapper`
...
...
@@ -337,7 +339,7 @@ const HistoryView = (props) => {
defaultDate
,
theme
=
"Normal"
}
=
props
;
if
(
theme
===
'Normal'
)
import
(
'./index.less'
)
if
(
theme
===
'Normal'
)
import
(
'./index.less'
)
;
if
(
theme
===
'BI'
)
import
(
'./indexForBI.less'
);
const
isBoxPlots
=
deviceParams
?.
length
===
1
&&
deviceParams
?.[
0
]?.
sensors
?.
split
(
','
).
length
===
1
;
...
...
@@ -1549,8 +1551,9 @@ const HistoryView = (props) => {
}
},
[
loading
]);
return
(
<
ConfigProvider
theme
=
{{
primaryColor
:
'red'
}}
>
<
div
className
=
{
classNames
(
prefixCls
,
'wkt-scroll-light'
)}
>
<
ConfigProvider
prefixCls
=
{
`
${
getPrefixCls
()}
-BI`
}
>
<
div
className
=
{
classNames
(
prefixCls
,
theme
===
'BI'
?
BIStyles
.
historyViewComponents
:
''
,
'wkt-scroll-light'
)}
>
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-spin`
)}
style
=
{{
position
:
'relative'
}}
>
{
loading
||
percent
!==
0
?
(
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-progressWrapper`
)}
>
...
...
@@ -1609,8 +1612,7 @@ const HistoryView = (props) => {
<
/div
>
<
/div
>
<
/ConfigProvider
>
);
)
};
HistoryView
.
propTypes
=
{
...
...
packages/extend-components/EC_HistoryView/src/indexForBI.less
View file @
b5770ee3
@root-entry-name: 'default';
@import (reference) '~antd/es/style/themes/dark.less';
@history-view: ~'@{ant-prefix}-history-view';
@primary-color:red;
@outline-color:red;
@BI-primary-color: #ff0000;
.historyViewComponents {
:global {
.@{ant-prefix}-radio-button-wrapper-checked:not(.@{ant-prefix}-radio-button-wrapper-disabled) {
color: @BI-primary-color;
}
.@{ant-prefix}-radio-button-wrapper-checked:not([class*=' @{ant-prefix}-radio-button-wrapper-disabled']).@{ant-prefix}-radio-button-wrapper:first-child {
border-right-color: @BI-primary-color;
}
.@{ant-prefix}-radio-button-wrapper-checked:not(.@{ant-prefix}-radio-button-wrapper-disabled):first-child {
color: @BI-primary-color;
}
.@{ant-prefix}-radio-button-wrapper-checked:not(.@{ant-prefix}-radio-button-wrapper-disabled):first-child {
border-color: @BI-primary-color;
}
.@{ant-prefix}-radio-button-wrapper:hover {
color: @BI-primary-color;
}
.@{ant-prefix}-tabs-tab.ant-tabs-tab-active .@{ant-prefix}-tabs-tab-btn {
color: @BI-primary-color;
}
.@{ant-prefix}-tabs-tab-btn:focus, .@{ant-prefix}-tabs-tab-remove:focus, .@{ant-prefix}-tabs-tab-btn:active, .@{ant-prefix}-tabs-tab-remove:active {
color: @BI-primary-color;
}
.@{ant-prefix}-tabs-tab:hover {
color: @BI-primary-color;
}
}
}
.@{history-view} {
height: 100%;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment