Explorar o código

考勤统计部分页面keepalive

wgl %!s(int64=4) %!d(string=hai) anos
pai
achega
580329c5c6

+ 3 - 1
src/projects/business/views/Master/Attendance/StatisticList.vue

@@ -456,7 +456,9 @@
 		//keepalive监控判断
 		beforeRouteLeave(to, from, next) {
 			console.log(to.name);
-			if (['MasterAttendanceTemperatureInfo', 'MasterAttendanceLeaveInfo', 'MasterAttendanceInfo'].indexOf(to.name) > -1) {
+			if (['MasterEgressInfo', 'MasterBusinessTravelInfo', 'MasterAttendanceTemperatureInfo', 'MasterAttendanceLeaveInfo',
+					'MasterAttendanceInfo'
+				].indexOf(to.name) > -1) {
 				this.$store.commit('SET_KEEP_ALIVE_COMPONENTS', ['MasterAttendanceStatisticList'])
 			} else {
 				this.$store.commit('SET_KEEP_ALIVE_COMPONENTS', [])