Commit 914267b5 by 吴娟华

'1.2.1'

1 parent 830be8f2
......@@ -153,7 +153,7 @@
<el-col :span="12" class="choose-list-wrap">
<p>结果列表</p>
<ul class="choose-list">
<li v-for="item in resultList" :key="item.vin">
<li v-for="item in resultList" :key="item.vdId">
<el-checkbox
v-model="item.checked"
@change="checkedChange(item)"
......@@ -188,7 +188,7 @@
<el-col :span="12" class="choose-list-wrap">
<p>已选列表</p>
<ul class="choose-list">
<li v-for="item in chosenList" :key="item.vin">
<li v-for="item in chosenList" :key="item.vdId">
<el-checkbox
v-model="item.checked"
@change="checkedChange(item)"
......@@ -357,7 +357,7 @@ export default {
this.resultList.forEach((item) => {
item.checked = true;
const findItem = this.chosenList.find(
(o) => o.vin === item.vin
(o) => o.vdId === item.vdId
);
if (!findItem) {
this.chosenList.push(item);
......@@ -368,7 +368,7 @@ export default {
this.resultList.forEach((item) => {
item.checked = false;
const findItem = this.chosenList.find(
(o) => o.vin === item.vin
(o) => o.vdId === item.vdId
);
if (findItem) {
this.chosenList.splice(this.chosenList.indexOf(findItem), 1);
......@@ -460,7 +460,7 @@ export default {
this.resultcheck = item.checked;
this.resultItem = item;
const findItem = this.chosenList.find(
(o) => o.vin === item.vin
(o) => o.vdId === item.vdId
);
if (findItem) return;
this.chosenList.push(item);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!