|
@@ -158,7 +158,7 @@ export default {
|
|
|
if ((year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0)) {
|
|
if ((year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0)) {
|
|
|
monthList[1] = 29
|
|
monthList[1] = 29
|
|
|
}
|
|
}
|
|
|
- const { userId, position, level } = this.$store.getters
|
|
|
|
|
|
|
+ const { userId, position, level, mainPosition } = this.$store.getters
|
|
|
return {
|
|
return {
|
|
|
dialogParams: {},
|
|
dialogParams: {},
|
|
|
MaintenanceStaticVisible: false,
|
|
MaintenanceStaticVisible: false,
|
|
@@ -174,7 +174,7 @@ export default {
|
|
|
month: monthValue,
|
|
month: monthValue,
|
|
|
monthDays: monthDays,
|
|
monthDays: monthDays,
|
|
|
userId: userId,
|
|
userId: userId,
|
|
|
- position: position,
|
|
|
|
|
|
|
+ position: (mainPosition && mainPosition.id) || position,
|
|
|
level: level.second || level.first,
|
|
level: level.second || level.first,
|
|
|
loading: false,
|
|
loading: false,
|
|
|
title: '设备维护统计',
|
|
title: '设备维护统计',
|