|  | @@ -61,6 +61,7 @@
 | 
	
		
			
				|  |  |              <zz-table
 | 
	
		
			
				|  |  |                  :settings="{ showIndex: true, stripe: true }"
 | 
	
		
			
				|  |  |                  :cols="chargeStatus == 1 ? cols : cols2"
 | 
	
		
			
				|  |  | +                :updateFlag="chargeStatus"
 | 
	
		
			
				|  |  |                  :loading="mixins_onQuery"
 | 
	
		
			
				|  |  |                  :data="mixins_list"
 | 
	
		
			
				|  |  |                  :pageset="mixins_pageset"
 | 
	
	
		
			
				|  | @@ -135,7 +136,7 @@ export default {
 | 
	
		
			
				|  |  |                      width: '150px',
 | 
	
		
			
				|  |  |                      format(val) {
 | 
	
		
			
				|  |  |                          if (!!val) {
 | 
	
		
			
				|  |  | -                            return _this.$moment(Number(val)).format('YYYY-MM-DD hh:mm:ss');
 | 
	
		
			
				|  |  | +                            return _this.$moment(Number(val)).format('YYYY-MM-DD HH:mm:ss');
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  },
 | 
	
	
		
			
				|  | @@ -145,7 +146,7 @@ export default {
 | 
	
		
			
				|  |  |                      width: '150px',
 | 
	
		
			
				|  |  |                      format(val) {
 | 
	
		
			
				|  |  |                          if (!!val) {
 | 
	
		
			
				|  |  | -                            return _this.$moment(Number(val)).format('YYYY-MM-DD hh:mm:ss');
 | 
	
		
			
				|  |  | +                            return _this.$moment(Number(val)).format('YYYY-MM-DD HH:mm:ss');
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  },
 | 
	
	
		
			
				|  | @@ -154,7 +155,7 @@ export default {
 | 
	
		
			
				|  |  |                      prop: 'sendTime',
 | 
	
		
			
				|  |  |                      format(val) {
 | 
	
		
			
				|  |  |                          if (!!val) {
 | 
	
		
			
				|  |  | -                            return _this.$moment(Number(val)).format('YYYY-MM-DD hh:mm:ss');
 | 
	
		
			
				|  |  | +                            return _this.$moment(Number(val)).format('YYYY-MM-DD HH:mm:ss');
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      },
 | 
	
		
			
				|  |  |                      width: '150px'
 | 
	
	
		
			
				|  | @@ -177,17 +178,12 @@ export default {
 | 
	
		
			
				|  |  |                              case 3:
 | 
	
		
			
				|  |  |                                  return `租客`;
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    width: '100px'
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  {
 | 
	
		
			
				|  |  |                      label: '所属社区',
 | 
	
		
			
				|  |  |                      prop: 'communityName'
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  | -                {
 | 
	
		
			
				|  |  | -                    label: '设备名称',
 | 
	
		
			
				|  |  | -                    prop: ''
 | 
	
		
			
				|  |  | -                },
 | 
	
		
			
				|  |  |                  {
 | 
	
		
			
				|  |  |                      label: '设备位置',
 | 
	
		
			
				|  |  |                      prop: 'address'
 | 
	
	
		
			
				|  | @@ -250,11 +246,20 @@ export default {
 | 
	
		
			
				|  |  |              let start = '00:00:00',
 | 
	
		
			
				|  |  |                  end = '23:59:59';
 | 
	
		
			
				|  |  |              if (!!e) {
 | 
	
		
			
				|  |  | -                this.mixins_query.startTime = `${e[0]} ${start}`;
 | 
	
		
			
				|  |  | -                this.mixins_query.endTime = `${e[1]} ${end}`;
 | 
	
		
			
				|  |  | +                if (this.chargeStatus == 1) {
 | 
	
		
			
				|  |  | +                    this.mixins_query.beginDate = `${e[0]} ${start}`;
 | 
	
		
			
				|  |  | +                } else {
 | 
	
		
			
				|  |  | +                    this.mixins_query.startDate = `${e[0]} ${start}`;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                this.mixins_query.endDate = `${e[1]} ${end}`;
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  | -                this.mixins_query.startTime = ``;
 | 
	
		
			
				|  |  | -                this.mixins_query.endTime = ``;
 | 
	
		
			
				|  |  | +                if (this.chargeStatus == 1) {
 | 
	
		
			
				|  |  | +                    this.mixins_query.beginDate = ``;
 | 
	
		
			
				|  |  | +                } else {
 | 
	
		
			
				|  |  | +                    this.mixins_query.startDate = ``;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                this.mixins_query.endDate = ``;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          changeRadio(v) {
 | 
	
	
		
			
				|  | @@ -263,13 +268,22 @@ export default {
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  this.mixins_dataUrl = this.twoUrl;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            if (this.chargeStatus == 1) {
 | 
	
		
			
				|  |  | +                this.mixins_query.beginDate = this.mixins_query.startDate;
 | 
	
		
			
				|  |  | +                delete this.mixins_query.startDate;
 | 
	
		
			
				|  |  | +                delete this.mixins_query.name;
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                this.mixins_query.startDate = this.mixins_query.beginDate;
 | 
	
		
			
				|  |  | +                delete this.mixins_query.beginDate;
 | 
	
		
			
				|  |  | +                delete this.mixins_query.deviceName;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |              this.mixins_search();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      created() {
 | 
	
		
			
				|  |  |          this.pickerTime = [this.$moment().format('YYYY-MM-DD'), this.$moment().format('YYYY-MM-DD')];
 | 
	
		
			
				|  |  | -        this.mixins_query.startTime = `${this.pickerTime[0]} 00:00:00`;
 | 
	
		
			
				|  |  | -        this.mixins_query.endTime = `${this.pickerTime[1]} 23:59:59`;
 | 
	
		
			
				|  |  | +        this.mixins_query.beginDate = `${this.pickerTime[0]} 00:00:00`;
 | 
	
		
			
				|  |  | +        this.mixins_query.endDate = `${this.pickerTime[1]} 23:59:59`;
 | 
	
		
			
				|  |  |          this.mixins_dataUrl = this.oneUrl; // 分页查询接口
 | 
	
		
			
				|  |  |          this.mixins_search();
 | 
	
		
			
				|  |  |      }
 |