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 Ui
Commits
4e9b16d2
Commit
4e9b16d2
authored
3 years ago
by
barnettZQG
Browse files
Options
Download
Email Patches
Plain Diff
change code
parent
c2cfa44a
master
V5.3
feature-helmapp
v5.3.2-release
v5.3.1-release
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/AuthCompany/index.js
+10
-4
src/components/AuthCompany/index.js
src/pages/Group/Helm.js
+12
-12
src/pages/Group/Helm.js
with
22 additions
and
16 deletions
+22
-16
src/components/AuthCompany/index.js
+
10
-
4
View file @
4e9b16d2
...
...
@@ -8,6 +8,7 @@
/* eslint-disable no-unused-expressions */
import
{
Alert
,
Badge
,
Button
,
Card
,
Checkbox
,
...
...
@@ -351,10 +352,15 @@ export default class Index extends PureComponent {
/>
<
TabPane
tab
=
{
<
span
className
=
{
PluginStyles
.
verticalCen
}
>
{
globalUtil
.
fetchSvg
(
'
HelmSvg
'
)}
Helm商店
<
/span
>
<
Badge
count
=
"
Beta
"
>
<
span
className
=
{
PluginStyles
.
verticalCen
}
style
=
{{
width
:
100
,
display
:
'
block
'
}}
>
{
globalUtil
.
fetchSvg
(
'
HelmSvg
'
)}
Helm商店
<
/span
>
<
/Badge
>
}
key
=
"
helmStore
"
/>
...
...
This diff is collapsed.
Click to expand it.
src/pages/Group/Helm.js
+
12
-
12
View file @
4e9b16d2
...
...
@@ -317,7 +317,7 @@ export default class Index extends PureComponent {
},
()
=>
{
if
(
res
&&
res
.
values
)
{
this
.
handleTemplateFile
(
Object
.
keys
(
res
.
values
)[
0
]);
this
.
handleTemplateFile
(
Object
.
keys
(
res
.
values
)
.
reverse
()
[
0
]);
}
}
);
...
...
@@ -874,6 +874,9 @@ export default class Index extends PureComponent {
});
overrides
=
arr
;
}
const
valueFiles
=
versionInfo
.
values
?
Object
.
keys
(
versionInfo
.
values
).
reverse
()
:
[];
return
(
<
Form
labelAlign
=
"
left
"
>
<
Collapse
bordered
=
{
false
}
defaultActiveKey
=
{[
'
2
'
]}
>
...
...
@@ -998,7 +1001,7 @@ export default class Index extends PureComponent {
className
=
{
styles
.
clearStar
}
>
{
getFieldDecorator
(
'
templateFile
'
,
{
initialValue
:
''
,
initialValue
:
valueFiles
.
length
>
0
&&
valueFiles
[
0
]
,
rules
:
[{
required
:
true
,
message
:
'
请选择Values文件
'
}]
})(
<
Select
...
...
@@ -1007,16 +1010,13 @@ export default class Index extends PureComponent {
onChange
=
{
this
.
handleTemplateFile
}
disabled
=
{
upDataVersion
||
errPrompt
||
noVersion
}
>
{
versionInfo
.
values
&&
Object
.
keys
(
versionInfo
.
values
)
.
reverse
()
.
map
(
key
=>
{
return
(
<
Option
key
=
{
key
}
value
=
{
key
}
>
{
key
}
<
/Option
>
);
})}
{
valueFiles
.
map
(
key
=>
{
return
(
<
Option
key
=
{
key
}
value
=
{
key
}
>
{
key
}
<
/Option
>
);
})}
<
/Select
>
)}
<
/FormItem
>
...
...
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