|
@@ -71,7 +71,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
list: this.listData,
|
|
|
- value: []
|
|
|
+ value: this.defValue
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -79,6 +79,7 @@ export default {
|
|
|
this.list = newValue;
|
|
|
},
|
|
|
defValue(newValue) {
|
|
|
+ console.log(newValue)
|
|
|
this.value = newValue;
|
|
|
this.hasCheck();
|
|
|
}
|
|
@@ -88,6 +89,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
hasCheck() {
|
|
|
+ console.log(this.value)
|
|
|
this.list.map(item => {
|
|
|
let a = this.value.findIndex(k=>{
|
|
|
return this.backValue == 'idArr' ? k == item.id : k.id == item.id
|
|
@@ -111,7 +113,6 @@ export default {
|
|
|
this.value.push(this.backValue == 'idArr' ? item.id : item);
|
|
|
}
|
|
|
}
|
|
|
- this.hasCheck();
|
|
|
},
|
|
|
rightClick(item) {
|
|
|
this.$emit('rightClick', item);
|