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
704af49f
Commit
704af49f
authored
Jun 11, 2021
by
晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改复选框只能单选
parent
e1ac564a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
EditScene.vue
src/views/auto/EditScene.vue
+12
-1
No files found.
src/views/auto/EditScene.vue
View file @
704af49f
...
...
@@ -45,7 +45,7 @@
</el-select>
</el-form-item>
<el-form-item>
<el-table
:data=
"sceneCaseForm.caseList"
border
style=
"width: 100%;margin-left:1px"
@
selection-change=
"handleSelectionChange
"
>
<el-table
ref=
"multipleTable"
:data=
"sceneCaseForm.caseList"
border
style=
"width: 100%;margin-left:1px"
@
selection-change=
"handleSelectionChange"
@
select=
"select"
@
select-all=
"selectAll
"
>
<el-table-column
type=
"selection"
style=
"width:10%"
>
</el-table-column>
<el-table-column
type=
'index'
style=
"width:15%"
></el-table-column>
...
...
@@ -402,6 +402,17 @@ export default {
handleSelectionChange
(
row
)
{
this
.
sceneCaseForm
.
caseDetialList
=
row
},
select
(
selection
,
row
)
{
if
(
selection
.
length
>
1
)
{
let
delRow
=
selection
.
shift
()
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
delRow
,
false
)
}
},
selectAll
(
selection
)
{
if
(
selection
.
length
>
1
)
{
selection
.
length
=
1
}
},
// 添加确定按钮
addSceneFrom
()
{
this
.
sceneTestcaseList
.
push
({
...
...
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