Commit 638085c9 authored by 曾婧's avatar 曾婧
parents 2e565a87 0c1c89d1
Pipeline #51837 passed with stages
in 2 minutes 11 seconds
{
"name": "civbase",
"version": "0.0.15",
"version": "0.0.16",
"description": "",
"repository": {
"type": "git",
......@@ -101,14 +101,14 @@
"@ant-design/pro-utils": "^1.10.4",
"@babel/polyfill": "7.4.3",
"@babel/runtime": "^7.10.5",
"@esri/arcgis-html-sanitizer": "2.9.4",
"@esri/arcgis-html-sanitizer": "2.9.5",
"@esri/calcite-colors": "6.0.3",
"@wisdom-cesium/cesium": "^1.0.80",
"@wisdom-components/basictable": "^1.5.16",
"@wisdom-components/empty": "^1.4.1",
"@wisdom-map/amap": "^1.0.49--27.6",
"@wisdom-map/arcgismap": "^1.0.79-48",
"@wisdom-map/basemap": "^1.0.12-48",
"@wisdom-map/amap": "^1.0.49--27.8",
"@wisdom-map/arcgismap": "^1.1.0",
"@wisdom-map/basemap": "^1.0.12-50",
"@wisdom-map/util": "^1.0.27-0",
"@wisdom-utils/components": "0.1.84",
"@wisdom-utils/runtime": "0.0.15",
......
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
......@@ -8,7 +8,7 @@ import { useIntl } from '@wisdom-utils/components';
import { useDocumentTitle } from '@ant-design/pro-utils';
import { useHistory } from '@wisdom-utils/runtime';
import defaultSetting from '@wisdom-utils/components/lib/AppLayout/layouts/defaultSettings'
import defaultSetting from '@wisdom-utils/components/lib/AppLayout/layouts/defaultSettings';
import { actionCreators } from '../../containers/App/store';
import SecurityLayout from '../../layouts/SecurityLayout';
import LoginAction from '../user/login/login';
......@@ -21,11 +21,13 @@ const industries = [
{ name: '供水', type: '供水', subTitle: 'WATER SUPPLY' },
{ name: '农饮水', type: '农饮水', subTitle: 'RURAL POTABLE WATER' },
{ name: '排水', type: '排水', subTitle: 'DRAINAGE' },
{ name: '水利', type: '水利', subTitle: 'WATER CONSERVANCY' },
{ name: '能源', type: '能源', subTitle: 'ENERGY SOURCES' },
{ name: '直饮水', type: '直饮水', subTitle: 'DRINGKING WATER' },
// { name: '直饮水', type: '直饮水', subTitle: 'DRINGKING WATER' },
// { name: '水资源', type: '水资源', subTitle: 'WATER RESOURCES' },
{ name: '大数据', type: '大数据', subTitle: 'BIG DATA' },
{ name: '熊猫智能实验室', type: '实验室', subTitle: 'PANDA AI. LAB' },
{ name: '大数据', type: '大数据', subTitle: 'BIG DATA' },
{ name: '熊猫新产品', type: '熊猫新产品', subTitle: "PANDA'S NEW PRODUCT" },
{ name: '项目案例', type: '项目案例', subTitle: 'PROJECT CASE' },
];
const renderIndustries = (config, callback) =>
......@@ -38,17 +40,10 @@ const renderIndustries = (config, callback) =>
config.userInfo.Industries.indexOf(item.type) > -1
) {
return (
<li
className={styles.bootPageLi}
key={item.type}
onClick={event => callback(event, item.type)}
>
<li className={styles.bootPageLi} key={item.type} onClick={event => callback(event, item.type)}>
<div className={styles.bootPageList}>
<div className={styles.listMain}>
<img
src={require(`../../assets/bootPage/${item.type}.png`)}
alt=""
/>
<img src={require(`../../assets/bootPage/${item.type}.png`)} alt="" />
<span className={styles.bootPageName}>{item.name}</span>
<span className={styles.bootPageNameEng}>{item.subTitle}</span>
</div>
......@@ -112,12 +107,18 @@ const BootPage = props => {
loginAction.events.removeListener('toggleIndustry', handleToggleIndustry);
};
}, [loginAction.events, props]);
const renderIndustr = useMemo(
() => renderIndustries(props.global, handlePage),
[handlePage, props.global.token],
);
const intl = useIntl();
const [IndustryNum, setIndustryNum] = useState(0);
const renderIndustr = useMemo(() => renderIndustries(props.global, handlePage), [handlePage, props.global.token]);
useEffect(() => {
const NewIndustryNum =
props.global && props.global.userInfo && props.global.userInfo.Industries
? props.global.userInfo.Industries.filter(item => !!industries.find(d => d.type === item)).length
: 0;
setIndustryNum(NewIndustryNum);
}, [handlePage, props.global.token]);
const intl = useIntl();
console.log(IndustryNum);
const toOMSUsingAnalysis = e => {
e && e.stopPropagation();
props.history.push(`/usingAnalysis`);
......@@ -133,10 +134,7 @@ const BootPage = props => {
})
.then(res => {
const roles = res && !res.errMsg ? res.roles : null;
const _hasRole =
roles &&
Array.isArray(roles) &&
roles.filter(r => r.name == '客户运维管理员').length;
const _hasRole = roles && Array.isArray(roles) && roles.filter(r => r.name == '客户运维管理员').length;
setHasRole(!!_hasRole);
});
}, [props.global.token]);
......@@ -149,27 +147,18 @@ const BootPage = props => {
{/* eslint-disable-next-line jsx-a11y/alt-text */}
<img src="https://panda-water.cn/web4/assets/images/bootPage/熊猫图标.png" />
<div className={styles.bootPageTitle}>
<span className={styles.bootPageZh}>
{intl.formatMessage({ id: 'app.settings.bootpage.title' })}
</span>
<span className={styles.bootPageEn}>
Panda Smart City Monitoring Management Platform & Solution
</span>
<span className={styles.bootPageZh}>{'熊猫智慧水务一体化解决方案'}</span>
<span className={styles.bootPageEn}>Panda Smart Water Integration Platform & Solution</span>
</div>
</header>
<section
className={classNames(
styles.bootPageSection,
'animate__fadeInDown',
'animate__animated',
'duration-500ms',
)}
style={{
width: `${ scale < 1 ? 1280 : Math.ceil(1280 * scale)}px`,
}}
className={classNames(styles.bootPageSection, 'animate__fadeInDown', 'animate__animated', 'duration-500ms')}
// style={{
// width: `${scale < 1 ? 1280 : Math.ceil(1280 * scale)}px`,
// }}
>
<ul
className={classNames(styles.bootPageUl, 'animate__animated')}
className={classNames(styles.bootPageUl, 'animate__animated', styles[`bootPageUl_${IndustryNum}`])}
style={{
transform: `scale(${scale})`,
left: '300px',
......@@ -186,10 +175,7 @@ const BootPage = props => {
</div>
{hasRole ? (
<div className={styles.cloudMonitorBtns}>
<div
className="cloud-using-anaylysis-btn"
onClick={toOMSUsingAnalysis}
>
<div className="cloud-using-anaylysis-btn" onClick={toOMSUsingAnalysis}>
<img src={usingIcon} alt="" title="点击查看平台使用监控" />
<span>平台使用分析</span>
</div>
......
......@@ -48,9 +48,9 @@
flex: 1;
height: calc(100% - 160px);
margin: 20px 0;
overflow: auto;
&::-webkit-scrollbar {
width: 2px;
width: 0px;
height: 0px;
}
.bootPageUl {
display: flex;
......@@ -59,7 +59,6 @@
justify-content: center;
list-style: none;
transition: all .5s ease-out;
overflow: hidden;
padding-top: 10px;
.bootPageLi {
width: 298px;
......@@ -116,6 +115,12 @@
}
}
}
&.bootPageUl_5 {
width: 960px;
}
&.bootPageUl_9 {
width: 1600px;
}
}
}
}
......
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