Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 914267b5
authored
Sep 27, 2021
by
吴娟华
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
'1.2.1'
1 parent
830be8f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/views/vehicleManage/userList.vue
src/views/vehicleManage/userList.vue
View file @
914267b
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
<el-col
:span=
"12"
class=
"choose-list-wrap"
>
<el-col
:span=
"12"
class=
"choose-list-wrap"
>
<p>
结果列表
</p>
<p>
结果列表
</p>
<ul
class=
"choose-list"
>
<ul
class=
"choose-list"
>
<li
v-for=
"item in resultList"
:key=
"item.v
in
"
>
<li
v-for=
"item in resultList"
:key=
"item.v
dId
"
>
<el-checkbox
<el-checkbox
v-model=
"item.checked"
v-model=
"item.checked"
@
change=
"checkedChange(item)"
@
change=
"checkedChange(item)"
...
@@ -188,7 +188,7 @@
...
@@ -188,7 +188,7 @@
<el-col
:span=
"12"
class=
"choose-list-wrap"
>
<el-col
:span=
"12"
class=
"choose-list-wrap"
>
<p>
已选列表
</p>
<p>
已选列表
</p>
<ul
class=
"choose-list"
>
<ul
class=
"choose-list"
>
<li
v-for=
"item in chosenList"
:key=
"item.v
in
"
>
<li
v-for=
"item in chosenList"
:key=
"item.v
dId
"
>
<el-checkbox
<el-checkbox
v-model=
"item.checked"
v-model=
"item.checked"
@
change=
"checkedChange(item)"
@
change=
"checkedChange(item)"
...
@@ -357,7 +357,7 @@ export default {
...
@@ -357,7 +357,7 @@ export default {
this
.
resultList
.
forEach
((
item
)
=>
{
this
.
resultList
.
forEach
((
item
)
=>
{
item
.
checked
=
true
;
item
.
checked
=
true
;
const
findItem
=
this
.
chosenList
.
find
(
const
findItem
=
this
.
chosenList
.
find
(
(
o
)
=>
o
.
v
in
===
item
.
vin
(
o
)
=>
o
.
v
dId
===
item
.
vdId
);
);
if
(
!
findItem
)
{
if
(
!
findItem
)
{
this
.
chosenList
.
push
(
item
);
this
.
chosenList
.
push
(
item
);
...
@@ -368,7 +368,7 @@ export default {
...
@@ -368,7 +368,7 @@ export default {
this
.
resultList
.
forEach
((
item
)
=>
{
this
.
resultList
.
forEach
((
item
)
=>
{
item
.
checked
=
false
;
item
.
checked
=
false
;
const
findItem
=
this
.
chosenList
.
find
(
const
findItem
=
this
.
chosenList
.
find
(
(
o
)
=>
o
.
v
in
===
item
.
vin
(
o
)
=>
o
.
v
dId
===
item
.
vdId
);
);
if
(
findItem
)
{
if
(
findItem
)
{
this
.
chosenList
.
splice
(
this
.
chosenList
.
indexOf
(
findItem
),
1
);
this
.
chosenList
.
splice
(
this
.
chosenList
.
indexOf
(
findItem
),
1
);
...
@@ -460,7 +460,7 @@ export default {
...
@@ -460,7 +460,7 @@ export default {
this
.
resultcheck
=
item
.
checked
;
this
.
resultcheck
=
item
.
checked
;
this
.
resultItem
=
item
;
this
.
resultItem
=
item
;
const
findItem
=
this
.
chosenList
.
find
(
const
findItem
=
this
.
chosenList
.
find
(
(
o
)
=>
o
.
v
in
===
item
.
vin
(
o
)
=>
o
.
v
dId
===
item
.
vdId
);
);
if
(
findItem
)
return
;
if
(
findItem
)
return
;
this
.
chosenList
.
push
(
item
);
this
.
chosenList
.
push
(
item
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment