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