Commit 914267b5 by 吴娟华

'1.2.1'

1 parent 830be8f2
...@@ -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.vin"> <li v-for="item in resultList" :key="item.vdId">
<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.vin"> <li v-for="item in chosenList" :key="item.vdId">
<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.vin === item.vin (o) => o.vdId === 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.vin === item.vin (o) => o.vdId === 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.vin === item.vin (o) => o.vdId === item.vdId
); );
if (findItem) return; if (findItem) return;
this.chosenList.push(item); 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!