|  | @@ -106,6 +106,27 @@ export function defaultDate3() {
 | 
	
		
			
				|  |  |      dateFormat(endDate, "yyyy-MM-dd")
 | 
	
		
			
				|  |  |    ];
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | +/**
 | 
	
		
			
				|  |  | + * 获取当年
 | 
	
		
			
				|  |  | + * [yyyy-MM-dd,yyyy-MM-dd]
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | + export function defaultDate4() {
 | 
	
		
			
				|  |  | +  const date = new Date();
 | 
	
		
			
				|  |  | +  return dateFormat(date, "yyyy");
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +/**
 | 
	
		
			
				|  |  | + * 获取上月第一天和上月最后一天
 | 
	
		
			
				|  |  | + * [yyyy-MM-dd,yyyy-MM-dd]
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | + export function defaultDate5() {
 | 
	
		
			
				|  |  | +  const date = new Date();
 | 
	
		
			
				|  |  | +  const startDate = new Date(date.getFullYear(), date.getMonth()-1, 1);
 | 
	
		
			
				|  |  | +  const endDate = new Date(date.getFullYear(), date.getMonth(), 0);
 | 
	
		
			
				|  |  | +  return [
 | 
	
		
			
				|  |  | +    dateFormat(startDate, "yyyy-MM-dd") + " 00:00:00",
 | 
	
		
			
				|  |  | +    dateFormat(endDate, "yyyy-MM-dd") + " 23:59:59"
 | 
	
		
			
				|  |  | +  ];
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  |  // 获得当前日期
 | 
	
		
			
				|  |  |  export function getCurrentDate(type = 'dateTime') {
 | 
	
		
			
				|  |  |    const date = new Date();
 |