Commit e23a8cf5 authored by 曾婧's avatar 曾婧

Merge branch 'master' into dev-hn

parents 5a789891 15545285
Pipeline #49378 skipped with stages
...@@ -21,8 +21,8 @@ install: ...@@ -21,8 +21,8 @@ install:
- npm run init - npm run init
#cache: #cache:
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
# paths: # paths:
# - node_modules/ # - node_modules/
only: only:
refs: refs:
- master - master
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
export function genActiveRule(routerPrefix) { export function genActiveRule(routerPrefix) {
return location => { return location => {
debugger
return location.pathname.startsWith(routerPrefix) return location.pathname.startsWith(routerPrefix)
}; };
} }
......
...@@ -106,13 +106,13 @@ ...@@ -106,13 +106,13 @@
"@wisdom-cesium/cesium": "^1.0.75", "@wisdom-cesium/cesium": "^1.0.75",
"@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-13", "@wisdom-map/Amap": "^1.0.49-18",
"@wisdom-map/Map": "^1.0.12-26", "@wisdom-map/Map": "^1.0.12-32",
"@wisdom-map/arcgismap": "^1.0.79-26", "@wisdom-map/arcgismap": "^1.0.79-32",
"@wisdom-map/util": "^1.0.27-0", "@wisdom-map/util": "^1.0.27-0",
"@wisdom-utils/components": "0.1.65", "@wisdom-utils/components": "0.1.71",
"@wisdom-utils/runtime": "0.0.15", "@wisdom-utils/runtime": "0.0.15",
"@wisdom-utils/utils": "0.1.105", "@wisdom-utils/utils": "0.1.111",
"animate.css": "^4.1.1", "animate.css": "^4.1.1",
"antd": "^4.17.4", "antd": "^4.17.4",
"compression": "1.7.4", "compression": "1.7.4",
...@@ -302,6 +302,7 @@ ...@@ -302,6 +302,7 @@
"webpack-theme-color-replacer": "^1.3.15", "webpack-theme-color-replacer": "^1.3.15",
"webpackbar": "5.0.0-3", "webpackbar": "5.0.0-3",
"whatwg-fetch": "^3.0.0", "whatwg-fetch": "^3.0.0",
"xss": "^1.0.11",
"yorkie": "^2.0.0" "yorkie": "^2.0.0"
} }
} }
...@@ -14,7 +14,7 @@ server { ...@@ -14,7 +14,7 @@ server {
# Type your domain name below # Type your domain name below
server_name example.com; server_name example.com;
gzip on;
return 301 https://$server_name$request_uri; return 301 https://$server_name$request_uri;
} }
......
...@@ -13,10 +13,11 @@ instanceRequest.transformRequestURL = function(url) { ...@@ -13,10 +13,11 @@ instanceRequest.transformRequestURL = function(url) {
'/PandaCore/GCK/Basis/GateWayConfig', '/PandaCore/GCK/Basis/GateWayConfig',
'/CityInterface/rest/services.svc/GetConfig', '/CityInterface/rest/services.svc/GetConfig',
'/PandaOMS/OMS/HostManager/GetGateWay', '/PandaOMS/OMS/HostManager/GetGateWay',
'/PandaCore/Identity/AuthorizationToken' '/PandaCore/Identity/AuthorizationToken',
'/PandaOMS/OMS/WebSite/GetConfig',
]; ];
if (excludeURL.includes(url)) { if (excludeURL.includes(url)) {
return url; return url.replace(/PandaCore\/GateWay\//, '');
} }
// if ( // if (
......
...@@ -19,6 +19,7 @@ export const API = { ...@@ -19,6 +19,7 @@ export const API = {
GENERATE_QRCODE: 'cityinterface/rest/services.svc/generatetokenByqrcode', GENERATE_QRCODE: 'cityinterface/rest/services.svc/generatetokenByqrcode',
GENERATE_TOKEN_CHANGE: '/cityinterface/rest/services.svc/generatetokenquick', GENERATE_TOKEN_CHANGE: '/cityinterface/rest/services.svc/generatetokenquick',
GET_WEB_SITE_CONFIG: '/PandaOMS/OMS/WebSite/GetWebSiteConfig', GET_WEB_SITE_CONFIG: '/PandaOMS/OMS/WebSite/GetWebSiteConfig',
// GET_WEB_SITE_CONFIG: '/CityInterface/rest/services.svc/GetWebSiteConfig',
GET_USER_INFO: '/CityInterface/rest/services.svc/getUserInfo', GET_USER_INFO: '/CityInterface/rest/services.svc/getUserInfo',
GET_GATEWAY_USER_INFO: '/PandaCore/GCK/Basis/GetUserInfo', GET_GATEWAY_USER_INFO: '/PandaCore/GCK/Basis/GetUserInfo',
GET_OA: '/CityInterface/rest/services/OA.svc/getLoginInfo', GET_OA: '/CityInterface/rest/services/OA.svc/getLoginInfo',
......
// import 'whatwg-fetch'; import 'whatwg-fetch';
import './public-path'; import './public-path';
import '!file-loader?name=[name].[ext]!./images/favicon.ico'; import '!file-loader?name=[name].[ext]!./images/favicon.ico';
import './global.less'; import './global.less';
......
...@@ -37,7 +37,6 @@ class NoticeIconView extends Component { ...@@ -37,7 +37,6 @@ class NoticeIconView extends Component {
window.share && window.share.event && window.share.event.removeAllListeners('reloadNotice'); window.share && window.share.event && window.share.event.removeAllListeners('reloadNotice');
} catch (error) { } catch (error) {
} }
debugger
this.notifier = new Notifier( this.notifier = new Notifier(
this.props.global.userInfo, this.props.global.userInfo,
this.renderVideo, this.renderVideo,
......
...@@ -20,13 +20,17 @@ function App(props) { ...@@ -20,13 +20,17 @@ function App(props) {
<title>{`${(props.global && props.global.title) || defaultSetting.title}`}</title> <title>{`${(props.global && props.global.title) || defaultSetting.title}`}</title>
<link rel="shortcut icon" href={`https://panda-water.cn/web4/${props.global && props.global.shortcutIcon}`} /> <link rel="shortcut icon" href={`https://panda-water.cn/web4/${props.global && props.global.shortcutIcon}`} />
{metaSecurity} {metaSecurity}
<meta name="description" content={`${props.global && props.global.title}`} /> <meta name="description" content={`${(props.global && props.global.title) || defaultSetting.title}`} />
</Helmet> </Helmet>
<Router basename={config.base || pkg.name.toLocaleLowerCase() || ''}> <Router basename={config.base || pkg.name.toLocaleLowerCase() || ''}>
<Switch> <Switch>
{renderRoutes( {renderRoutes(
'panda-console-base', 'panda-console-base',
dyRoutes(props.menu || [], props.global && props.global.layout, props.global && props.global.theme || 'dark').routes, dyRoutes(
props.menu || [],
props.global && props.global.layout,
(props.global && props.global.theme) || 'dark',
).routes,
)} )}
</Switch> </Switch>
</Router> </Router>
......
...@@ -10,8 +10,8 @@ import { useHistory } from '@wisdom-utils/runtime'; ...@@ -10,8 +10,8 @@ import { useHistory } from '@wisdom-utils/runtime';
import KeepAlive from 'react-activation'; import KeepAlive from 'react-activation';
import AMapLoader from '@amap/amap-jsapi-loader'; import AMapLoader from '@amap/amap-jsapi-loader';
import { BasicLayout } from '@wisdom-utils/components/lib/AppLayout'; import { BasicLayout } from '@wisdom-utils/components/lib/AppLayout';
import RightContent from '@/components/GlobalHeader/ExtendRightContent';
import defaultSetting from '@wisdom-utils/components/lib/AppLayout/layouts/defaultSettings'; import defaultSetting from '@wisdom-utils/components/lib/AppLayout/layouts/defaultSettings';
import RightContent from '@/components/GlobalHeader/ExtendRightContent';
import { actionCreators } from '@/containers/App/store'; import { actionCreators } from '@/containers/App/store';
import { WEB_GIS_TYPE } from '../constants'; import { WEB_GIS_TYPE } from '../constants';
import SecurityLayout from './SecurityLayout'; import SecurityLayout from './SecurityLayout';
......
...@@ -14,6 +14,7 @@ import { actionCreators } from './containers/App/store'; ...@@ -14,6 +14,7 @@ import { actionCreators } from './containers/App/store';
import loader from './render'; import loader from './render';
import store from './stores'; import store from './stores';
import actions from './actions'; import actions from './actions';
const xss = require('xss');
// eslint-disable-next-line import/named // eslint-disable-next-line import/named
const { processComponentName } = string; const { processComponentName } = string;
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
...@@ -134,12 +135,27 @@ export const initMicroApps = () => { ...@@ -134,12 +135,27 @@ export const initMicroApps = () => {
singular: false, singular: false,
scopedCSS: true, scopedCSS: true,
prefetch: 'all', prefetch: 'all',
getTemplate(tpl) {
return tpl.replace('<script language="javascript">setURL("18.10.10.253");supFlash(getVersion("td_cookie"));</script>', '');
},
async fetch(url, ...args) {
if (url.indexOf('cookie/flash.js') > -1) {
return {
async text() {
return '';
},
};
}
return window.fetch(url, ...args);
},
// eslint-disable-next-line no-underscore-dangle // eslint-disable-next-line no-underscore-dangle
// getPublicPath: window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__, // getPublicPath: window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__,
excludeAssetFilter: url => excludeAssetFilter: url =>
url.indexOf('framework/highcharts') !== -1 || url.indexOf('framework/highcharts') !== -1 ||
// url.indexOf('framework/amap/AMap.UI') !== -1 || // url.indexOf('framework/amap/AMap.UI') !== -1 ||
// url.indexOf('framework/amap/init.js') !== -1 || // url.indexOf('framework/4.9/init.js') !== -1 ||
url.indexOf('DataPresentation.js') !== -1 ||
url.indexOf('jquery-mousewheel-easyui-qrcode-cookie-resize-filesaver-fisheye-dateFormat-gridify.js') !== -1 ||
url.indexOf('jquery') !== -1 || url.indexOf('jquery') !== -1 ||
url.indexOf('components/filetools/xlsx.core.min') !== -1 || url.indexOf('components/filetools/xlsx.core.min') !== -1 ||
url.indexOf('managers/MapManager.js') !== -1 || url.indexOf('managers/MapManager.js') !== -1 ||
......
...@@ -83,7 +83,7 @@ const BootPage = props => { ...@@ -83,7 +83,7 @@ const BootPage = props => {
// props.instance && props.instance.getUserInfoAndConfig('', true, type); // props.instance && props.instance.getUserInfoAndConfig('', true, type);
loginAction && loginAction.getUserInfoAndConfig('', true, type); loginAction && loginAction.getUserInfoAndConfig('', true, type);
}, },
[loginAction, props.global, props.instance], [loginAction, props.global.token, props.instance],
); );
useEffect(() => { useEffect(() => {
// eslint-disable-next-line no-use-before-define // eslint-disable-next-line no-use-before-define
...@@ -114,7 +114,7 @@ const BootPage = props => { ...@@ -114,7 +114,7 @@ const BootPage = props => {
}, [loginAction.events, props]); }, [loginAction.events, props]);
const renderIndustr = useMemo( const renderIndustr = useMemo(
() => renderIndustries(props.global, handlePage), () => renderIndustries(props.global, handlePage),
[handlePage, props.global], [handlePage, props.global.token],
); );
const intl = useIntl(); const intl = useIntl();
...@@ -164,6 +164,9 @@ const BootPage = props => { ...@@ -164,6 +164,9 @@ const BootPage = props => {
'animate__animated', 'animate__animated',
'duration-500ms', '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')}
......
...@@ -156,6 +156,12 @@ ...@@ -156,6 +156,12 @@
} }
} }
:global {
.@{ant-prefix}-spin-nested-loading,
.@{ant-prefix}-spin-container {
height: 100%;
}
}
} }
@media screen and (max-width: 1440px) { @media screen and (max-width: 1440px) {
......
...@@ -309,8 +309,12 @@ class Login { ...@@ -309,8 +309,12 @@ class Login {
: ''; : '';
// 在云平台上,切换前后如果url一致会出问题 // 在云平台上,切换前后如果url一致会出问题
if(self.globalConfig.userInfo && self.globalConfig.userInfo.site) { if (self.globalConfig.userInfo && self.globalConfig.userInfo.site) {
homepage += `${homepage.indexOf('|') > -1 ? '&' : '|' }_timestate=${Date.now().toString(16)}_${self.globalConfig.userInfo.site}`; homepage = homepage
? `${homepage}${homepage.indexOf('|') > -1 ? '&' : '|'}_timestate=${Date.now().toString(16)}_${
self.globalConfig.userInfo.site
}`
: `civweb4/?_timestate=${Date.now().toString(16)}_${self.globalConfig.userInfo.site}`;
} }
self.globalConfig = Object.assign(self.globalConfig, config, { self.globalConfig = Object.assign(self.globalConfig, config, {
......
...@@ -69,7 +69,6 @@ const Login = forwardRef((props, _ref) => { ...@@ -69,7 +69,6 @@ const Login = forwardRef((props, _ref) => {
props.history.push(`/?client=${props.global.client}`); props.history.push(`/?client=${props.global.client}`);
// window.share.event.emit('triggerMicro', props.global); // window.share.event.emit('triggerMicro', props.global);
// initMicroApps(); // initMicroApps();
debugger
defaultApp(); defaultApp();
}); });
action && action &&
......
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