Commit 8867fd3c authored by 周宏民's avatar 周宏民

feat: 集成登录演示

parent 2ff15677
Pipeline #90169 passed with stages
......@@ -60,6 +60,7 @@ export const API = {
ADD_INTEGRATED_LOGIN_SETTING: '/PandaOMS/OMS/AddIntegratedloginSetting',
REFRESH_SECRET: '/PandaCore/GCK/IntegrationAuth/RefreshSecret', // 根据APPKey生成APPSecret
CM_EVENT_LOAD_DEPARTMENT_ROLES: '/PandaOMS/OMS/WorkOrderCenter/CM_Event_LoadDepartmentAndRoles',
GET_CONFIG_FILE_JSON: '/PandaCore/GCK/FileCenter/ConfigJSON', // 获取配置文件
};
const services = {
......@@ -307,6 +308,11 @@ const services = {
method: constants.REQUEST_METHOD_GET,
type: constants.REQUEST_HTTP,
},
GetConfigJson: {
url: API.GET_CONFIG_FILE_JSON,
method: constants.REQUEST_METHOD_GET,
type: constants.REQUEST_HTTP,
},
};
export const searchAutoCity = keywords => {
......
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
......@@ -24,7 +24,7 @@ const BootPage = props => {
});
const { clear } = useAliveController();
const history = useHistory();
const [template, setTemplate] = useState('default');
const [template, setTemplate] = useState(window?.globalConfig?.displayMode || 'default');
const RenderComponent = useMemo(() => {
if (BootPageTemplate[template]) {
return BootPageTemplate[template];
......
......@@ -7,23 +7,22 @@
import Demonstration from './demonstration';
import PandaBootPage from './panda';
import IntegrationPage from './integration';
import IntegrationPage2 from './integration2';
export const guidePage = [
// type 为true 则需要 功能配置 isPanda 为true
{
label: '集成登录(默认)',
value: 'default',
},
{
label: '集成登录演示',
value: 'integration2',
},
{
label: '演示环境(旧版)',
type: true,
value: 'panda',
},
// {
// label: '卡片',
// value: '卡片',
// },
// {
// label: '地图',
// value: '地图',
// },
{
label: '演示环境',
type: true,
......@@ -33,5 +32,6 @@ export const guidePage = [
export const BootPageTemplate = {
default: IntegrationPage,
panda: PandaBootPage,
integration2: IntegrationPage2,
demonstration: Demonstration,
};
{
"业务中心": [
{
"name": "工作台",
"label": "",
"url": ""
},
{
"name": "应用中心",
"url": ""
},
{
"name": "指标中心",
"url": ""
},
{
"name": "报表中心",
"url": ""
}
],
"运营中心": [
{
"name": "综合展示",
"label": "",
"url": ""
},
{
"name": "原水制水监测",
"url": ""
},
{
"name": "管网输配",
"url": ""
},
{
"name": "营销客服",
"url": ""
}
],
"应用系统": [
{
"name": "生产管理",
"label": "",
"url": ""
},
{
"name": "供水管网探测",
"url": ""
},
{
"name": "管网运营",
"url": ""
},
{
"name": "管网调度",
"url": ""
},
{
"name": "漏损管控",
"url": ""
},
{
"name": "二次供水平台",
"url": ""
},
{
"name": "营收系统",
"url": ""
},
{
"name": "抄表系统",
"url": ""
},
{
"name": "报装系统",
"url": ""
},
{
"name": "网上营业厅",
"url": ""
}
],
"支撑平台": [
{
"name": "公共平台",
"url": ""
},
{
"name": "报警平台",
"url": ""
},
{
"name": "组态平台",
"url": ""
},
{
"name": "GIS发布平台",
"url": ""
},
{
"name": "物理网设备管理",
"url": ""
},
{
"name": "行业大数据平台",
"url": ""
}
]
}
\ No newline at end of file
import { appService } from '@/api';
import { FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons';
import { message, Button } from 'antd';
import classNames from 'classnames';
import { debounce } from 'lodash';
import React, { useRef, useEffect, useState, useMemo } from 'react';
import backImg from '@/assets/images/demonstration/返回.png';
import arrowLeftImg from '@/assets/images/demonstration/左箭头.png';
import LoadPage from '@/components/LoadPage';
import useFullScreen from '../demonstration/components/useFullScreen';
import defaultConfig from './data.json';
import styles from './integration.less';
import Iframe from '../demonstration/components/Iframe';
const boxWidth = 1920;
const boxHeight = 1008;
const Integration = props => {
const [ref, isFullscreen, handleFullScreen, handleExitFullScreen] = useFullScreen(false);
const timer2 = useRef(null);
const timer3 = useRef(null);
const progressRef2 = useRef(0);
// 退出
const exit = () => {
if (isFullscreen) {
handleExitFullScreen && handleExitFullScreen();
} else {
handleFullScreen && handleFullScreen();
}
};
const [boxSize, setBoxSize] = useState({
scale: 1,
boxHeight: 1008,
});
const [linkUrl, setLinkUrl] = useState('');
const [jumpLoading, setJumpLoading] = useState(false);
const [progressValue2, setProgressValue2] = useState(0);
const [showBackBtn, setShowBackBtn] = useState(true); // 是否显示iframe 返回按钮,三维平台用
const configName = '集成配置文件';
const [configData, setConfigData] = useState(defaultConfig);
const jumpProgressStart = () => {
if (timer2.current) {
clearInterval(timer2.current);
timer2.current = null;
}
progressRef2.current = 0;
setProgressValue2(0);
timer2.current = setInterval(() => {
if (progressRef2.current < 97.5) {
progressRef2.current += 2.5;
setProgressValue2(progressRef2.current);
} else {
setProgressValue2(99);
timer2.current && clearInterval(timer2.current);
timer2.current = null;
}
}, 100);
};
const jumpProgressEnd = () => {
setProgressValue2(100);
timer2.current && clearInterval(timer2.current);
timer2.current = null;
};
const getData = async () => {
appService
.GetConfigJson({
config: configName,
})
.then(res => {
if (res.code === 0 && res.data) {
const data = JSON.parse(res.data);
console.log('🚀 ~ data:', data);
setConfigData(data || defaultConfig);
// setListData(data?.list || []);
}
});
};
const onResize = () => {
if (ref?.current) {
const { clientWidth, clientHeight } = ref.current;
if (!boxWidth || !boxHeight) return;
const xScale = clientWidth / boxWidth;
const yScale = clientHeight / boxHeight;
const poor = clientHeight / clientWidth - boxHeight / boxWidth;
let n = Math.min(xScale, yScale);
let bHeight = boxHeight;
if (poor > 0.05) {
bHeight = boxHeight + 30;
}
// 高度为偶数
bHeight = parseInt(bHeight, 10);
if (bHeight % 2 !== 0) {
bHeight += 1;
}
n = Number(n.toFixed(4));
setBoxSize({
scale: n,
boxHeight: bHeight,
});
}
};
const handError = err => {
if (err) {
message.error(err);
}
setLinkUrl('');
setJumpLoading(false);
jumpProgressEnd();
};
const onMessageBack = data => {
if (!data?.type) return;
console.log('onMessageBack ~ data:', data);
switch (data?.type) {
// 页面加载完成
// 登录成功
case 'runAfterFirstMounted':
case 'loginSuccess':
jumpProgressEnd();
setTimeout(() => {
setJumpLoading(false);
}, 100);
break;
case 'loginError':
message.warning('登录失败,请联系管理人员');
handError();
break;
case '无法连接':
message.warning('该站点无法连接,请联系管理人员');
setTimeout(() => {
handError();
}, 100);
break;
case 'showBack':
setShowBackBtn(true);
break;
case 'hideBack':
setShowBackBtn(false);
break;
default:
break;
}
};
const iframeItem = useMemo(() => {
if (!linkUrl) return null;
return (
<>
<div className={classNames(!jumpLoading ? styles.scaleInCenter : styles.hide, 'animate__animated')}>
<Iframe linkUrl={linkUrl} onMessageBack={onMessageBack} />
</div>
</>
);
}, [linkUrl, jumpLoading]);
const startTiming = (time = 2) => {
if (timer3.current) {
clearInterval(timer3.current);
timer3.current = null;
}
timer3.current = setTimeout(() => {
setJumpLoading(false);
timer2.current && clearInterval(timer2.current);
timer2.current = null;
}, time * 1000);
};
const onLink = url => {
if (!url) return message.warning('未配置功能路径');
setJumpLoading(true);
jumpProgressStart();
setLinkUrl(url);
let time = 15;
if (!url.includes('user/noscret')) {
time = 4;
}
startTiming(time);
};
useEffect(() => {
getData();
window.addEventListener('resize', debounce(onResize, 300));
onResize();
return () => {
window.removeEventListener('resize', onResize);
timer2.current && clearInterval(timer2.current);
timer2.current = null;
timer3.current && clearInterval(timer3.current);
timer3.current = null;
};
}, []);
return (
<div className={classNames(styles.integration, 'integration')} ref={ref}>
{jumpLoading ? (
<div className={styles.integrationJumpLoad} key="jumpLoading">
<div style={{ width: '285px' }}>
<LoadPage percent={progressValue2 / 100} text="页面加载中~" />
</div>
</div>
) : null}
<div className={styles.integration_exit} onClick={exit}>
<Button type="text" style={{ color: '#fff', fontSize: '24px' }}>
{isFullscreen ? <FullscreenExitOutlined /> : <FullscreenOutlined />}
</Button>
</div>
<div
className={styles.integration_content}
style={{
width: boxWidth,
height: boxSize.boxHeight,
transform: `scale(${boxSize.scale}) translate(-50%,-50%)`,
}}
>
<div className={styles.integration_title}>
<div className={styles.integration_title_left} />
<div className={styles.integration_title_text} />
<div className={styles.integration_title_right} />
</div>
<div className={styles.integration_row} type="业务中心">
<div className={styles.integration_row_title} type="业务中心" />
<div className={styles.integration_row_list}>
<div className={styles.integration_row_grid} type="业务中心">
{configData['业务中心'].map(item => (
<div
key={item.name}
className={styles.integration_row_col}
type="业务中心"
onClick={() => onLink(item.url)}
>
<div
className={classNames(
styles.integration_row_col_hover,
'animate__fadeIn animate__animated duration-100ms',
)}
/>
<div className={styles.integration_row_col_content} name={item.name}>
<div className={styles.integration_row_col_text} type="业务中心">
{item.label || item.name}
</div>
</div>
</div>
))}
</div>
<div className={styles.integration_row_title} type="运营中心" />
<div className={styles.integration_row_grid} type="运营中心">
{configData['运营中心'].map(item => (
<div
key={item.name}
className={styles.integration_row_col}
type="运营中心"
onClick={() => onLink(item.url)}
>
<div
className={classNames(
styles.integration_row_col_hover,
'animate__fadeIn animate__animated duration-100ms',
)}
/>
<div className={styles.integration_row_col_content} name={item.name}>
<div className={styles.integration_row_col_text} type="运营中心">
{item.label || item.name}
</div>
</div>
</div>
))}
</div>
</div>
</div>
<div className={styles.integration_row} type="应用系统">
<div className={styles.integration_row_title} type="应用系统" />
<div className={styles.integration_row_list}>
<div className={styles.integration_row_grid} type="应用系统">
{configData['应用系统'].map(item => (
<div
key={item.name}
className={styles.integration_row_col}
type="应用系统"
onClick={() => onLink(item.url)}
>
<div
className={classNames(
styles.integration_row_col_hover,
'animate__fadeIn animate__animated duration-100ms',
)}
/>
<div className={styles.integration_row_col_content} name={item.name}>
<div className={styles.integration_row_col_text} type="应用系统">
{item.label || item.name}
</div>
</div>
</div>
))}
</div>
</div>
</div>
<div className={styles.integration_row} type="支撑平台">
<div className={styles.integration_row_title} type="支撑平台" />
<div className={styles.integration_row_list}>
<div className={styles.integration_row_grid} type="支撑平台">
{configData['支撑平台'].map(item => (
<div
key={item.name}
className={styles.integration_row_col}
type="支撑平台"
onClick={() => onLink(item.url)}
>
<div
className={classNames(
styles.integration_row_col_hover,
'animate__fadeIn animate__animated duration-100ms',
)}
/>
<div className={styles.integration_row_col_content} name={item.name}>
<div className={styles.integration_row_col_text} type="支撑平台">
{item.label || item.name}
</div>
</div>
</div>
))}
</div>
</div>
</div>
</div>
{linkUrl && showBackBtn ? (
<div
className={classNames(styles.iframeExit, 'animate__animated', 'animate__fadeIn')}
onClick={() => setLinkUrl('')}
>
<div className={styles.iframeBackLeft}>
<img src={arrowLeftImg} alt="返回" />
</div>
<div className={styles.iframeExitIcon}>
<img src={backImg} alt="返回" />
返回
</div>
</div>
) : null}
{iframeItem}
</div>
);
};
export default Integration;
@imgSrc: '@/assets/images/integration/';
.integration {
width: 100%;
position: relative;
height: 100%;
overflow: hidden;
background: url('@{imgSrc}/背景.png') center/100% 100% no-repeat;
.iframeExitIcon {
position: absolute;
top: 0;
left: -45px;
display: flex;
height: 44px;
width: 44px;
background: rgba(28, 94, 180, 0.95);
border-radius: 0 7px 7px 0;
flex-direction: column;
justify-content: space-around;
align-items: center;
font-size: 12px;
transition: all 0.2s;
padding: 3px 0;
img {
width: 17px;
height: 12px;
}
}
.iframeExit:hover {
.iframeExitIcon {
left: 0;
}
.iframeBackLeft {
left: -15px;
}
}
.iframeBackLeft {
position: absolute;
top: 0;
left: 0;
width: 14px;
height: 44px;
background: rgba(28, 94, 180, 0.95);
border-radius: 0 7px 7px 0;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
img {
width: 6px;
height: 11px;
}
}
.iframeExit {
width: 44px;
height: 44px;
position: absolute;
top: 4px;
left: 0;
color: #FFF;
cursor: pointer;
user-select: none;
position: absolute;
z-index: 110;
}
&_exit {
position: absolute;
right: 10px;
top: 10px;
z-index: 100;
}
.integration_content {
display: flex;
flex-direction: column;
align-items: center;
transform-origin: left top;
position: absolute;
left: 50%;
top: 50%;
padding: 50px;
}
.integration_row {
display: flex;
width: 1356px;
overflow: hidden;
.integration_row_title {
flex: none;
margin-right: 10px;
}
.integration_row_list {
flex: 1;
display: flex;
align-items: center;
}
}
.integration_row_col {
position: relative;
cursor: pointer;
}
.integration_row_col_text {
font-weight: bold;
font-size: 24px;
color: #FFFFFF;
transition: all 0.1s;
position: relative;
white-space: nowrap;
}
.integration_row_col:hover {
filter: brightness(120%);
.integration_row_col_hover {
display: block !important;
}
.integration_row_col_text {
color: #fff !important;
}
}
.integration_row_title[type='业务中心'] {
width: 60px;
height: 240px;
background: url('@{imgSrc}/业务中心.png') center/100% 100% no-repeat;
}
.integration_row_title[type='运营中心'] {
margin-left: 12px;
width: 53px;
height: 212px;
background: url('@{imgSrc}/运营中心.png') center/100% 100% no-repeat;
}
.integration_row_title[type='应用系统'] {
width: 60px;
height: 341px;
background: url('@{imgSrc}/应用系统.png') center/100% 100% no-repeat;
}
.integration_row_title[type='支撑平台'] {
width: 60px;
height: 171px;
background: url('@{imgSrc}/支撑平台.png') center/100% 100% no-repeat;
}
// 业务中心start
.integration_row[type='业务中心'] {
.integration_row_list {
padding: 7px;
background: url('@{imgSrc}/业务中心背景.png') center/100% 100% no-repeat;
}
}
.integration_row_grid[type='业务中心'] {
display: grid;
grid-template-columns: 294px 294px;
grid-template-rows: 114px 114px;
}
.integration_row_col[type='业务中心'] {
width: 294px;
height: 114px;
padding: 7px;
.integration_row_col_text {
color: rgba(226, 210, 255, 0.85);
}
.integration_row_col_text:after {
position: absolute;
width: 100%;
transform: rotateX(180deg) skewX(10deg);
bottom: -26px;
left: -2px;
background: linear-gradient(to bottom, transparent 25%, rgba(235, 224, 255, 0.3));
background-clip: text;
-webkit-background-clip: text;
-moz-background-clip: text;
color: transparent;
}
.integration_row_col_hover {
display: none;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: url('@{imgSrc}/业务中心选中.png') center/100% 100% no-repeat;
z-index: 10;
}
.integration_row_col_content {
width: 100%;
height: 100%;
display: flex;
align-items: center;
padding-left: 154px;
}
.integration_row_col_content[name='工作台'] {
background: url('@{imgSrc}/工作台.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "工作台";
}
}
.integration_row_col_content[name='应用中心'] {
background: url('@{imgSrc}/应用中心.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "应用中心";
}
}
.integration_row_col_content[name='指标中心'] {
background: url('@{imgSrc}/指标中心.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "指标中心";
}
}
.integration_row_col_content[name='报表中心'] {
background: url('@{imgSrc}/报表中心.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "报表中心";
}
}
}
// 业务中心end
// 运营中心
.integration_row[type='运营中心'] {
.integration_row_list {
padding: 10px 14px;
background: url('@{imgSrc}/运营中心背景.png') center/100% 100% no-repeat;
}
}
.integration_row_grid[type='运营中心'] {
display: grid;
grid-template-columns: 294px 294px;
grid-template-rows: 96px 96px;
background: url('@{imgSrc}/运营中心背景.png') center/100% 100% no-repeat;
}
.integration_row_col[type='运营中心'] {
width: 100%;
height: 100%;
padding: 8px 7px;
.integration_row_col_text {
color: rgba(255, 235, 193, 0.7);
}
.integration_row_col_text:after {
position: absolute;
width: 100%;
transform: rotateX(180deg) skewX(10deg);
bottom: -26px;
left: -2px;
background: linear-gradient(to bottom, transparent 25%, rgba(255, 242, 215, 0.3));
background-clip: text;
-webkit-background-clip: text;
-moz-background-clip: text;
color: transparent;
}
.integration_row_col_hover {
display: none;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: url('@{imgSrc}/运营中心选中.png') center/100% 100% no-repeat;
z-index: 10;
}
.integration_row_col_content {
width: 100%;
height: 100%;
display: flex;
align-items: center;
padding-left: 139px;
}
.integration_row_col_content[name='综合展示'] {
background: url('@{imgSrc}/综合展示.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "综合展示";
}
}
.integration_row_col_content[name='原水制水监测'] {
padding-left: 116px;
background: url('@{imgSrc}/原水制水监测.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "原水制水监测";
}
}
.integration_row_col_content[name='管网输配'] {
background: url('@{imgSrc}/管网输配.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "管网输配";
}
}
.integration_row_col_content[name='营销客服'] {
background: url('@{imgSrc}/营销客服.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "营销客服";
}
}
}
// 运营中心end
// 应用系统start
.integration_row[type='应用系统'] {
margin-top: 18px;
.integration_row_list {
padding: 0 4px 0 13px;
background: url('@{imgSrc}/应用系统背景.png') center/100% 100% no-repeat;
}
}
.integration_row_grid[type='应用系统'] {
display: grid;
grid-template-columns: 242px 242px 242px 242px 242px;
grid-template-rows: 154px 154px;
gap: 12px 12px;
}
.integration_row_col[type='应用系统'] {
width: 100%;
height: 100%;
padding: 0;
.integration_row_col_text {
color: rgba(189, 220, 255, 0.85);
}
.integration_row_col_text:after {
position: absolute;
width: 100%;
transform: rotateX(180deg) skewX(10deg);
bottom: -6px;
left: -2px;
background: linear-gradient(to bottom, transparent 25%, rgba(216, 234, 255, 0.3));
background-clip: text;
-webkit-background-clip: text;
-moz-background-clip: text;
color: transparent;
}
.integration_row_col_hover {
display: none;
position: absolute;
left: -10px;
top: -10px;
width: 262px;
height: 174px;
background: url('@{imgSrc}/应用系统选中.png') center/100% 100% no-repeat;
z-index: 10;
}
.integration_row_col_content {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
padding-top: 95px;
}
.integration_row_col_content[name='生产管理'] {
background: url('@{imgSrc}/生产管理.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "生产管理";
}
}
.integration_row_col_content[name='供水管网探测'] {
background: url('@{imgSrc}/供水管网探测.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "供水管网探测";
}
}
.integration_row_col_content[name='管网运营'] {
background: url('@{imgSrc}/管网运营.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "管网运营";
}
}
.integration_row_col_content[name='管网调度'] {
background: url('@{imgSrc}/管网调度.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "管网调度";
}
}
.integration_row_col_content[name='漏损管控'] {
background: url('@{imgSrc}/漏损管控.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "漏损管控";
}
}
.integration_row_col_content[name='二次供水平台'] {
background: url('@{imgSrc}/二次供水平台.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "二次供水平台";
}
}
.integration_row_col_content[name='营收系统'] {
background: url('@{imgSrc}/营收系统.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "营收系统";
}
}
.integration_row_col_content[name='抄表系统'] {
background: url('@{imgSrc}/抄表系统.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "抄表系统";
}
}
.integration_row_col_content[name='报装系统'] {
background: url('@{imgSrc}/报装系统.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "报装系统";
}
}
.integration_row_col_content[name='网上营业厅'] {
background: url('@{imgSrc}/网上营业厅.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "网上营业厅";
}
}
}
//应用系统end
// 支撑平台start
.integration_row[type='支撑平台'] {
margin-top: 18px;
padding-bottom: 20px;
.integration_row_list {
padding: 0 4px 0 13px;
background: url('@{imgSrc}/支撑平台背景.png') center/100% 100% no-repeat;
}
}
.integration_row_grid[type='支撑平台'] {
display: grid;
grid-template-columns:
200px 200px 200px 200px 200px 200px;
grid-template-rows: 142px;
gap: 12px 12px;
}
.integration_row_col[type='支撑平台'] {
width: 100%;
height: 100%;
padding: 0;
.integration_row_col_text {
color: rgba(197, 251, 254, 0.75);
}
.integration_row_col_text:after {
position: absolute;
width: 100%;
transform: rotateX(180deg) skewX(10deg);
bottom: -6px;
left: -2px;
background: linear-gradient(to bottom, transparent 25%, rgba(216, 234, 255, 0.3));
background-clip: text;
-webkit-background-clip: text;
-moz-background-clip: text;
color: transparent;
}
.integration_row_col_hover {
display: none;
position: absolute;
left: -10px;
top: -10px;
width: 220px;
height: 162px;
background: url('@{imgSrc}/支撑平台选中.png') center/100% 100% no-repeat;
z-index: 10;
}
.integration_row_col_content {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
padding-top: 90px;
}
.integration_row_col_content[name='公共平台'] {
background: url('@{imgSrc}/公共平台.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "公共平台";
}
}
.integration_row_col_content[name='报警平台'] {
background: url('@{imgSrc}/报警平台.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "报警平台";
}
}
.integration_row_col_content[name='组态平台'] {
background: url('@{imgSrc}/组态平台.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "组态平台";
}
}
.integration_row_col_content[name='GIS发布平台'] {
background: url('@{imgSrc}/GIS发布平台.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "GIS发布平台";
}
}
.integration_row_col_content[name='物理网设备管理'] {
background: url('@{imgSrc}/物理网设备管理.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "物理网设备管理";
}
}
.integration_row_col_content[name='行业大数据平台'] {
background: url('@{imgSrc}/行业大数据平台.png') center/100% 100% no-repeat;
.integration_row_col_text:after {
content: "行业大数据平台";
}
}
}
//支撑平台end
&_title {
display: flex;
&_left {
width: 372px;
height: 75px;
background: url('@{imgSrc}/left.png') center/100% 100% no-repeat;
}
&_text {
width: 820px;
height: 97px;
background: url('@{imgSrc}/标题.png') center/100% 100% no-repeat;
}
&_right {
width: 372px;
height: 75px;
background: url('@{imgSrc}/right.png') center/100% 100% no-repeat;
}
}
}
.integrationJumpLoad {
width: 100%;
height: 100%;
position: absolute;
display: flex;
align-items: center;
justify-content: center;
top: 0;
left: 0;
z-index: 1080;
padding-bottom: 50px;
background-color: rgba(0, 0, 0, 0.6);
}
.hide {
visibility: hidden;
}
@-webkit-keyframes scale-in-center {
0% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
opacity: 1;
}
100% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
opacity: 1;
}
}
@keyframes scale-in-center {
0% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
opacity: 1;
}
100% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
opacity: 1;
}
}
.scaleInCenter {
visibility: visible;
-webkit-animation: scale-in-center .3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
animation: scale-in-center .3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
& :global {
.integration {
.anticon {
vertical-align: 0.125em;
}
}
}
\ No newline at end of file
......@@ -361,8 +361,14 @@ class Login {
}
});
}
// 根据配置信息里的 displayMode 判断显示哪个引导页
if (!flag && this.isSignIn && this.globalConfig.displayMode === 'demonstration' && !window.qiankunStarted) {
// 根据配置信息里的 displayMode 判断显示哪个引导页,如果是集成登录页,则要判断集成登录配置的数量大于1
if (
!flag &&
this.isSignIn &&
this.globalConfig.displayMode &&
this.globalConfig.displayMode !== 'default' &&
!window.qiankunStarted
) {
this.createContext(this);
this.updateConfig && this.updateConfig(this.globalConfig);
this.events && this.events.emit('loginIndustry');
......
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