|  | @@ -15,7 +15,7 @@
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot="businesDateSearch">
 | 
	
		
			
				|  |  |            <el-date-picker v-model="search.businesDate" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期"
 | 
	
		
			
				|  |  | -            format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']">
 | 
	
		
			
				|  |  | +            format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']" :picker-options="pickerOptions">
 | 
	
		
			
				|  |  |            </el-date-picker>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot-scope="{ row, index }" slot="menu">
 | 
	
	
		
			
				|  | @@ -72,6 +72,29 @@ export default {
 | 
	
		
			
				|  |  |          pageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        option: {},
 | 
	
		
			
				|  |  | +      pickerOptions: {
 | 
	
		
			
				|  |  | +        disabledDate(time) {
 | 
	
		
			
				|  |  | +          return time.getTime() > Date.now();
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        shortcuts: [
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            text: '昨天',
 | 
	
		
			
				|  |  | +            onClick(picker) {
 | 
	
		
			
				|  |  | +              const end = new Date();
 | 
	
		
			
				|  |  | +              const start = new Date();
 | 
	
		
			
				|  |  | +              start.setTime(start.getTime() - 3600 * 1000 * 24);
 | 
	
		
			
				|  |  | +              picker.$emit('pick', [start, end]);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          }, {
 | 
	
		
			
				|  |  | +            text: '最近一周',
 | 
	
		
			
				|  |  | +            onClick(picker) {
 | 
	
		
			
				|  |  | +              const end = new Date();
 | 
	
		
			
				|  |  | +              const start = new Date();
 | 
	
		
			
				|  |  | +              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
 | 
	
		
			
				|  |  | +              picker.$emit('pick', [start, end]);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          }]
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    components: {
 | 
	
	
		
			
				|  | @@ -94,9 +117,9 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      searchCriteriaSwitch(type) {
 | 
	
		
			
				|  |  |        if (type) {
 | 
	
		
			
				|  |  | -        this.option.height = this.option.height - 46;
 | 
	
		
			
				|  |  | +        this.option.height = this.option.height - 189;
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  | -        this.option.height = this.option.height + 46;
 | 
	
		
			
				|  |  | +        this.option.height = this.option.height + 189;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        this.$refs.crud.getTableHeight();
 | 
	
		
			
				|  |  |      },
 |