|
@@ -162,21 +162,21 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
confirm() {
|
|
confirm() {
|
|
- console.log(this.indexfu)
|
|
|
|
if(!this.aniisTrue){
|
|
if(!this.aniisTrue){
|
|
console.log('no');
|
|
console.log('no');
|
|
return ;
|
|
return ;
|
|
}
|
|
}
|
|
let sdata = this.$refs.tmPicKersTest.getSelectedValue();
|
|
let sdata = this.$refs.tmPicKersTest.getSelectedValue();
|
|
|
|
|
|
- let saray = [];
|
|
|
|
|
|
+ let saray = [],newray=[];
|
|
sdata.forEach(item=>{
|
|
sdata.forEach(item=>{
|
|
- var obj={data:item.data,name:this.indexfu}
|
|
|
|
|
|
+ var obj={data:item.data};
|
|
|
|
+ var obj1={data:item.data,name:this.indexfu}
|
|
saray.push(obj)
|
|
saray.push(obj)
|
|
|
|
+ newray.push(obj1)
|
|
})
|
|
})
|
|
- console.log(sdata)
|
|
|
|
if(this.indexfu){
|
|
if(this.indexfu){
|
|
- this.$emit('confirm',saray)
|
|
|
|
|
|
+ this.$emit('confirm',newray)
|
|
}else{
|
|
}else{
|
|
this.$emit('confirm',sdata)
|
|
this.$emit('confirm',sdata)
|
|
}
|
|
}
|