Преглед изворни кода

feat(统计): 在统计组件中添加本主管选项并修正部门类型判断

在WorkOutput和standard-execution组件中增加本主管选项,同时将index.vue中的部门类型判断从DEPARTMENT改为MANAGER以保持一致性
huoyi пре 3 месеци
родитељ
комит
fcd622807f

+ 1 - 0
src/pages/eikonStatistics/components/WorkOutput.vue

@@ -81,6 +81,7 @@ export default {
81 81
         return [
82 82
           { value: 'station', label: '全站' },
83 83
           { value: 'brigade', label: '本大队' },
84
+          { value: 'department', label: '本主管' },
84 85
         ]
85 86
       }
86 87
       if (this.isPersonal) {

+ 1 - 0
src/pages/eikonStatistics/components/standard-execution.vue

@@ -148,6 +148,7 @@ export default {
148 148
         return [
149 149
           { value: 'station', label: '全站' },
150 150
           { value: 'brigade', label: '本大队' },
151
+          { value: 'department', label: '本主管' },
151 152
         ]
152 153
       }
153 154
       if (this.isPersonal) {

+ 1 - 1
src/pages/eikonStatistics/index.vue

@@ -192,7 +192,7 @@ export default {
192 192
       if (deptType == 'STATION') {
193 193
         this.initLevel({ level: 'station', levelId: selectedDepartment.id })
194 194
       }
195
-      if (deptType == 'DEPARTMENT') {
195
+      if (deptType == 'MANAGER') {
196 196
         this.initLevel({ level: 'department', levelId: selectedDepartment.id })
197 197
       }
198 198
       if (deptType == 'TEAMS') {