Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
钟摆人-Puppet゜
ant-design-pro
提交
93426715
A
ant-design-pro
项目概览
钟摆人-Puppet゜
/
ant-design-pro
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design-pro
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
93426715
编写于
12月 13, 2018
作者:
愚
愚道
提交者:
Yu
1月 17, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix style import
上级
a36dd315
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
11 addition
and
63 deletion
+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
未找到文件。
src/components/ActiveChart/index.js
浏览文件 @
93426715
import
React
,
{
Component
}
from
'
react
'
;
import
{
MiniArea
}
from
'
ant-design-pro/lib/Charts
'
;
import
NumberInfo
from
'
ant-design-pro/lib/NumberInfo
'
;
import
{
NumberInfo
,
Charts
}
from
'
ant-design-pro
'
;
import
styles
from
'
./index.less
'
;
const
{
MiniArea
}
=
Charts
;
function
fixedZero
(
val
)
{
return
val
*
1
<
10
?
`0
${
val
}
`
:
val
;
}
...
...
src/components/GlobalHeader/RightContent.js
浏览文件 @
93426715
...
...
@@ -3,7 +3,7 @@ import { FormattedMessage, formatMessage } from 'umi/locale';
import
{
Spin
,
Tag
,
Menu
,
Icon
,
Avatar
,
Tooltip
}
from
'
antd
'
;
import
moment
from
'
moment
'
;
import
groupBy
from
'
lodash/groupBy
'
;
import
NoticeIcon
from
'
ant-design-pro/lib/NoticeIcon
'
;
import
{
NoticeIcon
}
from
'
ant-design-pro
'
;
import
HeaderSearch
from
'
../HeaderSearch
'
;
import
HeaderDropdown
from
'
../HeaderDropdown
'
;
import
SelectLang
from
'
../SelectLang
'
;
...
...
src/components/PageHeaderWrapper/index.js
浏览文件 @
93426715
import
React
from
'
react
'
;
import
{
FormattedMessage
}
from
'
umi/locale
'
;
import
Link
from
'
umi/link
'
;
import
PageHeader
from
'
ant-design-pro/lib/PageHeader
'
;
import
{
PageHeader
}
from
'
ant-design-pro
'
;
import
{
connect
}
from
'
dva
'
;
import
GridContent
from
'
./GridContent
'
;
import
styles
from
'
./index.less
'
;
...
...
src/global.js
浏览文件 @
93426715
import
React
from
'
react
'
;
import
{
notification
,
Button
,
message
}
from
'
antd
'
;
import
{
formatMessage
}
from
'
umi/locale
'
;
import
'
ant-design-pro/dist/ant-design-pro.css
'
;
// Notify user if offline now
window
.
addEventListener
(
'
sw.offline
'
,
()
=>
{
...
...
src/layouts/Footer.js
浏览文件 @
93426715
import
React
,
{
Fragment
}
from
'
react
'
;
import
{
Layout
,
Icon
}
from
'
antd
'
;
import
GlobalFooter
from
'
ant-design-pro/lib/GlobalFooter
'
;
import
{
GlobalFooter
}
from
'
ant-design-pro
'
;
const
{
Footer
}
=
Layout
;
const
FooterView
=
()
=>
(
...
...
src/layouts/UserLayout.js
浏览文件 @
93426715
...
...
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import
{
formatMessage
}
from
'
umi/locale
'
;
import
Link
from
'
umi/link
'
;
import
{
Icon
}
from
'
antd
'
;
import
GlobalFooter
from
'
ant-design-pro/lib/GlobalFooter
'
;
import
{
GlobalFooter
}
from
'
ant-design-pro
'
;
import
SelectLang
from
'
@/components/SelectLang
'
;
import
styles
from
'
./UserLayout.less
'
;
import
logo
from
'
../assets/logo.svg
'
;
...
...
src/models/list.js
已删除
100644 → 0
浏览文件 @
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
浏览文件 @
93426715
import
RenderAuthorized
from
'
ant-design-pro/lib/Authorized
'
;
import
{
Authorized
as
RenderAuthorized
}
from
'
ant-design-pro
'
;
import
{
getAuthority
}
from
'
./authority
'
;
let
Authorized
=
RenderAuthorized
(
getAuthority
());
// eslint-disable-line
...
...
src/utils/Yuan.js
浏览文件 @
93426715
import
React
from
'
react
'
;
import
{
yuan
}
from
'
ant-design-pro/lib/Charts
'
;
import
{
Charts
}
from
'
ant-design-pro
'
;
const
{
yuan
}
=
Charts
;
/**
* 减少使用 dangerouslySetInnerHTML
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录