Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qahome-diamond
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qahome-diamond
Commits
6bcc7f6a
Commit
6bcc7f6a
authored
Jun 03, 2019
by
薛智杰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'kewei' into 'master'
pipeline展示栏增加了自动部署和命名空间的展示 See merge request !24
parents
8681a1a8
d6cbbd5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
application.vue
src/views/pipeline/application.vue
+11
-2
No files found.
src/views/pipeline/application.vue
View file @
6bcc7f6a
...
...
@@ -32,6 +32,12 @@
<el-table-column
prop=
"new_user"
label=
"创建者"
align=
"center"
/>
<el-table-column
prop=
"update_user"
label=
"更新者"
align=
"center"
/>
<el-table-column
prop=
"isDeploy"
label=
"自动部署"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
isDeploy
|
formatDeploy
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"namespace"
label=
"命名空间"
align=
"center"
/>
<el-table-column
prop=
"create_time"
label=
"创建时间"
align=
"center"
/>
<el-table-column
:label=
"$t('table.actions')"
align=
"center"
width=
"180"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -73,14 +79,14 @@
<el-form-item
v-if=
"temp.noticeType === 'dingding'"
label=
"通知地址"
>
<el-input
:autosize=
"{ minRows: 3, maxRows: 4}"
v-model=
"temp.noticeAddress"
type=
"textarea"
placeholder=
"Please input"
/>
</el-form-item>
<el-form-item
label=
"是否部署到容器"
label-width=
"120"
>
<el-form-item
label=
"是否部署到容器"
label-width=
"120
px !important
"
>
<el-switch
v-model=
"temp.isDeploy"
inactive-color=
"#efefef"
active-color=
"#13ce66"
/>
</el-form-item>
<el-form-item
v-if=
"temp.isDeploy"
label=
"
namespace
"
prop=
"namespace"
>
<el-form-item
v-if=
"temp.isDeploy"
label=
"
命名空间
"
prop=
"namespace"
>
<el-input
v-model=
"temp.namespace"
/>
</el-form-item>
</el-form>
...
...
@@ -118,6 +124,9 @@ export default {
replaceeRef
(
ref
)
{
return
ref
?
ref
.
replace
(
'
refs/heads/
'
,
''
)
:
''
},
formatDeploy
(
ref
)
{
return
ref
?
'
是
'
:
'
否
'
},
formatDate
(
date
,
pattern
=
'
YYYY-MM-DD HH:mm:ss
'
)
{
return
moment
(
date
).
format
(
pattern
)
}
...
...
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