Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Rainbond Console
Commits
350e2747
Commit
350e2747
authored
6 years ago
by
barnett
Browse files
Options
Download
Email Patches
Plain Diff
[ADD] add demo regist show
parent
6c9f6107
master
V5.0
V5.1
V5.2
V5.3
cloud
dazuimao1990-patch-1
dazuimao1990-patch-2
dazuimao1990-patch-3
dependabot/pip/django-2.2.24
dependabot/pip/djangorestframework-3.11.2
dependabot/pip/httplib2-0.19.0
dependabot/pip/pillow-8.1.1
dependabot/pip/pillow-8.2.0
dependabot/pip/rsa-4.1
feature-helmapp
publiccloud
revert-408-app_share_5.1
revert-411-app_share_5.1
sqlite3
upgrade
zxs-work-2019101801
zxs-work-2019101802
v5.3.2-release
v5.3.1-release
v5.3.0-release
v5.2.2-release
v5.2.1-release
v5.2.0-release
v5.2.0-beta2
v5.2.0-beta1
v5.1.11-release
v5.1.10-release
v5.1.9-release
v5.1.8-release
v5.1.6-release
v5.1.5-release
v5.1.4-release
v5.1.3-release
v5.1.2-release
v5.1.1-release
v5.1.0-release
v5.0.4-release
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
www/static/ant-pro/ant-design-pro-template/src/components/GlobalHeader/index.js
+13
-14
...-design-pro-template/src/components/GlobalHeader/index.js
www/static/ant-pro/ant-design-pro-template/src/components/GlobalHeader/index.less
+6
-0
...esign-pro-template/src/components/GlobalHeader/index.less
www/static/dists/index.499f0dc8.js
+1
-0
www/static/dists/index.499f0dc8.js
www/static/dists/index.de03ef78.css
+1
-0
www/static/dists/index.de03ef78.css
www/templates/index.html
+2
-2
www/templates/index.html
with
23 additions
and
16 deletions
+23
-16
www/static/ant-pro/ant-design-pro-template/src/components/GlobalHeader/index.js
+
13
-
14
View file @
350e2747
...
...
@@ -4,12 +4,12 @@ import {
Menu
,
Icon
,
Spin
,
Tag
,
Dropdown
,
Avatar
,
Divider
,
Tooltip
,
Modal
Modal
,
Button
}
from
'
antd
'
;
import
{
connect
}
from
'
dva
'
;
import
Ellipsis
from
'
../Ellipsis
'
;
...
...
@@ -18,14 +18,11 @@ import groupBy from 'lodash/groupBy';
import
Debounce
from
'
lodash-decorators/debounce
'
;
import
{
Link
}
from
'
dva/router
'
;
import
NoticeIcon
from
'
../NoticeIcon
'
;
import
HeaderSearch
from
'
../HeaderSearch
'
;
import
styles
from
'
./index.less
'
;
import
cookie
from
'
../../utils/cookie
'
;
import
userIcon
from
'
../../../public/images/user-icon-small.png
'
;
import
ScrollerX
from
'
../../components/ScrollerX
'
;
import
teamUtil
from
'
../../utils/team
'
;
import
globalUtil
from
'
../../utils/global
'
;
import
{
Route
,
Redirect
,
Switch
,
routerRedux
}
from
'
dva/router
'
;
import
{
routerRedux
}
from
'
dva/router
'
;
class
DialogMessage
extends
PureComponent
{
componentDidMount
(){
...
...
@@ -281,11 +278,11 @@ export default class GlobalHeader extends PureComponent {
<Menu.Item disabled><Icon type="setting" />设置</Menu.Item>
<Menu.Item key="triggerError"><Icon type="close-circle" />触发报错</Menu.Item>
<Menu.Divider />*/
}
{
!
isPubCloud
&&<
Menu
.
Item
key
=
"
cpw
"
>
<
Icon
{
!
isPubCloud
&&<
Menu
.
Item
key
=
"
cpw
"
>
<
Icon
type
=
"
edit
"
style
=
{{
marginRight
:
8
}}
/>修改密码 <
/
Menu
.
Item
>
}
}}
/>修改密码 </
Menu
.
Item
>
}
<
Menu
.
Item
key
=
"
logout
"
><
Icon
type
=
"
logout
"
style
=
{{
marginRight
:
8
}}
/>退出登录</
Menu
.
Item
>
...
...
@@ -315,16 +312,14 @@ export default class GlobalHeader extends PureComponent {
?
'
menu-unfold
'
:
'
menu-fold
'
}
onClick
=
{
this
.
toggle
}
/
>
<
div
className
=
{
styles
.
teamregion
}
>
<
span
className
=
{
styles
.
tit
}
>
团队
:
<
/span
>
<
Dropdown
overlay
=
{
this
.
renderTeams
()}
>
<
a
className
=
{
styles
.
dropdown
}
>
<
span
className
=
{
styles
.
smShow
}
>
团队
<
/span
>
<
span
className
=
{
styles
.
smHidden
}
>
{
this
.
getCurrTeamTit
()
}
{
this
.
getCurrTeamTit
()}
<
Icon
type
=
"
down
"
/>
<
/span
>
<
/a
>
...
...
@@ -346,7 +341,12 @@ export default class GlobalHeader extends PureComponent {
<
/a
>
<
/Dropdown
>
<
/div
>
<
div
className
=
{
styles
.
connect
}
>
{
this
.
props
.
currentUser
.
user_name
==
"
rainbond-demo
"
&&
(
<
Button
type
=
"
primary
"
size
=
"
large
"
href
=
"
https://sso.goodrain.com/#/register/https%3A%2F%2Fconsole.goodrain.com
"
>
注册试用
<
/Button
>
)}
<
Button
size
=
"
large
"
style
=
{{
marginLeft
:
16
}}
href
=
"
https://www.goodrain.com/industrycloud
"
>
咨询企业服务
<
/Button
>
<
/div
>
<
div
className
=
{
styles
.
right
}
>
<
Tooltip
title
=
"
使用文档
"
>
<
a
...
...
@@ -369,7 +369,6 @@ export default class GlobalHeader extends PureComponent {
console.log('enter', value); // eslint-disable-line
}}
/> */
}
<
NoticeIcon
count
=
{
this
.
state
.
total
}
...
...
This diff is collapsed.
Click to expand it.
www/static/ant-pro/ant-design-pro-template/src/components/GlobalHeader/index.less
+
6
-
0
View file @
350e2747
...
...
@@ -65,6 +65,12 @@ i.trigger {
cursor: pointer;
}
}
.connect {
margin-left: 32px;
width: 30%;
display: inline-block;
vertical-align: middle;
}
.smShow {display: none;}
...
...
This diff is collapsed.
Click to expand it.
www/static/dists/index.
fc83976c
.js
→
www/static/dists/index.
499f0dc8
.js
+
1
-
0
View file @
350e2747
This diff is collapsed.
Click to expand it.
www/static/dists/index.
600ab312
.css
→
www/static/dists/index.
de03ef78
.css
+
1
-
0
View file @
350e2747
This diff is collapsed.
Click to expand it.
www/templates/index.html
+
2
-
2
View file @
350e2747
...
...
@@ -247,7 +247,7 @@
</style>
<link
href=
"/static/dists/index.
600ab312
.css"
rel=
"stylesheet"
></head>
<link
href=
"/static/dists/index.
de03ef78
.css"
rel=
"stylesheet"
></head>
<body>
<div
id=
"root"
>
...
...
@@ -268,5 +268,5 @@
s
.
parentNode
.
insertBefore
(
hm
,
s
);
})();
</script>
<script
type=
"text/javascript"
src=
"/static/dists/index.
fc83976c
.js"
></script></body>
<script
type=
"text/javascript"
src=
"/static/dists/index.
499f0dc8
.js"
></script></body>
</html>
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help