Commit 48543657 authored by Maofei94's avatar Maofei94

perf: 业务平台优化

parent 5815294b
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { Modal, Card, Empty } from 'antd';
import { useHistory } from 'react-router-dom'; import { useHistory } from 'react-router-dom';
import classnames from 'classnames';
import styles from './index.less';
const JumpContainer = props => { const JumpContainer = props => {
const [url, setUrl] = useState(''); const [url, setUrl] = useState('');
const jumpTo = useHistory(); const jumpTo = useHistory();
...@@ -7,7 +10,7 @@ const JumpContainer = props => { ...@@ -7,7 +10,7 @@ const JumpContainer = props => {
const jumpUrl = window.location.origin; const jumpUrl = window.location.origin;
const address = `${jumpUrl}/cityoms3/4.0.html`; const address = `${jumpUrl}/cityoms3/4.0.html`;
setUrl(address); setUrl(address);
openInNewTab(address); // openInNewTab(address);
}, []); }, []);
const openInNewTab = address => { const openInNewTab = address => {
...@@ -17,11 +20,24 @@ const JumpContainer = props => { ...@@ -17,11 +20,24 @@ const JumpContainer = props => {
}; };
return ( return (
<> <>
{url && ( <div className={classnames(`${styles.box}`)}>
<a target="_blank" href={url} rel="noopener noreferer"> {url && (
跳转业务平台 <a
</a> target="_blank"
)} href={url}
rel="noopener noreferer"
className={classnames({
[styles.link]: true,
})}
>
跳转链接
</a>
)}
<Empty
image={Empty.PRESENTED_IMAGE_SIMPLE}
description="业务平台建设中,点击链接跳转老运维平台"
/>
</div>
</> </>
); );
}; };
......
.box{
position: relative;
top:40%;
left: 50%;
transform: translate(-50%,-50%);
width: 400px;
height:250px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #fff;
border-radius:8px;
box-shadow: 20px 20px 5px #888888;
}
.link{
display: flex;
justify-content: center ;
align-items: center;
padding: 5px;
color: #1890ff;
}
\ No newline at end of file
...@@ -1136,7 +1136,7 @@ const UserManage = () => { ...@@ -1136,7 +1136,7 @@ const UserManage = () => {
blockNode blockNode
autoExpandParent autoExpandParent
// expandedKeys={[currentSelectOrg]} // expandedKeys={[currentSelectOrg]}
defaultExpandAll // defaultExpandAll
selectedKeys={[currentSelectOrg]} selectedKeys={[currentSelectOrg]}
onSelect={onSelect} onSelect={onSelect}
treeData={treeData.map(t => mapTree(t))} treeData={treeData.map(t => mapTree(t))}
......
import { get, post, CITY_SERVICE } from '@/services/index'; import { get, post, CITY_SERVICE, PUBLISH_SERVICE } from '@/services/index';
import qs from 'qs'; import qs from 'qs';
/** ***网站配置*** */ /** ***网站配置*** */
...@@ -115,4 +115,4 @@ export const getApkNameAndDate = params => ...@@ -115,4 +115,4 @@ export const getApkNameAndDate = params =>
); );
// 上传apk版本信息以及apk包的接口 // 上传apk版本信息以及apk包的接口
export const SaveMobileApk = params => export const SaveMobileApk = params =>
post(`/Publish/OMS/FileCenter/SaveMobileApk`, params); post(`${PUBLISH_SERVICE}/FileCenter/SaveMobileApk`, params);
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