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
2b7b5125
Commit
2b7b5125
authored
Nov 26, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除第一行
parent
bd03075d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
application.vue
src/views/pipeline/application.vue
+6
-6
No files found.
src/views/pipeline/application.vue
View file @
2b7b5125
...
...
@@ -56,7 +56,7 @@
<!-- <pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" /> -->
<el-dialog
:title=
"dialogStatus"
:visible.sync=
"dialogFormVisible"
>
<el-dialog
:title=
"dialogStatus"
:visible.sync=
"dialogFormVisible"
:show-close=
"showClose"
>
<el-form
ref=
"dataForm"
:rules=
"rules"
:model=
"temp"
label-position=
"left"
label-width=
"80px"
style=
"width: 90%; margin-left:40px;"
>
<el-form-item
label=
"应用名称"
prop=
"application_name"
>
<el-input
v-model=
"temp.application_name"
/>
...
...
@@ -71,7 +71,7 @@
<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.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>
<el-button
:disabled=
"index===0
&& temp.repos.length===1
"
style=
"margin-left:5px"
@
click=
"temp.repos.splice(index, 1)"
>
删除
</el-button>
</div>
<div
style=
"width:100%;margin-bottom:20px"
>
<el-button
type=
"primary"
style=
"width:100%"
@
click=
"newRepoAndRef()"
>
+ 新增项目
&
分支
</el-button>
...
...
@@ -105,7 +105,7 @@
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"
dialogFormVisible = false
"
>
{{ $t('table.cancel') }}
</el-button>
<el-button
@
click=
"
handleFilter
"
>
{{ $t('table.cancel') }}
</el-button>
<el-button
type=
"primary"
@
click=
"createData()"
>
{{ $t('table.confirm') }}
</el-button>
</div>
</el-dialog>
...
...
@@ -175,7 +175,8 @@ export default {
refs
:
{},
ref
:
undefined
,
clusterArray
:
[],
nsArray
:
[]
nsArray
:
[],
showClose
:
false
}
},
computed
:
{
...
...
@@ -242,6 +243,7 @@ export default {
},
handleFilter
()
{
this
.
dialogFormVisible
=
false
this
.
getApplications
()
},
...
...
@@ -299,7 +301,6 @@ export default {
}
}))
this
.
refs
[
repo
].
push
({
id
:
'
0
'
,
name
:
'
请选择
'
})
console
.
log
(
this
.
refs
)
this
.
refs
[
repo
].
reverse
()
}
})
...
...
@@ -316,7 +317,6 @@ export default {
this
.
$refs
[
'
dataForm
'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
temp
.
repos
.
forEach
(
item
=>
{
console
.
log
(
item
)
this
.
repos
.
forEach
(
value
=>
{
if
(
item
.
repository
===
value
.
project_name
)
{
this
.
$set
(
item
,
'
type
'
,
value
.
type
)
...
...
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