|  | @@ -18,6 +18,7 @@
 | 
	
		
			
				|  |  |          @saveColumn="saveColumn"
 | 
	
		
			
				|  |  |          :cell-style="cellStyle"
 | 
	
		
			
				|  |  |          :summary-method="summaryMethod"
 | 
	
		
			
				|  |  | +        @search-criteria-switch="searchCriteriaSwitch"
 | 
	
		
			
				|  |  |        >
 | 
	
		
			
				|  |  |          <template slot="menuLeft">
 | 
	
		
			
				|  |  |            <el-button
 | 
	
	
		
			
				|  | @@ -263,6 +264,7 @@ export default {
 | 
	
		
			
				|  |  |      this.getWorkDicts("price_library_currency").then(res => {
 | 
	
		
			
				|  |  |        this.currencyList = res.data.data;
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  | +     this.option.height = window.innerHeight - 210;
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    filters: {
 | 
	
		
			
				|  |  |      orderStateFormat(val) {
 | 
	
	
		
			
				|  | @@ -291,6 +293,14 @@ export default {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +    searchCriteriaSwitch(type) {
 | 
	
		
			
				|  |  | +      if (type) {
 | 
	
		
			
				|  |  | +        this.option.height = this.option.height - 93;
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        this.option.height = this.option.height + 93;
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      this.$refs.crud.getTableHeight();
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      cellStyle() {
 | 
	
		
			
				|  |  |        return "padding:0;height:40px;";
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -378,7 +388,11 @@ export default {
 | 
	
		
			
				|  |  |          tradeType: "CK"
 | 
	
		
			
				|  |  |        };
 | 
	
		
			
				|  |  |        this.loading = true;
 | 
	
		
			
				|  |  | -      getList(page.currentPage, page.pageSize,Object.assign(params, this.search))
 | 
	
		
			
				|  |  | +      getList(
 | 
	
		
			
				|  |  | +        page.currentPage,
 | 
	
		
			
				|  |  | +        page.pageSize,
 | 
	
		
			
				|  |  | +        Object.assign(params, this.search)
 | 
	
		
			
				|  |  | +      )
 | 
	
		
			
				|  |  |          .then(res => {
 | 
	
		
			
				|  |  |            // if (res.data.data.records) {
 | 
	
		
			
				|  |  |            //   res.data.data.records.forEach(e => {
 | 
	
	
		
			
				|  | @@ -387,9 +401,6 @@ export default {
 | 
	
		
			
				|  |  |            // }
 | 
	
		
			
				|  |  |            this.dataList = res.data.data.records ? res.data.data.records : [];
 | 
	
		
			
				|  |  |            this.page.total = res.data.data.total;
 | 
	
		
			
				|  |  | -          if (this.page.total) {
 | 
	
		
			
				|  |  | -            this.option.height = window.innerHeight - 260;
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          .finally(() => {
 | 
	
		
			
				|  |  |            this.loading = false;
 |