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
This diff is collapsed.
This diff is collapsed.
......@@ -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