fix:this指向问题修正
This commit is contained in:
parent
0b60a04b76
commit
f8ef6300b3
|
|
@ -515,10 +515,11 @@ export default {
|
||||||
},
|
},
|
||||||
//合批
|
//合批
|
||||||
batchConcat(){
|
batchConcat(){
|
||||||
this.changebatch = true;
|
let that = this;
|
||||||
|
that.changebatch = true;
|
||||||
let handoverb = [];
|
let handoverb = [];
|
||||||
if(this.selection.length>0){
|
if(that.selection.length>0){
|
||||||
this.selection.forEach(item=>{
|
that.selection.forEach(item=>{
|
||||||
that.Mmodel = item.material_.model;
|
that.Mmodel = item.material_.model;
|
||||||
let obj = {};
|
let obj = {};
|
||||||
obj.id = item.id;
|
obj.id = item.id;
|
||||||
|
|
@ -531,11 +532,11 @@ export default {
|
||||||
handoverb.push(obj)
|
handoverb.push(obj)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.type = 10;
|
that.type = 10;
|
||||||
this.tag = 'todo';
|
that.tag = 'todo';
|
||||||
this.dialog.scrap = true;
|
that.dialog.scrap = true;
|
||||||
this.$nextTick(() => {
|
that.$nextTick(() => {
|
||||||
this.$refs.scrapDialog.open("add",handoverb,30);
|
that.$refs.scrapDialog.open("add",handoverb,30);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleScrapSuccess(){
|
handleScrapSuccess(){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue