Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
gzga-jzapi
apaas-ui
Commits
403b28f7
Commit
403b28f7
authored
Jul 17, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
steps组件优化
parent
804a4fb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
src/components/app-build-steps/app-build-steps.vue
src/components/app-build-steps/app-build-steps.vue
+5
-5
src/components/deployment-info.vue
src/components/deployment-info.vue
+3
-3
src/pages/workbench/yygl/deployment.vue
src/pages/workbench/yygl/deployment.vue
+3
-1
No files found.
src/components/app-build-steps/app-build-steps.vue
View file @
403b28f7
...
@@ -26,15 +26,15 @@
...
@@ -26,15 +26,15 @@
<div
class=
"step_icon"
v-else
></div>
<div
class=
"step_icon"
v-else
></div>
<div
class=
"step_info"
>
<div
class=
"step_info"
>
<p
class=
"step_state"
>
<p
class=
"step_state"
>
<span
v-show=
"item.step > activeStep"
>
<span
v-if=
"item.step
<
activeStep
||
done
"
>
已完成
</span>
<span
v-else-if=
"item.step > activeStep"
>
待进行
待进行
</span>
</span>
<span
v-
show
=
"item.step === activeStep"
>
<span
v-
else-if
=
"item.step === activeStep"
>
进行中
进行中
</span>
</span>
<span
v-show=
"item.step
<
activeStep
"
>
已完成
</span>
</p>
</p>
<p
class=
"step_name"
v-text=
"item.title"
></p>
<p
class=
"step_name"
v-text=
"item.title"
></p>
</div>
</div>
...
...
src/components/deployment-info.vue
View file @
403b28f7
...
@@ -51,7 +51,7 @@ export default {
...
@@ -51,7 +51,7 @@ export default {
name
:
"
-
"
,
name
:
"
-
"
,
value
:
"
values
"
,
value
:
"
values
"
,
content
:
""
,
content
:
""
,
state
:
2
,
state
:
0
,
};
};
let
status
=
this
.
data
;
let
status
=
this
.
data
;
let
statusLength
=
status
.
length
;
let
statusLength
=
status
.
length
;
...
@@ -67,7 +67,7 @@ export default {
...
@@ -67,7 +67,7 @@ export default {
},
// 需要展示的状态
},
// 需要展示的状态
},
},
methods
:
{
methods
:
{
getIcon
(
stateValue
=
2
)
{
getIcon
(
stateValue
=
0
)
{
const
icons
=
[
const
icons
=
[
require
(
"
../assets/imgs/ic_operation.gif
"
),
require
(
"
../assets/imgs/ic_operation.gif
"
),
require
(
"
../assets/imgs/ic_true.png
"
),
require
(
"
../assets/imgs/ic_true.png
"
),
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
return
icons
[
stateValue
];
return
icons
[
stateValue
];
},
},
getText
(
stateValue
=
2
)
{
getText
(
stateValue
=
0
)
{
const
texts
=
[
"
部署中
"
,
"
成功
"
,
"
失败
"
];
const
texts
=
[
"
部署中
"
,
"
成功
"
,
"
失败
"
];
return
texts
[
stateValue
];
return
texts
[
stateValue
];
...
...
src/pages/workbench/yygl/deployment.vue
View file @
403b28f7
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</el-breadcrumb-item>
</el-breadcrumb-item>
</el-breadcrumb>
</el-breadcrumb>
</div>
</div>
<app-build-steps
:active-step=
"step"
>
<app-build-steps
:active-step=
"step"
:done=
"stepDone"
>
<app-build-step
<app-build-step
title=
"部署基本信息"
title=
"部署基本信息"
:step=
"0"
:step=
"0"
...
@@ -339,6 +339,7 @@ export default {
...
@@ -339,6 +339,7 @@ export default {
stateList
:
[],
stateList
:
[],
finallyState
:
0
,
finallyState
:
0
,
pvc_list
:[],
pvc_list
:[],
stepDone
:
false
}),
}),
methods
:
{
methods
:
{
get_pvc_list
(){
get_pvc_list
(){
...
@@ -654,6 +655,7 @@ export default {
...
@@ -654,6 +655,7 @@ export default {
let
finallyState
=
event
.
data
.
state
===
"
success
"
?
1
:
2
;
let
finallyState
=
event
.
data
.
state
===
"
success
"
?
1
:
2
;
this
.
finallyState
=
finallyState
;
this
.
finallyState
=
finallyState
;
currentState
.
state
=
finallyState
;
currentState
.
state
=
finallyState
;
this
.
stepDone
=
true
;
}
else
{
}
else
{
if
(
event
.
data
.
state
!==
"
notes
"
)
{
if
(
event
.
data
.
state
!==
"
notes
"
)
{
currentState
.
state
=
2
;
currentState
.
state
=
2
;
...
...
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