|
@@ -162,21 +162,21 @@
|
|
|
},
|
|
|
methods: {
|
|
|
confirm() {
|
|
|
- console.log(this.indexfu)
|
|
|
if(!this.aniisTrue){
|
|
|
console.log('no');
|
|
|
return ;
|
|
|
}
|
|
|
let sdata = this.$refs.tmPicKersTest.getSelectedValue();
|
|
|
|
|
|
- let saray = [];
|
|
|
+ let saray = [],newray=[];
|
|
|
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)
|
|
|
+ newray.push(obj1)
|
|
|
})
|
|
|
- console.log(sdata)
|
|
|
if(this.indexfu){
|
|
|
- this.$emit('confirm',saray)
|
|
|
+ this.$emit('confirm',newray)
|
|
|
}else{
|
|
|
this.$emit('confirm',sdata)
|
|
|
}
|