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
5d800cff
Commit
5d800cff
authored
Dec 11, 2020
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 业务平台
parent
37bf2d2e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
6 deletions
+36
-6
index.js
src/components/JumpContainer/index.js
+29
-0
index.tsx
src/components/Upload/index.tsx
+1
-1
config.js
src/routes/config.js
+6
-5
No files found.
src/components/JumpContainer/index.js
0 → 100644
View file @
5d800cff
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
useHistory
}
from
'react-router-dom'
;
const
JumpContainer
=
props
=>
{
const
[
url
,
setUrl
]
=
useState
(
''
);
const
jumpTo
=
useHistory
();
useEffect
(()
=>
{
const
jumpUrl
=
window
.
location
.
origin
;
const
address
=
`
${
jumpUrl
}
/cityoms3/4.0.html`
;
setUrl
(
address
);
openInNewTab
(
address
);
},
[]);
const
openInNewTab
=
address
=>
{
jumpTo
.
goBack
();
window
.
open
(
address
,
'_blank'
);
console
.
table
(
jumpTo
);
};
return
(
<>
{
url
&&
(
<
a
target
=
"_blank"
href
=
{
url
}
rel
=
"noopener noreferer"
>
跳转业务平台
<
/a
>
)}
<
/
>
);
};
export
default
JumpContainer
;
src/components/Upload/index.tsx
View file @
5d800cff
...
...
@@ -382,7 +382,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
title="图片库"
okText="确定"
cancelText="取消"
width={
86
0}
width={
108
0}
onCancel={this.handleModalCancel}
onOk={this.handleModalOk}
className={styles.modal}
...
...
src/routes/config.js
View file @
5d800cff
...
...
@@ -33,6 +33,7 @@ import WebConfigPage from '@/pages/webConfig';
import
MobileConfigPage
from
'@/pages/mobileConfig'
;
import
{
USER_MODE
}
from
'@/utils/constants'
;
import
BaseFrameContainer
from
'@/components/BaseFrameContainer'
;
import
JumpContainer
from
'@/components/JumpContainer'
;
const
iconStyle
=
{
verticalAlign
:
'0.125em'
};
const
superAuthority
=
[
USER_MODE
.
SUPER
];
...
...
@@ -170,11 +171,11 @@ export default {
},
],
},
//
{
//
path: '/platformCenter/order',
// name: '工单
平台',
// component: Welcome
,
//
},
{
path
:
'/platformCenter/order'
,
name
:
'业务
平台'
,
component
:
JumpContainer
,
},
{
path
:
'/platformCenter/notify'
,
name
:
'消息平台'
,
...
...
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