|
|
@@ -108,8 +108,11 @@ try {
|
|
108
|
108
|
const appendItem = (list) => {
|
|
109
|
109
|
list.forEach(attr => {
|
|
110
|
110
|
let type = 'department'
|
|
111
|
|
- if (attr.deptType === 'DEPARTMENT') {
|
|
112
|
|
- type = 'department'
|
|
|
111
|
+ if (attr.deptType === 'BRIGADE') {
|
|
|
112
|
+ type = 'brigade'
|
|
|
113
|
+ }
|
|
|
114
|
+ if (attr.deptType === 'MANAGER') {
|
|
|
115
|
+ type = 'manager'
|
|
113
|
116
|
}
|
|
114
|
117
|
if (attr.deptType === 'TEAMS') {
|
|
115
|
118
|
type = 'team'
|
|
|
@@ -126,6 +129,7 @@ try {
|
|
126
|
129
|
}
|
|
127
|
130
|
})
|
|
128
|
131
|
}
|
|
|
132
|
+
|
|
129
|
133
|
departments.value = res.data.reduce((cur, acc) => {
|
|
130
|
134
|
acc.children && acc.children.length && cur.push(...acc.children)
|
|
131
|
135
|
appendItem(acc.children)
|