Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
93426715
Commit
93426715
authored
Dec 13, 2018
by
ζι
Committed by
Yu
Jan 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix style import
parent
a36dd315
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
63 deletions
+11
-63
src/components/ActiveChart/index.js
src/components/ActiveChart/index.js
+3
-2
src/components/GlobalHeader/RightContent.js
src/components/GlobalHeader/RightContent.js
+1
-1
src/components/PageHeaderWrapper/index.js
src/components/PageHeaderWrapper/index.js
+1
-1
src/global.js
src/global.js
+0
-1
src/layouts/Footer.js
src/layouts/Footer.js
+1
-1
src/layouts/UserLayout.js
src/layouts/UserLayout.js
+1
-1
src/models/list.js
src/models/list.js
+0
-54
src/utils/Authorized.js
src/utils/Authorized.js
+1
-1
src/utils/Yuan.js
src/utils/Yuan.js
+3
-1
No files found.
src/components/ActiveChart/index.js
View file @
93426715
import
React
,
{
Component
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
{
MiniArea
}
from
'
ant-design-pro/lib/Charts
'
;
import
{
NumberInfo
,
Charts
}
from
'
ant-design-pro
'
;
import
NumberInfo
from
'
ant-design-pro/lib/NumberInfo
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
const
{
MiniArea
}
=
Charts
;
function
fixedZero
(
val
)
{
function
fixedZero
(
val
)
{
return
val
*
1
<
10
?
`0
${
val
}
`
:
val
;
return
val
*
1
<
10
?
`0
${
val
}
`
:
val
;
}
}
...
...
src/components/GlobalHeader/RightContent.js
View file @
93426715
...
@@ -3,7 +3,7 @@ import { FormattedMessage, formatMessage } from 'umi/locale';
...
@@ -3,7 +3,7 @@ import { FormattedMessage, formatMessage } from 'umi/locale';
import
{
Spin
,
Tag
,
Menu
,
Icon
,
Avatar
,
Tooltip
}
from
'
antd
'
;
import
{
Spin
,
Tag
,
Menu
,
Icon
,
Avatar
,
Tooltip
}
from
'
antd
'
;
import
moment
from
'
moment
'
;
import
moment
from
'
moment
'
;
import
groupBy
from
'
lodash/groupBy
'
;
import
groupBy
from
'
lodash/groupBy
'
;
import
NoticeIcon
from
'
ant-design-pro/lib/NoticeIcon
'
;
import
{
NoticeIcon
}
from
'
ant-design-pro
'
;
import
HeaderSearch
from
'
../HeaderSearch
'
;
import
HeaderSearch
from
'
../HeaderSearch
'
;
import
HeaderDropdown
from
'
../HeaderDropdown
'
;
import
HeaderDropdown
from
'
../HeaderDropdown
'
;
import
SelectLang
from
'
../SelectLang
'
;
import
SelectLang
from
'
../SelectLang
'
;
...
...
src/components/PageHeaderWrapper/index.js
View file @
93426715
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
FormattedMessage
}
from
'
umi/locale
'
;
import
{
FormattedMessage
}
from
'
umi/locale
'
;
import
Link
from
'
umi/link
'
;
import
Link
from
'
umi/link
'
;
import
PageHeader
from
'
ant-design-pro/lib/PageHeader
'
;
import
{
PageHeader
}
from
'
ant-design-pro
'
;
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
GridContent
from
'
./GridContent
'
;
import
GridContent
from
'
./GridContent
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
...
...
src/global.js
View file @
93426715
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
notification
,
Button
,
message
}
from
'
antd
'
;
import
{
notification
,
Button
,
message
}
from
'
antd
'
;
import
{
formatMessage
}
from
'
umi/locale
'
;
import
{
formatMessage
}
from
'
umi/locale
'
;
import
'
ant-design-pro/dist/ant-design-pro.css
'
;
// Notify user if offline now
// Notify user if offline now
window
.
addEventListener
(
'
sw.offline
'
,
()
=>
{
window
.
addEventListener
(
'
sw.offline
'
,
()
=>
{
...
...
src/layouts/Footer.js
View file @
93426715
import
React
,
{
Fragment
}
from
'
react
'
;
import
React
,
{
Fragment
}
from
'
react
'
;
import
{
Layout
,
Icon
}
from
'
antd
'
;
import
{
Layout
,
Icon
}
from
'
antd
'
;
import
GlobalFooter
from
'
ant-design-pro/lib/GlobalFooter
'
;
import
{
GlobalFooter
}
from
'
ant-design-pro
'
;
const
{
Footer
}
=
Layout
;
const
{
Footer
}
=
Layout
;
const
FooterView
=
()
=>
(
const
FooterView
=
()
=>
(
...
...
src/layouts/UserLayout.js
View file @
93426715
...
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
...
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import
{
formatMessage
}
from
'
umi/locale
'
;
import
{
formatMessage
}
from
'
umi/locale
'
;
import
Link
from
'
umi/link
'
;
import
Link
from
'
umi/link
'
;
import
{
Icon
}
from
'
antd
'
;
import
{
Icon
}
from
'
antd
'
;
import
GlobalFooter
from
'
ant-design-pro/lib/GlobalFooter
'
;
import
{
GlobalFooter
}
from
'
ant-design-pro
'
;
import
SelectLang
from
'
@/components/SelectLang
'
;
import
SelectLang
from
'
@/components/SelectLang
'
;
import
styles
from
'
./UserLayout.less
'
;
import
styles
from
'
./UserLayout.less
'
;
import
logo
from
'
../assets/logo.svg
'
;
import
logo
from
'
../assets/logo.svg
'
;
...
...
src/models/list.js
deleted
100644 β 0
View file @
a36dd315
import
{
queryFakeList
,
removeFakeList
,
addFakeList
,
updateFakeList
}
from
'
@/services/api
'
;
export
default
{
namespace
:
'
list
'
,
state
:
{
list
:
[],
},
effects
:
{
*
fetch
({
payload
},
{
call
,
put
})
{
const
response
=
yield
call
(
queryFakeList
,
payload
);
yield
put
({
type
:
'
queryList
'
,
payload
:
Array
.
isArray
(
response
)
?
response
:
[],
});
},
*
appendFetch
({
payload
},
{
call
,
put
})
{
const
response
=
yield
call
(
queryFakeList
,
payload
);
yield
put
({
type
:
'
appendList
'
,
payload
:
Array
.
isArray
(
response
)
?
response
:
[],
});
},
*
submit
({
payload
},
{
call
,
put
})
{
let
callback
;
if
(
payload
.
id
)
{
callback
=
Object
.
keys
(
payload
).
length
===
1
?
removeFakeList
:
updateFakeList
;
}
else
{
callback
=
addFakeList
;
}
const
response
=
yield
call
(
callback
,
payload
);
// post
yield
put
({
type
:
'
queryList
'
,
payload
:
response
,
});
},
},
reducers
:
{
queryList
(
state
,
action
)
{
return
{
...
state
,
list
:
action
.
payload
,
};
},
appendList
(
state
,
action
)
{
return
{
...
state
,
list
:
state
.
list
.
concat
(
action
.
payload
),
};
},
},
};
src/utils/Authorized.js
View file @
93426715
import
RenderAuthorized
from
'
ant-design-pro/lib/Authorized
'
;
import
{
Authorized
as
RenderAuthorized
}
from
'
ant-design-pro
'
;
import
{
getAuthority
}
from
'
./authority
'
;
import
{
getAuthority
}
from
'
./authority
'
;
let
Authorized
=
RenderAuthorized
(
getAuthority
());
// eslint-disable-line
let
Authorized
=
RenderAuthorized
(
getAuthority
());
// eslint-disable-line
...
...
src/utils/Yuan.js
View file @
93426715
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
yuan
}
from
'
ant-design-pro/lib/Charts
'
;
import
{
Charts
}
from
'
ant-design-pro
'
;
const
{
yuan
}
=
Charts
;
/**
/**
* εε°δ½Ώη¨ dangerouslySetInnerHTML
* εε°δ½Ώη¨ dangerouslySetInnerHTML
*/
*/
...
...
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