Commit caa48cf8 authored by 杨思琦's avatar 杨思琦

Merge branch master into devNew

parent 7d1c6af2
...@@ -196,4 +196,4 @@ function css({ ...@@ -196,4 +196,4 @@ function css({
module.exports = { module.exports = {
createCSSRule, createCSSRule,
css css
} }
\ No newline at end of file
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
"@wisdom-map/util":"1.2.9", "@wisdom-map/util":"1.2.9",
"@wisdom-utils/components": "0.1.370", "@wisdom-utils/components": "0.1.370",
"@wisdom-utils/runtime": "0.0.51", "@wisdom-utils/runtime": "0.0.51",
"@wisdom-utils/utils": "0.1.407", "@wisdom-utils/utils": "0.1.408",
"animate.css": "^4.1.1", "animate.css": "^4.1.1",
"antd": "4.21.2", "antd": "4.21.2",
"bcryptjs": "2.4.3", "bcryptjs": "2.4.3",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
{ {
"title": "Water" "title": "Water"
}, },
{
"title": "Water2"
},
{ {
"title": "信息化" "title": "信息化"
}, },
...@@ -26,6 +29,15 @@ ...@@ -26,6 +29,15 @@
}, },
{ {
"title": "项目 - 封丘" "title": "项目 - 封丘"
},
{
"title": "项目 - 店头"
},
{
"title": "项目 - 长春"
},
{
"title": "项目 - 铁门关"
} }
] ]
} }
\ No newline at end of file
...@@ -22,6 +22,7 @@ export const API = { ...@@ -22,6 +22,7 @@ export const API = {
CHANGE_PASSWORD: 'cityinterface/rest/services.svc/changepassword', CHANGE_PASSWORD: 'cityinterface/rest/services.svc/changepassword',
CHANGE_PASSWORD_SAFE: '/PandaOMS/OMS/UserCenter/UpdateUserPassword', CHANGE_PASSWORD_SAFE: '/PandaOMS/OMS/UserCenter/UpdateUserPassword',
HD_AUTH_LOGIN: '/PandaCore/GCK/BussinessAuth/HDAuthLogin', HD_AUTH_LOGIN: '/PandaCore/GCK/BussinessAuth/HDAuthLogin',
AUTH_HDU_SER: '/PandaWater/CityWater/SJZGX/AuthHDUSer',
IOT_CHANGE_PASSWORD: 'CityInterface/rest/services/OMS.svc/U_UpdatePasswordQuickGCK', IOT_CHANGE_PASSWORD: 'CityInterface/rest/services/OMS.svc/U_UpdatePasswordQuickGCK',
FILE_DOWNLOAD: '/cityinterface/rest/services/filedownload.svc/download', FILE_DOWNLOAD: '/cityinterface/rest/services/filedownload.svc/download',
UPDATE_AVATAR: '/CityInterface/rest/services/OMs.svc/U_EditUser', UPDATE_AVATAR: '/CityInterface/rest/services/OMs.svc/U_EditUser',
...@@ -89,6 +90,11 @@ const services = { ...@@ -89,6 +90,11 @@ const services = {
method: constants.REQUEST_METHOD_GET, method: constants.REQUEST_METHOD_GET,
type: constants.REQUEST_HTTP, type: constants.REQUEST_HTTP,
}, },
AuthHDUSer: {
url: API.AUTH_HDU_SER,
method: constants.REQUEST_METHOD_GET,
type: constants.REQUEST_HTTP,
},
authorizationToken: { authorizationToken: {
url: API.AUTHORIZATION_TOKEN, url: API.AUTHORIZATION_TOKEN,
method: constants.REQUEST_METHOD_GET, method: constants.REQUEST_METHOD_GET,
......
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.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<!-- Allow installing the app to the homescreen --> <!-- Allow installing the app to the homescreen -->
<meta name="mobile-web-app-capable" content="yes" /> <meta name="mobile-web-app-capable" content="yes" />
<!-- <link rel="icon" href="/favicon.ico" /> --> <!-- <link rel="icon" href="/favicon.ico" /> -->
<!-- <link type="text/css" rel="stylesheet" id="theme-style" href="https://panda-water.cn/civbase/theme/sunset.css">--> <link type="text/css" rel="stylesheet" id="theme-style" href="/civbase/Assets/esri/css/main.css">
<script src="/civbase/event.js"></script> <script src="/civbase/event.js"></script>
<script crossorigin src="/civbase/isomorphic-fetch.js"></script> <script crossorigin src="/civbase/isomorphic-fetch.js"></script>
<script src="https://g.alicdn.com/dingding/dinglogin/0.0.5/ddLogin.js"></script> <script src="https://g.alicdn.com/dingding/dinglogin/0.0.5/ddLogin.js"></script>
......
...@@ -8,6 +8,7 @@ import Demonstration from './demonstration'; ...@@ -8,6 +8,7 @@ import Demonstration from './demonstration';
import PandaBootPage from './panda'; import PandaBootPage from './panda';
import IntegrationPage from './integration'; import IntegrationPage from './integration';
import IntegrationPage2 from './integration2'; import IntegrationPage2 from './integration2';
import TaihuPage from './project/taihu';
export const guidePage = [ export const guidePage = [
// type 为true 则需要 功能配置 isPanda 为true // type 为true 则需要 功能配置 isPanda 为true
{ {
...@@ -15,9 +16,13 @@ export const guidePage = [ ...@@ -15,9 +16,13 @@ export const guidePage = [
value: 'default', value: 'default',
}, },
{ {
label: '集成登录演示', label: '集成登录演示',
value: 'integration2', value: 'integration2',
}, },
{
label: '太湖集成登录',
value: 'taihuPage',
},
{ {
label: '演示环境(旧版)', label: '演示环境(旧版)',
type: true, type: true,
...@@ -34,4 +39,5 @@ export const BootPageTemplate = { ...@@ -34,4 +39,5 @@ export const BootPageTemplate = {
panda: PandaBootPage, panda: PandaBootPage,
integration2: IntegrationPage2, integration2: IntegrationPage2,
demonstration: Demonstration, demonstration: Demonstration,
taihuPage: TaihuPage,
}; };
{ {
"业务中心": [ "业务中心": [
{ {
"name": "工作台", "name": "工作台",
"label": "", "label": "",
"url": "" "url": ""
}, },
{ {
"name": "应用中心", "name": "应用中心",
"url": "" "url": ""
}, },
{ {
"name": "指标中心", "name": "指标中心",
"url": "" "url": ""
}, },
{ {
"name": "报表中心", "name": "报表中心",
"url": "" "url": ""
} }
], ],
"运营中心": [ "运营中心": [
{ {
"name": "综合展示", "name": "综合展示",
"label": "", "label": "",
"url": "" "url": ""
}, },
{ {
"name": "原水制水", "name": "原水制水",
"url": "" "url": ""
}, },
{ {
"name": "管网输配", "name": "管网输配",
"url": "" "url": ""
}, },
{ {
"name": "营销客服", "name": "营销客服",
"url": "" "url": ""
} }
], ],
"应用系统": [ "应用系统": [
{ {
"name": "生产管理", "name": "生产管理",
"label": "", "label": "",
"url": "" "url": ""
}, },
{ {
"name": "供水管网探测", "name": "供水管网探测",
"url": "" "url": ""
}, },
{ {
"name": "管网运营", "name": "管网运营",
"url": "" "url": ""
}, },
{ {
"name": "管网调度", "name": "管网调度",
"url": "" "url": ""
}, },
{ {
"name": "漏损管控", "name": "漏损管控",
"url": "" "url": ""
}, },
{ {
"name": "二次供水平台", "name": "二次供水平台",
"url": "" "url": ""
}, },
{ {
"name": "营收系统", "name": "营收系统",
"url": "" "url": ""
}, },
{ {
"name": "抄表系统", "name": "抄表系统",
"url": "" "url": ""
}, },
{ {
"name": "报装系统", "name": "报装系统",
"url": "" "url": ""
}, },
{ {
"name": "网上营业厅", "name": "网上营业厅",
"url": "" "url": ""
} }
], ],
"支撑平台": [ "支撑平台": [
{ {
"name": "公共平台", "name": "公共平台",
"url": "" "url": ""
}, },
{ {
"name": "报警平台", "name": "报警平台",
"url": "" "url": ""
}, },
{ {
"name": "组态平台", "name": "组态平台",
"url": "" "url": ""
}, },
{ {
"name": "GIS发布平台", "name": "GIS发布平台",
"url": "" "url": ""
}, },
{ {
"name": "物理网设备管理", "name": "物理网设备管理",
"url": "" "url": ""
}, },
{ {
"name": "行业大数据平台", "name": "行业大数据平台",
"url": "" "url": ""
} }
] ],
} "标题": "智慧水务综合监控平台"
\ No newline at end of file }
...@@ -71,10 +71,8 @@ const Integration = props => { ...@@ -71,10 +71,8 @@ const Integration = props => {
}) })
.then(res => { .then(res => {
if (res.code === 0 && res.data) { if (res.code === 0 && res.data) {
const data = JSON.parse(res.data); const data = JSON.parse(res.data) || defaultConfig;
console.log('🚀 ~ data:', data); setConfigData(data);
setConfigData(data || defaultConfig);
// setListData(data?.list || []);
} }
}); });
}; };
...@@ -216,7 +214,9 @@ const Integration = props => { ...@@ -216,7 +214,9 @@ const Integration = props => {
> >
<div className={styles.integration_title}> <div className={styles.integration_title}>
<div className={styles.integration_title_left} /> <div className={styles.integration_title_left} />
<div className={styles.integration_title_text} /> <div className={styles.integration_title_text}>
<span>{configData?.['标题'] || '智慧水务综合监控平台'}</span>
</div>
<div className={styles.integration_title_right} /> <div className={styles.integration_title_right} />
</div> </div>
<div className={styles.integration_row} type="业务中心"> <div className={styles.integration_row} type="业务中心">
......
@imgSrc: '@/assets/images/integration/'; @imgSrc: '@/assets/images/integration2/';
.integration { .integration {
width: 100%; width: 100%;
...@@ -627,6 +629,7 @@ ...@@ -627,6 +629,7 @@
//支撑平台end //支撑平台end
&_title { &_title {
display: flex; display: flex;
// align-items: center;
&_left { &_left {
width: 372px; width: 372px;
...@@ -636,10 +639,21 @@ ...@@ -636,10 +639,21 @@
} }
&_text { &_text {
width: 820px; flex: none;
height: 97px; color: #fff;
background: url('@{imgSrc}/标题.png') center/100% 100% no-repeat;
span {
line-height: 97px;
color: #fff;
font-size: 60px;
letter-spacing: 4px;
font-family: 'PangMenZhengDaoBiaoTiTi';
background: linear-gradient(0deg, #56A1EF 0%, #FFFFFF 59%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
position: relative;
top: -8px;
}
} }
&_right { &_right {
......
{
"综合管控": [
{
"name": "统一平台",
"english": "Unified Platform",
"label": "",
"url": ""
},
{
"name": "OA办公",
"url": "",
"english": "OA Office"
},
{
"name": "仓储系统",
"url": "",
"english": "Warehouse System"
},
{
"name": "可视化大屏幕",
"url": "",
"english": "Large visual screen"
}
],
"智慧生产调度": [
{
"name": "生产调度",
"label": "",
"url": ""
},
{
"name": "科学调度",
"url": ""
},
{
"name": "二次供水",
"url": ""
},
{
"name": "应急指挥",
"url": ""
},
{
"name": "农饮水监测",
"url": ""
},
{
"name": "水力模型",
"url": ""
},
{
"name": "设备管理",
"url": ""
}
],
"智慧管网管理": [
{
"name": "管网GIS",
"label": "",
"url": ""
},
{
"name": "GIS数据维护",
"url": ""
},
{
"name": "管网巡检",
"url": ""
}
],
"智慧漏损控制": [
{
"name": "漏损控制",
"label": "",
"url": "",
"english": "Leakage control"
}
],
"数据支撑": [
{
"name": "物联网平台",
"url": ""
},
{
"name": "数据统一管理",
"url": ""
},
{
"name": "GIS发布平台",
"url": ""
}
],
"业务支撑": [
{
"name": "BMP流程引擎",
"url": ""
},
{
"name": "可视化工具",
"url": ""
},
{
"name": "低代码工具",
"url": ""
},
{
"name": "报表工具",
"url": ""
}
],
"标题": "安徽太湖县智慧水务管控平台"
}
This diff is collapsed.
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com * @Author: 634665781 634665781@qq.com
* @Date: 2022-07-08 14:28:01 * @Date: 2022-07-08 14:28:01
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @LastEditTime: 2024-06-27 18:35:51 * @LastEditTime: 2024-07-20 20:07:23
* @FilePath: \CivWeb\src\pages\user\login\index.js * @FilePath: \CivWeb\src\pages\user\login\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -23,6 +23,7 @@ import DarkNoEffect from './template/noEffect/DarkNoEffect'; ...@@ -23,6 +23,7 @@ import DarkNoEffect from './template/noEffect/DarkNoEffect';
import CloudLogin from './template/cloud'; import CloudLogin from './template/cloud';
import CloudNewLogin from './template/cloudNew'; import CloudNewLogin from './template/cloudNew';
import WaterLogin from './template/water'; import WaterLogin from './template/water';
import WaterLogin2 from './template/water/water.js';
import JSZHLogin from './template/project/JSZH'; import JSZHLogin from './template/project/JSZH';
import ChengmaiLogin from './template/project/chengmai'; import ChengmaiLogin from './template/project/chengmai';
import HuhehaoteLogin from './template/project/huhehaote'; import HuhehaoteLogin from './template/project/huhehaote';
...@@ -52,6 +53,9 @@ import ChinaShuiwu from './template/project/chinaShuiwu'; ...@@ -52,6 +53,9 @@ import ChinaShuiwu from './template/project/chinaShuiwu';
import current from './template/current/index'; import current from './template/current/index';
import Linyou from './template/project/linyou'; import Linyou from './template/project/linyou';
import FengqiuLogin from './template/project/fengqiu'; import FengqiuLogin from './template/project/fengqiu';
import DiantouLogin from './template/project/diantou';
import ChangchunLogin from './template/project/changchun';
import TiemenguanLogin from './template/project/tiemenguan';
import { AppInitState } from '../../../render'; import { AppInitState } from '../../../render';
const LoginTemplate = { const LoginTemplate = {
'新春.html': baseLoginNewYear, '新春.html': baseLoginNewYear,
...@@ -71,6 +75,7 @@ const LoginTemplate = { ...@@ -71,6 +75,7 @@ const LoginTemplate = {
'广州登录页.html': EnergGzV2, '广州登录页.html': EnergGzV2,
'DarkNoEffect.html': DarkNoEffect, 'DarkNoEffect.html': DarkNoEffect,
'Water.html': WaterLogin, 'Water.html': WaterLogin,
'Water2.html': WaterLogin2,
'项目 - 江水置换.html': JSZHLogin, '项目 - 江水置换.html': JSZHLogin,
'节水主题二.html': EnergJS2, '节水主题二.html': EnergJS2,
'项目 - 澄迈.html': ChengmaiLogin, '项目 - 澄迈.html': ChengmaiLogin,
...@@ -101,6 +106,9 @@ const LoginTemplate = { ...@@ -101,6 +106,9 @@ const LoginTemplate = {
'项目 - 中国水务.html': ChinaShuiwu, '项目 - 中国水务.html': ChinaShuiwu,
'项目 - 麟游.html': Linyou, '项目 - 麟游.html': Linyou,
'项目 - 封丘.html': FengqiuLogin, '项目 - 封丘.html': FengqiuLogin,
'项目 - 店头.html': DiantouLogin,
'项目 - 长春.html': ChangchunLogin,
'项目 - 铁门关.html': TiemenguanLogin,
default: BaseLogin, default: BaseLogin,
}; };
/* eslint-disable */ /* eslint-disable */
......
...@@ -40,8 +40,13 @@ class Login { ...@@ -40,8 +40,13 @@ class Login {
return a.split('=')[0] == 'uniwater_utoken'; return a.split('=')[0] == 'uniwater_utoken';
}); });
this.uniwater_utoken = paramsFind?.split('=')[1] ?? ''; this.uniwater_utoken = paramsFind?.split('=')[1] ?? '';
// 单页面免登重定向地址
if (this.uniwater_utoken) { const redirect =
params &&
params.find(function(a) {
return a.split('=')[0] === 'redirect';
});
if (this.uniwater_utoken && !redirect) {
this.getTokenForThird(); this.getTokenForThird();
} }
...@@ -56,6 +61,13 @@ class Login { ...@@ -56,6 +61,13 @@ class Login {
} }
} }
// 第三方单页面免登
getTokenThirdLogin(tk) {
const self = this;
self.globalConfig.token = tk;
self.updateConfig && self.updateConfig(self.globalConfig);
}
// 单点登录接口_xule_20231214 // 单点登录接口_xule_20231214
getTokenForThird() { getTokenForThird() {
const self = this; const self = this;
......
...@@ -36,7 +36,13 @@ const Login = forwardRef((props, _ref) => { ...@@ -36,7 +36,13 @@ const Login = forwardRef((props, _ref) => {
}); });
// 需要在 GetGateWay 和 GetConfig 之后再执行登录。避免信息错落乱 // 需要在 GetGateWay 和 GetConfig 之后再执行登录。避免信息错落乱
const hasLogin = useRef(); const hasLogin = useRef();
useEffect(() => { const getAuthDataInfo = async () => {
const value = params.getParams('uniwater_utoken');
const hdtoken = value && value !== 'undefined' ? value : null;
const authRes = hdtoken ? await appService.AuthHDUSer({ token: hdtoken, ignoreSite: true }) : '';
return authRes?.data || '';
};
useEffect(async () => {
action.globalConfig = props.global; action.globalConfig = props.global;
// eslint-disable-next-line no-prototype-builtins // eslint-disable-next-line no-prototype-builtins
if ( if (
...@@ -47,11 +53,12 @@ const Login = forwardRef((props, _ref) => { ...@@ -47,11 +53,12 @@ const Login = forwardRef((props, _ref) => {
) { ) {
hasLogin.current = true; hasLogin.current = true;
window.hasLogin = true; window.hasLogin = true;
const authData = !token ? await getAuthDataInfo() : '';
const isGZproject = window.globalConfig.subtitle === '广州节约用水管理系统'; const isGZproject = window.globalConfig.subtitle === '广州节约用水管理系统';
if (window.globalConfig && window.globalConfig.hasGateWay && !isGZproject) { if (window.globalConfig && window.globalConfig.hasGateWay && !isGZproject) {
appService appService
.authorizationToken({ .authorizationToken({
loginName: token, loginName: token || authData,
type: 'token', type: 'token',
generateType: params.getParams('generateType') || '', generateType: params.getParams('generateType') || '',
}) })
...@@ -78,6 +85,7 @@ const Login = forwardRef((props, _ref) => { ...@@ -78,6 +85,7 @@ const Login = forwardRef((props, _ref) => {
action.transformLoginHander(res, false); action.transformLoginHander(res, false);
}); });
} else { } else {
if (authData) action.getTokenThirdLogin(authData);
action.init(site); action.init(site);
} }
} }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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