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
ed76daff
Commit
ed76daff
authored
May 08, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目管理 增加是否部署
parent
eade9f0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
index.vue
src/views/proconfig/index.vue
+31
-6
No files found.
src/views/proconfig/index.vue
View file @
ed76daff
...
...
@@ -55,6 +55,11 @@
<el-tag
:type=
"scope.row.is_active | statusFilter"
>
{{
scope
.
row
.
is_active
|
activeFileter
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"部署"
width=
"90px"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tag
:type=
"scope.row.deploy_to_testenv | statusFilter"
>
{{
scope
.
row
.
deploy_to_testenv
|
deployFileter
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('table.actions')"
align=
"center"
width=
"180"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleUpdate(scope.row)"
>
{{
$t
(
'
table.edit
'
)
}}
</el-button>
...
...
@@ -81,6 +86,11 @@
<el-option
v-for=
"item in avtiveOptions"
:key=
"item.key"
:label=
"item.display_name"
:value=
"item.key"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"是否部署"
>
<el-select
v-model=
"temp.deploy_to_testenv"
class=
"filter-item"
placeholder=
"Please select"
>
<el-option
v-for=
"item in deployOptions"
:key=
"item.key"
:label=
"item.display_name"
:value=
"item.key"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"项目描述"
style=
"width:100%"
>
<el-input
:autosize=
"{ minRows: 2, maxRows: 4}"
v-model=
"temp.des"
type=
"textarea"
placeholder=
"Please input"
/>
</el-form-item>
...
...
@@ -152,7 +162,17 @@ const avtiveOptions = [
{
key
:
false
,
display_name
:
'
退役了
'
}
]
const
calendarActiveKeyValue
=
avtiveOptions
.
reduce
((
acc
,
cur
)
=>
{
const
activeKeyValue
=
avtiveOptions
.
reduce
((
acc
,
cur
)
=>
{
acc
[
cur
.
key
]
=
cur
.
display_name
return
acc
},
{})
const
deployOptions
=
[
{
key
:
true
,
display_name
:
'
是
'
},
{
key
:
false
,
display_name
:
'
否
'
}
]
const
deployKeyValue
=
deployOptions
.
reduce
((
acc
,
cur
)
=>
{
acc
[
cur
.
key
]
=
cur
.
display_name
return
acc
},
{})
...
...
@@ -173,7 +193,10 @@ export default {
return
calendarTypeKeyValue
[
type
]
},
activeFileter
(
status
)
{
return
calendarActiveKeyValue
[
status
]
return
activeKeyValue
[
status
]
},
deployFileter
(
status
)
{
return
deployKeyValue
[
status
]
}
},
data
()
{
...
...
@@ -202,7 +225,8 @@ export default {
// title: [{ required: true, message: 'title is required', trigger: 'blur' }]
},
proconfigs
:
[],
avtiveOptions
avtiveOptions
,
deployOptions
}
},
created
()
{
...
...
@@ -242,6 +266,7 @@ export default {
this
.
temp
=
{
port
:
''
,
is_active
:
undefined
,
deploy_to_testenv
:
undefined
,
type
:
''
,
project_name
:
''
,
git_path
:
''
,
...
...
@@ -290,9 +315,9 @@ export default {
this
.
temp
=
Object
.
assign
({},
row
)
// copy obj
this
.
dialogStatus
=
'
update
'
this
.
dialogFormVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'
dataForm
'
].
clearValidate
()
})
//
this.$nextTick(() => {
//
this.$refs['dataForm'].clearValidate()
//
})
},
handleDelete
(
row
)
{
...
...
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