|
@@ -149,7 +149,7 @@ export default {
|
|
|
dragMove: true,
|
|
|
drawer: false,
|
|
|
info: {},
|
|
|
- list1: [{
|
|
|
+ list0: [{
|
|
|
"id": 10109,
|
|
|
"pId": 0,
|
|
|
"label": "朱晶",
|
|
@@ -468,7 +468,8 @@ export default {
|
|
|
"secretary": [[], []]
|
|
|
}, {"id": 10080, "pId": 10064, "label": "孙浩", "post": "主操", "secretary": [[], []]}]
|
|
|
}]
|
|
|
- }]
|
|
|
+ }],
|
|
|
+ list1: []
|
|
|
,
|
|
|
list2: [],
|
|
|
// 报告附件参数
|
|
@@ -568,6 +569,7 @@ export default {
|
|
|
this.list2 = []
|
|
|
|
|
|
for (let i = 0; i < this.staffmgrList.length; i++) {
|
|
|
+ console.log("第" + i)
|
|
|
let post = this.selectDictLabel(this.actualpostOptions, this.staffmgrList[i].actualpost)
|
|
|
if (this.staffmgrList[i].pId == 0) {
|
|
|
let nodeData = {
|
|
@@ -668,7 +670,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
list.forEach(item => {
|
|
|
- if (item.pId !== 0) {
|
|
|
+ if (item.pId !== 0 && map[item.pId]) {
|
|
|
// map[item.pId].children ? map[item.pId].children.push(item) : map[item.pId].children = [item];
|
|
|
if (item.post == '装置副经理') {
|
|
|
map[item.pId].secretary ? map[item.pId].secretary[0].push(item) : map[item.pId].secretary[0] = [item];
|