|
@@ -449,17 +449,17 @@
|
|
|
|
|
|
// 修改老板的成本
|
|
// 修改老板的成本
|
|
openInsertDialog1(i) {
|
|
openInsertDialog1(i) {
|
|
- var list = JSON.parse(JSON.stringify(this.list[i])) , arr = [] , array = [];
|
|
|
|
- if(list.departmentCascade!='0' && list.departmentCascade!=null) {
|
|
|
|
- if(list.departmentCascade.indexOf(",")>-1) {
|
|
|
|
- arr = list.departmentCascade.split(",");
|
|
|
|
|
|
+ var list1 = JSON.parse(JSON.stringify(this.list[i])) , arr1 = [] , array1 = [];
|
|
|
|
+ if(list1.departmentCascade!='0' && list1.departmentCascade!=null) {
|
|
|
|
+ if(list1.departmentCascade.indexOf(",")>-1) {
|
|
|
|
+ arr1 = list1.departmentCascade.split(",");
|
|
} else {
|
|
} else {
|
|
- arr = [].concat(list.departmentCascade)
|
|
|
|
|
|
+ arr1 = [].concat(list1.departmentCascade)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- for(var i in arr) {
|
|
|
|
- array.push(parseInt(arr[i]))
|
|
|
|
|
|
+ for(var i in arr1) {
|
|
|
|
+ array1.push(parseInt(arr1[i]))
|
|
}
|
|
}
|
|
this.insertForm = {
|
|
this.insertForm = {
|
|
id: this.list[i].id,
|
|
id: this.list[i].id,
|
|
@@ -467,7 +467,7 @@
|
|
phone: this.list[i].phone,
|
|
phone: this.list[i].phone,
|
|
role: this.list[i].role,
|
|
role: this.list[i].role,
|
|
cost: this.list[i].cost,
|
|
cost: this.list[i].cost,
|
|
- departmentId: array,
|
|
|
|
|
|
+ departmentId: array1,
|
|
};
|
|
};
|
|
this.dialogVisible1 = true;
|
|
this.dialogVisible1 = true;
|
|
},
|
|
},
|