|
@@ -149,10 +149,10 @@ export default {
|
149
|
149
|
leave_num: {
|
150
|
150
|
title: '请假', times: 2, color: '#9bde78'
|
151
|
151
|
},
|
152
|
|
- late_num: {
|
|
152
|
+ normal_num: {
|
153
|
153
|
title: '正常', times: 3, color: '#e0be60'
|
154
|
154
|
},
|
155
|
|
- normal_num: {
|
|
155
|
+ late_num: {
|
156
|
156
|
title: '迟到', times: 1, color: '#61d4e2'
|
157
|
157
|
},
|
158
|
158
|
absenteeism_num: {
|
|
@@ -161,11 +161,11 @@ export default {
|
161
|
161
|
}
|
162
|
162
|
}
|
163
|
163
|
},
|
164
|
|
- onReady() {
|
|
164
|
+ onShow() {
|
165
|
165
|
const today = getDate(new Date(), 0)
|
166
|
|
- this.info.year = today.year
|
167
|
|
- this.info.month = today.month
|
168
|
|
- this.info.day = today.date
|
|
166
|
+ this.info.year = this.info.year || today.year
|
|
167
|
+ this.info.month = this.info.month || today.month
|
|
168
|
+ this.info.day = this.info.day || today.date
|
169
|
169
|
this.init()
|
170
|
170
|
},
|
171
|
171
|
methods: {
|