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
c8298d85
Commit
c8298d85
authored
Jul 18, 2019
by
kewei.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改展示bug
parent
fcbabc9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
application.vue
src/views/pipeline/application.vue
+15
-2
No files found.
src/views/pipeline/application.vue
View file @
c8298d85
...
...
@@ -32,7 +32,7 @@
</el-table-column>
<el-table-column
label=
"项目->分支"
align=
"center"
width=
"300px"
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"item in scope.row.repos"
:key=
"item.id"
><b>
{{
item
.
repository
}}
</b>
->
{{
item
.
ref
.
name
|
replaceeRef
}}
</div>
<div
v-for=
"item in scope.row.repos"
:key=
"item.id"
><b>
{{
item
.
repository
}}
</b>
->
{{
item
.
ref
.
name
}}
</div>
</
template
>
</el-table-column>
...
...
@@ -69,7 +69,7 @@
</el-select>
<label
style=
"margin:20px"
>
分支
</label>
<el-select
v-model=
"repoAndRefItem.ref.name"
filterable
value-key=
"id"
style=
"width:30%"
class=
"filter-item"
>
<el-option
v-for=
"item in refs[repoAndRefItem.repository]"
:value=
"item"
:label=
"item.name"
:key=
"item.name"
/>
<el-option
v-for=
"item in refs[repoAndRefItem.repository]"
:value=
"item
.name
"
:label=
"item.name"
:key=
"item.name"
/>
</el-select>
<el-button
:disabled=
"index===0?true:false"
style=
"margin-left:5px"
@
click=
"temp.repos.splice(index, 1)"
>
删除
</el-button>
</div>
...
...
@@ -291,6 +291,19 @@ export default {
})
if
(
this
.
dialogStatus
===
'
新建
'
)
{
this
.
temp
.
new_user
=
this
.
$store
.
getters
.
name
let
flag
=
true
this
.
temp
.
repos
.
forEach
((
item
)
=>
{
if
(
item
.
ref
.
name
==
null
||
item
.
ref
.
name
===
'
请选择
'
)
{
this
.
$notify
({
title
:
'
error
'
,
message
:
'
请仔细检查项目和分支名称是否填写正确
'
,
type
:
'
error
'
,
duration
:
2000
})
flag
=
false
}
})
if
(
!
flag
)
return
false
saveApplication
(
this
.
temp
).
then
(()
=>
{
this
.
dialogFormVisible
=
false
this
.
$notify
({
...
...
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