工艺管理-回显bug

yangwl
A0010407 1 year ago
parent 5c3fb27add
commit cce9994051

@ -695,16 +695,23 @@ export default {
onItemSelectedEquipment(obj){
if(obj != undefined && obj != null){
console.log('返回',obj);
console.log(this.form.equipment);
if(this.form.equipment == null){
//obj = obj.slice(1);
console.log("if获取的",obj);
console.log("if获取的equipment",this.form.equipment);
console.log("else获取的",obj);
console.log("else获取的equipment",this.form.equipment);
this.form.equipment = obj;
console.log("赋值以后的equipment",this.form.equipment);
}else{
if(this.form.equipment.length > 0){
console.log("if获取的",obj);
console.log("if获取的equipment",this.form.equipment);
this.form.equipment = this.form.equipment +","+obj;
}else{
console.log("else获取的",obj);
console.log("else获取的equipment",this.form.equipment);
this.form.equipment = this.form.equipment +","+obj;
this.form.equipment = obj;
console.log("赋值以后的equipment",this.form.equipment);
}
}
}
},

Loading…
Cancel
Save