Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
48543657
Commit
48543657
authored
Dec 16, 2020
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 业务平台优化
parent
5815294b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
9 deletions
+49
-9
index.js
src/components/JumpContainer/index.js
+22
-6
index.less
src/components/JumpContainer/index.less
+24
-0
UserManage.js
src/pages/userCenter/UserManage.js
+1
-1
api.js
src/services/appConfig/api.js
+2
-2
No files found.
src/components/JumpContainer/index.js
View file @
48543657
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Modal
,
Card
,
Empty
}
from
'antd'
;
import
{
useHistory
}
from
'react-router-dom'
;
import
classnames
from
'classnames'
;
import
styles
from
'./index.less'
;
const
JumpContainer
=
props
=>
{
const
[
url
,
setUrl
]
=
useState
(
''
);
const
jumpTo
=
useHistory
();
...
...
@@ -7,7 +10,7 @@ const JumpContainer = props => {
const
jumpUrl
=
window
.
location
.
origin
;
const
address
=
`
${
jumpUrl
}
/cityoms3/4.0.html`
;
setUrl
(
address
);
openInNewTab
(
address
);
//
openInNewTab(address);
},
[]);
const
openInNewTab
=
address
=>
{
...
...
@@ -17,11 +20,24 @@ const JumpContainer = props => {
};
return
(
<>
{
url
&&
(
<
a
target
=
"_blank"
href
=
{
url
}
rel
=
"noopener noreferer"
>
跳转业务平台
<
/a
>
)}
<
div
className
=
{
classnames
(
`
${
styles
.
box
}
`
)}
>
{
url
&&
(
<
a
target
=
"_blank"
href
=
{
url
}
rel
=
"noopener noreferer"
className
=
{
classnames
({
[
styles
.
link
]:
true
,
})}
>
跳转链接
<
/a
>
)}
<
Empty
image
=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
description
=
"业务平台建设中,点击链接跳转老运维平台"
/>
<
/div
>
<
/
>
);
};
...
...
src/components/JumpContainer/index.less
0 → 100644
View file @
48543657
.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
src/pages/userCenter/UserManage.js
View file @
48543657
...
...
@@ -1136,7 +1136,7 @@ const UserManage = () => {
blockNode
autoExpandParent
// expandedKeys={[currentSelectOrg]}
defaultExpandAll
//
defaultExpandAll
selectedKeys
=
{[
currentSelectOrg
]}
onSelect
=
{
onSelect
}
treeData
=
{
treeData
.
map
(
t
=>
mapTree
(
t
))}
...
...
src/services/appConfig/api.js
View file @
48543657
import
{
get
,
post
,
CITY_SERVICE
}
from
'@/services/index'
;
import
{
get
,
post
,
CITY_SERVICE
,
PUBLISH_SERVICE
}
from
'@/services/index'
;
import
qs
from
'qs'
;
/** ***网站配置*** */
...
...
@@ -115,4 +115,4 @@ export const getApkNameAndDate = params =>
);
// 上传apk版本信息以及apk包的接口
export
const
SaveMobileApk
=
params
=>
post
(
`
/Publish/OMS
/FileCenter/SaveMobileApk`
,
params
);
post
(
`
${
PUBLISH_SERVICE
}
/FileCenter/SaveMobileApk`
,
params
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment