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
45eec53f
Commit
45eec53f
authored
Dec 12, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加sonar结果
parent
cadf901e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
18 deletions
+27
-18
index.js
src/router/index.js
+1
-1
manager.vue
src/views/dbconfig/manager.vue
+1
-0
application.vue
src/views/pipeline/application.vue
+5
-5
quali.vue
src/views/pipeline/quali.vue
+12
-7
sonarJob.vue
src/views/pipeline/sonarJob.vue
+4
-1
index.vue
src/views/proconfig/index.vue
+4
-4
No files found.
src/router/index.js
View file @
45eec53f
...
...
@@ -176,7 +176,7 @@ export const asyncRouterMap = [
path
:
''
,
component
:
()
=>
import
(
'
@/views/proconfig/index
'
),
name
:
'
proconfig
'
,
meta
:
{
title
:
'
项目
配置文件管理
'
,
icon
:
'
documentation
'
}
meta
:
{
title
:
'
服务
配置文件管理
'
,
icon
:
'
documentation
'
}
}
]
},
...
...
src/views/dbconfig/manager.vue
View file @
45eec53f
...
...
@@ -7,6 +7,7 @@
<el-table
:data=
"configs"
:header-cell-style=
"
{background:'#F3F4F7',color:'#555'}"
max-height="700"
border
highlight-current-row
style="width: 100%;">
...
...
src/views/pipeline/application.vue
View file @
45eec53f
...
...
@@ -29,7 +29,7 @@
<span
class=
"link-type"
@
click=
"handleUpdate(scope.row)"
>
{{
scope
.
row
.
application_name
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"
项目
->分支"
align=
"center"
width=
"300px"
>
<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
}}
</div>
</
template
>
...
...
@@ -62,7 +62,7 @@
</el-form-item>
<div
>
<div
v-for=
"(repoAndRefItem,index) in temp.repos"
:key=
"repoAndRefItem.id"
style=
"width:110%;margin-bottom:20px"
>
<label
style=
"margin-right:20px"
>
项目
</label>
<label
style=
"margin-right:20px"
>
服务
</label>
<el-select
v-model=
"repoAndRefItem.repository"
filterable
value-key=
"id"
style=
"width:30%"
class=
"filter-item"
@
change=
"getRefs(repoAndRefItem.repository,true)"
>
<el-option
v-for=
"item in repos"
:value=
"item.project_name"
:label=
"item.project_name"
:key=
"item.project_name"
/>
</el-select>
...
...
@@ -73,7 +73,7 @@
<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>
<el-button
type=
"primary"
style=
"width:100%"
@
click=
"newRepoAndRef()"
>
+ 新增
服务
&
分支
</el-button>
</div>
</div>
<el-form-item
label=
"通知方式"
prop=
"noticeType"
>
...
...
@@ -322,7 +322,7 @@ export default {
if
(
item
.
ref
.
name
==
null
||
item
.
ref
.
name
===
'
请选择
'
)
{
this
.
$notify
({
title
:
'
error
'
,
message
:
'
请仔细检查
项目
和分支名称是否填写正确
'
,
message
:
'
请仔细检查
服务
和分支名称是否填写正确
'
,
type
:
'
error
'
,
duration
:
2000
})
...
...
@@ -347,7 +347,7 @@ export default {
if
(
item
.
ref
.
name
==
null
||
item
.
ref
.
name
===
'
请选择
'
)
{
this
.
$notify
({
title
:
'
error
'
,
message
:
'
请仔细检查
项目
和分支名称是否填写正确
'
,
message
:
'
请仔细检查
服务
和分支名称是否填写正确
'
,
type
:
'
error
'
,
duration
:
2000
})
...
...
src/views/pipeline/quali.vue
View file @
45eec53f
<
template
>
<div
class=
"app-container"
>
<div
style=
"margin-bottom:20px"
>
<el-input
v-model=
"listQuery.projectName"
placeholder=
"
项目
名称"
clearable
style=
"width: 200px;"
class=
"filter-item"
@
keyup.enter.native=
"handleFilter"
/>
<el-input
v-model=
"listQuery.projectName"
placeholder=
"
服务
名称"
clearable
style=
"width: 200px;"
class=
"filter-item"
@
keyup.enter.native=
"handleFilter"
/>
<el-date-picker
v-model=
"dateRange"
...
...
@@ -29,23 +29,28 @@
<el-table-column
label=
"ID"
type=
"index"
align=
"center"
width=
"65"
/>
<el-table-column
sortable
label=
"
项目
"
prop=
"projectName"
align=
"center"
>
<el-table-column
sortable
label=
"
服务
"
prop=
"projectName"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
projectName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
sortable
label=
"
Task s
um"
prop=
"run"
align=
"center"
/>
<el-table-column
sortable
label=
"
S
um"
prop=
"run"
align=
"center"
/>
<el-table-column
sortable
label=
"
Task success
"
prop=
"success"
align=
"center"
/>
<el-table-column
sortable
label=
"
OK
"
prop=
"success"
align=
"center"
/>
<el-table-column
:sort-method=
"sortFail"
sortable
label=
"Task fail"
align=
"center"
>
<el-table-column
sortable
label=
"Warn"
prop=
"warn"
align=
"center"
/>
<el-table-column
sortable
label=
"Error"
prop=
"error"
align=
"center"
/>
<!-- <el-table-column :sort-method="sortFail" sortable label="Warn&Error" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fail + scope.row.exception }}</span>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column
sortable
label=
"Excetpion"
prop=
"exception"
align=
"center"
/>
<el-table-column
:sort-method=
"sortRate"
sortable
label=
"
成功
率"
align=
"center"
>
<el-table-column
:sort-method=
"sortRate"
sortable
label=
"
通过
率"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tag
:type=
"scope.row.success/scope.row.run | statusFilter"
>
{{
scope
.
row
.
success
/
scope
.
row
.
run
*
100
|
decimalsFilter
}}
%
</el-tag>
</
template
>
...
...
src/views/pipeline/sonarJob.vue
View file @
45eec53f
...
...
@@ -23,7 +23,7 @@
highlight-current-row
style=
"width: 100%;"
>
<el-table-column
type=
"index"
align=
"center"
width=
"65"
/>
<el-table-column
label=
"
项目
"
prop=
"projectName"
align=
"center"
/>
<el-table-column
label=
"
服务
"
prop=
"projectName"
align=
"center"
/>
<el-table-column
label=
"分支"
prop=
"branchName"
align=
"center"
/>
<el-table-column
prop=
"gitUser"
label=
"触发者"
align=
"center"
/>
<el-table-column
prop=
"commitMes"
label=
"触发信息"
align=
"center"
/>
...
...
@@ -116,6 +116,9 @@ export default {
case
'
WARN
'
:
item
.
statusIcon
=
'
el-icon-warning
'
break
case
'
FAILED
'
:
item
.
statusIcon
=
'
el-icon-remove
'
break
default
:
item
.
statusIcon
=
'
el-icon-loading
'
break
...
...
src/views/proconfig/index.vue
View file @
45eec53f
<
template
>
<div
class=
"app-container"
>
<div
class=
"filter-container"
>
<el-input
v-model=
"listQuery.project_name"
placeholder=
"
项目
名称"
clearable
style=
"width: 200px;"
class=
"filter-item"
@
keyup.enter.native=
"getProjects"
/>
<el-select
v-model=
"listQuery.type"
placeholder=
"
项目
类型"
clearable
style=
"width: 200px"
class=
"filter-item"
>
<el-input
v-model=
"listQuery.project_name"
placeholder=
"
服务
名称"
clearable
style=
"width: 200px;"
class=
"filter-item"
@
keyup.enter.native=
"getProjects"
/>
<el-select
v-model=
"listQuery.type"
placeholder=
"
服务
类型"
clearable
style=
"width: 200px"
class=
"filter-item"
>
<el-option
v-for=
"item in typeOptions"
:key=
"item.key"
:label=
"item.display_name"
:value=
"item.key"
/>
</el-select>
<el-select
v-model=
"listQuery.is_active"
placeholder=
"是否服役"
clearable
style=
"width: 200px"
class=
"filter-item"
>
...
...
@@ -115,7 +115,7 @@
<el-form-item
label=
"负责人"
style=
"width: 100%;"
prop=
"auth"
>
<el-input
v-model=
"temp.auth"
/>
</el-form-item>
<el-form-item
label=
"
项目
描述"
style=
"width: 100%;"
>
<el-form-item
label=
"
服务
描述"
style=
"width: 100%;"
>
<el-input
:autosize=
"{ minRows: 1, maxRows: 4}"
v-model=
"temp.des"
type=
"textarea"
placeholder=
"Please input"
/>
</el-form-item>
<el-form-item
label=
"API"
style=
"width: 100%;"
>
...
...
@@ -264,7 +264,7 @@ export default {
sort
:
'
+project_name
'
},
typeOptions
:
[],
sortOptions
:
[{
label
:
'
项目名升序
'
,
key
:
'
+project_name
'
},
{
label
:
'
项目
名降序
'
,
key
:
'
-project_name
'
}],
sortOptions
:
[{
label
:
'
服务名升序
'
,
key
:
'
+project_name
'
},
{
label
:
'
服务
名降序
'
,
key
:
'
-project_name
'
}],
temp
:
{
},
dialogFormVisible
:
false
,
...
...
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