Commit b5770ee3 authored by 陈龙's avatar 陈龙

feat: 发布测试版本

parent 2e525b9a
......@@ -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 = {
......
@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%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment