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
bb831ee4
Commit
bb831ee4
authored
Oct 23, 2020
by
张烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: fix lint
parent
7e3bce54
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
30 deletions
+13
-30
AuthorizedRoute.js
src/components/Authorized/AuthorizedRoute.js
+2
-1
PromiseRender.js
src/components/Authorized/PromiseRender.js
+1
-1
BasicLayout.js
src/layouts/BasicLayout.js
+4
-25
UserLayout.js
src/layouts/UserLayout.js
+1
-1
InitDataBase.jsx
src/pages/database/InitDataBase.jsx
+0
-0
config.js
src/routes/config.js
+5
-2
No files found.
src/components/Authorized/AuthorizedRoute.js
View file @
bb831ee4
import
React
from
'react'
;
//
import React from 'react';
const
AuthorizedRoute
=
({
component
,
render
,
authority
,
redirectPath
,
// eslint-disable-next-line no-unused-vars
...
rest
})
=>
{};
...
...
src/components/Authorized/PromiseRender.js
View file @
bb831ee4
...
...
@@ -24,7 +24,7 @@ export default class PromiseRender extends React.Component {
}
setRenderComponent
(
props
)
{
const
o
n
=
this
.
checkIsInstantiation
(
props
.
ok
);
const
o
k
=
this
.
checkIsInstantiation
(
props
.
ok
);
const
error
=
this
.
checkIsInstantiation
(
props
.
error
);
props
.
promise
.
then
(()
=>
{
...
...
src/layouts/BasicLayout.js
View file @
bb831ee4
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
axios
from
'axios'
;
import
React
,
{
useState
}
from
'react'
;
import
{
matchRoutes
,
renderRoutes
}
from
'react-router-config'
;
import
{
Link
}
from
'react-router-dom'
;
import
{
GithubOutlined
}
from
'@ant-design/icons'
;
import
ProLayout
,
{
DefaultFooter
}
from
'@ant-design/pro-layout'
;
import
logo
from
'../assets/logo.svg'
;
...
...
@@ -22,27 +20,8 @@ import RightContent from '../components/GlobalHeader/RightContent';
const
defaultFooterDom
=
(
<
DefaultFooter
copyright
=
{
`
${
new
Date
().
getFullYear
()}
蚂蚁金服体验技术部出品`
}
links
=
{[
{
key
:
'Ant Design Pro'
,
title
:
'Ant Design Pro'
,
href
:
'https://pro.ant.design'
,
blankTarget
:
true
,
},
{
key
:
'github'
,
title
:
<
GithubOutlined
/>
,
href
:
'https://github.com/ant-design/ant-design-pro'
,
blankTarget
:
true
,
},
{
key
:
'Ant Design'
,
title
:
'Ant Design'
,
href
:
'https://ant.design'
,
blankTarget
:
true
,
},
]}
copyright
=
{
`
${
new
Date
().
getFullYear
()}
熊猫智慧水务技术委员会出品`
}
links
=
{[]}
/
>
);
...
...
@@ -128,7 +107,7 @@ const BasicMenu = [
},
];
const
userMode
=
localStorage
.
getItem
(
'userMode'
);
if
(
userMode
==
'common'
)
{
if
(
userMode
==
=
'common'
)
{
BasicMenu
.
shift
();
}
...
...
src/layouts/UserLayout.js
View file @
bb831ee4
...
...
@@ -21,7 +21,7 @@ const UserLayout = props => {
// const { formatMessage } = useIntl();
const
{
breadcrumb
}
=
getMenuData
(
route
.
routes
);
const
title
=
getPageTitle
({
pathname
:
location
.
pathname
,
pathname
:
window
.
location
.
pathname
,
// formatMessage,
breadcrumb
,
...
props
,
...
...
src/pages/database/InitDataBase.jsx
View file @
bb831ee4
This diff is collapsed.
Click to expand it.
src/routes/config.js
View file @
bb831ee4
...
...
@@ -3,6 +3,9 @@ import Login from '../pages/user/login';
import
BasicLayout
from
'../layouts/BasicLayout'
;
import
Welcome
from
'../pages/Welcome'
;
import
RequestTest
from
'../pages/testPages/request'
;
import
InitDataBase
from
'../pages/database/InitDataBase'
;
import
ManagementDataBase
from
'../pages/database/ManagementDataBase'
;
export
default
{
routes
:
[
{
...
...
@@ -34,12 +37,12 @@ export default {
{
path
:
'/dbm/dbInit'
,
name
:
'数据库初始化'
,
component
:
Welcom
e
,
component
:
InitDataBas
e
,
},
{
path
:
'/dbm/dbsm'
,
name
:
'数据库标准化管理'
,
component
:
Welcom
e
,
component
:
ManagementDataBas
e
,
},
{
path
:
'/ou/orgList'
,
...
...
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