Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
钟摆人-Puppet゜
ant-design-pro
提交
a8ef08b6
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,体验更适合开发者的 AI 搜索 >>
提交
a8ef08b6
编写于
6月 29, 2018
作者:
陈
陈帅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed #1750 Excessive loading in the workplace
上级
eaf60da7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
20 deletion
+22
-20
src/components/PageHeader/index.js
src/components/PageHeader/index.js
+3
-3
src/models/setting.js
src/models/setting.js
+1
-0
src/routes/Dashboard/Workplace.js
src/routes/Dashboard/Workplace.js
+18
-17
未找到文件。
src/components/PageHeader/index.js
浏览文件 @
a8ef08b6
import
React
,
{
PureComponent
,
createElement
}
from
'
react
'
;
import
pathToRegexp
from
'
path-to-regexp
'
;
import
{
Breadcrumb
,
Tabs
}
from
'
antd
'
;
import
{
Breadcrumb
,
Tabs
,
Card
}
from
'
antd
'
;
import
classNames
from
'
classnames
'
;
import
styles
from
'
./index.less
'
;
import
{
urlToList
}
from
'
../_utils/pathTools
'
;
...
...
@@ -190,7 +190,7 @@ export default class PageHeader extends PureComponent {
}
const
{
breadcrumb
}
=
this
.
state
;
return
(
<
div
className
=
{
clsString
}
>
<
Card
className
=
{
clsString
}
bodyStyle
=
{{
padding
:
0
}
}
>
{
breadcrumb
}
<
div
className
=
{
styles
.
detail
}
>
{
logo
&&
<
div
className
=
{
styles
.
logo
}
>
{
logo
}
<
/div>
}
...
...
@@ -216,7 +216,7 @@ export default class PageHeader extends PureComponent {
{
tabList
.
map
(
item
=>
<
TabPane
tab
=
{
item
.
tab
}
key
=
{
item
.
key
}
/>
)
}
<
/Tabs
>
)}
<
/
div
>
<
/
Card
>
);
}
}
src/models/setting.js
浏览文件 @
a8ef08b6
...
...
@@ -9,6 +9,7 @@ const defaultSetting = {
fixSiderbar
:
false
,
colorWeak
:
'
close
'
,
};
export
default
{
namespace
:
'
setting
'
,
state
:
defaultSetting
,
...
...
src/routes/Dashboard/Workplace.js
浏览文件 @
a8ef08b6
...
...
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
import
moment
from
'
moment
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Link
}
from
'
dva/router
'
;
import
{
Row
,
Col
,
Card
,
List
,
Avatar
,
Spin
}
from
'
antd
'
;
import
{
Row
,
Col
,
Card
,
List
,
Avatar
}
from
'
antd
'
;
import
{
Radar
}
from
'
components/Charts
'
;
import
EditableLinkGroup
from
'
components/EditableLinkGroup
'
;
...
...
@@ -117,23 +117,20 @@ export default class Workplace extends PureComponent {
chart
:
{
radarData
},
}
=
this
.
props
;
const
pageHeaderContent
=
(
<
Spin
spinning
=
{
currentUserLoading
}
>
{
currentUser
&&
Object
.
keys
(
currentUser
).
length
?
(
<
div
className
=
{
styles
.
pageHeaderContent
}
>
<
div
className
=
{
styles
.
avatar
}
>
<
Avatar
size
=
"
large
"
src
=
{
currentUser
.
avatar
}
/
>
<
/div
>
<
div
className
=
{
styles
.
content
}
>
<
div
className
=
{
styles
.
contentTitle
}
>
早安
,
{
currentUser
.
name
}
,
祝你开心每一天
!
<
/div
>
<
div
>
{
currentUser
.
title
}
|
{
currentUser
.
group
}
<
/div
>
const
pageHeaderContent
=
currentUser
&&
Object
.
keys
(
currentUser
).
length
?
(
<
div
className
=
{
styles
.
pageHeaderContent
}
>
<
div
className
=
{
styles
.
avatar
}
>
<
Avatar
size
=
"
large
"
src
=
{
currentUser
.
avatar
}
/
>
<
/div
>
<
div
className
=
{
styles
.
content
}
>
<
div
className
=
{
styles
.
contentTitle
}
>
早安
,
{
currentUser
.
name
}
,
祝你开心每一天
!
<
/div
>
<
div
>
{
currentUser
.
title
}
|
{
currentUser
.
group
}
<
/div
>
<
/div
>
)
:
null
}
<
/Spin
>
);
<
/div
>
)
:
null
;
const
extraContent
=
(
<
div
className
=
{
styles
.
extraContent
}
>
...
...
@@ -156,7 +153,11 @@ export default class Workplace extends PureComponent {
);
return
(
<
PageHeaderLayout
content
=
{
pageHeaderContent
}
extraContent
=
{
extraContent
}
>
<
PageHeaderLayout
loading
=
{
currentUserLoading
}
content
=
{
pageHeaderContent
}
extraContent
=
{
extraContent
}
>
<
Row
gutter
=
{
24
}
>
<
Col
xl
=
{
16
}
lg
=
{
24
}
md
=
{
24
}
sm
=
{
24
}
xs
=
{
24
}
>
<
Card
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录