Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform-ui
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
qa-platform-ui
Commits
84222383
Commit
84222383
authored
Feb 21, 2022
by
王晓铜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改apllo下拉框自动输入功能
parent
d582896e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
4 deletions
+33
-4
EnvDetail.vue
src/views/docker/EnvDetail.vue
+31
-2
DetailTestDescription.vue
src/views/qa/DetailTestDescription.vue
+1
-1
TestDescription.vue
src/views/qa/TestDescription.vue
+1
-1
No files found.
src/views/docker/EnvDetail.vue
View file @
84222383
...
@@ -133,6 +133,9 @@
...
@@ -133,6 +133,9 @@
<el-button
v-show=
"nsList.indexOf(namespace) > -1"
type=
"warning"
size=
"mini"
round
<el-button
v-show=
"nsList.indexOf(namespace) > -1"
type=
"warning"
size=
"mini"
round
@
click=
"getRepository(item.projectType)"
>
新增服务
</el-button>
@
click=
"getRepository(item.projectType)"
>
新增服务
</el-button>
<el-button
type=
"success"
size=
"mini"
round
@
click=
"refresh"
>
刷新状态
</el-button>
<el-button
type=
"success"
size=
"mini"
round
@
click=
"refresh"
>
刷新状态
</el-button>
<!-- <el-button size="medium" icon='el-icon-arrow-right' type='text' @click="isShowTable(item.projectType)"
style="font-size:18px;font-weight:200;border-color:#EBEAEA;color:#797979"></el-button> -->
<!-- v-if="item.projectType==name?isNotShow:isShow" -->
</div>
</div>
</div>
</div>
<el-table
:data=
"FormatTabledata[item.projectType]"
:header-cell-style=
"{background:'#F3F4F7',color:'#555'}"
<el-table
:data=
"FormatTabledata[item.projectType]"
:header-cell-style=
"{background:'#F3F4F7',color:'#555'}"
...
@@ -432,7 +435,12 @@ export default {
...
@@ -432,7 +435,12 @@ export default {
lock
:
true
,
lock
:
true
,
spinner
:
'
el-icon-loading
'
,
spinner
:
'
el-icon-loading
'
,
background
:
'
rgba(0,0,0,0.7)
'
background
:
'
rgba(0,0,0,0.7)
'
}
},
javaShow
:
true
,
name
:
''
,
isShow
:
true
,
isNotShow
:
false
,
count
:
0
}
}
},
},
created
()
{
created
()
{
...
@@ -449,11 +457,32 @@ export default {
...
@@ -449,11 +457,32 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
// 是否显示拉下框
// isShowTable(typeName) {
// if (typeName === 'java') {
// this.name = 'java'
// }
// if (typeName === 'base') {
// this.name = 'base'
// }
// if (typeName === 'ui') {
// this.name = 'ui'
// }
// if (typeName === 'node') {
// this.name = 'node'
// }
// if (typeName === 'go') {
// this.name = 'go'
// }
// if (typeName === 'python') {
// this.name = 'python'
// }
// },
indexMethod
(
index
)
{
indexMethod
(
index
)
{
return
index
+
1
return
index
+
1
},
},
array2Object
(
original
)
{
array2Object
(
original
)
{
console
.
log
(
'
original:
'
,
original
)
//
console.log('original: ', original)
// 将数组转成对象存储
// 将数组转成对象存储
this
.
FormatTabledata
=
{}
this
.
FormatTabledata
=
{}
original
.
forEach
((
item
,
index
)
=>
{
original
.
forEach
((
item
,
index
)
=>
{
...
...
src/views/qa/DetailTestDescription.vue
View file @
84222383
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
<el-table
:data=
"apolloList"
border
style=
"width:95%"
>
<el-table
:data=
"apolloList"
border
style=
"width:95%"
>
<el-table-column
label=
"项目名称"
width=
"230"
>
<el-table-column
label=
"项目名称"
width=
"230"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-select
v-model=
"scope.row.projectName"
placeholder=
"请选择项目"
filterable
clearable
>
<el-select
v-model=
"scope.row.projectName"
placeholder=
"请选择项目"
filterable
clearable
allow-create
>
<el-option
v-for=
"item in projectNameList"
:key=
"item.projectName"
:label=
"item.projectName"
<el-option
v-for=
"item in projectNameList"
:key=
"item.projectName"
:label=
"item.projectName"
:value=
"item.projectName"
>
:value=
"item.projectName"
>
</el-option>
</el-option>
...
...
src/views/qa/TestDescription.vue
View file @
84222383
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
<el-table
:data=
"apolloList"
border
class=
"table-style"
>
<el-table
:data=
"apolloList"
border
class=
"table-style"
>
<el-table-column
label=
"项目名称"
width=
"230"
>
<el-table-column
label=
"项目名称"
width=
"230"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-select
v-model=
"scope.row.projectName"
placeholder=
"请选择项目"
filterable
clearable
>
<el-select
v-model=
"scope.row.projectName"
placeholder=
"请选择项目"
filterable
clearable
allow-create
>
<el-option
v-for=
"item in projectNameList"
:key=
"item.projectName"
:label=
"item.projectName"
<el-option
v-for=
"item in projectNameList"
:key=
"item.projectName"
:label=
"item.projectName"
:value=
"item.projectName"
>
:value=
"item.projectName"
>
</el-option>
</el-option>
...
...
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