src/views/mdc/base/modules/DeviceLog/LogInfo.vue
@@ -16,7 +16,7 @@
          </a-col>
          <a-col :md="4" :sm="4">
            <a-form-item label="日期">
              <a-date-picker v-model="queryParams.collectTime" :disabledDate="disabledDate" @change="dataChange"
              <a-date-picker v-model="queryParams.collectTime" :disabledDate="disabledDate" @change="handleDateChange"
                             format='YYYY-MM-DD'/>
            </a-form-item>
          </a-col>
@@ -25,6 +25,8 @@
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload">重置</a-button>
              <a-button type="primary" icon="download" @click="handleExport">导出</a-button>
              <a-button v-if="queryParams.equipmentId" type="primary" icon="download" @click="openBatchExportModal">批量导出
              </a-button>
            </a-space>
          </a-col>
        </a-row>
@@ -155,6 +157,8 @@
    <work-chart-model ref="workChartModel" :collectTime="this.queryParams.collectTime"
                      :equipment="this.equipment"></work-chart-model>
    <work-history-model ref="workHistoryModel"></work-history-model>
    <DeviceLogBatchExportModal ref="batchExportModalRef" :equipmentId="queryParams.equipmentId"/>
  </div>
</template>
@@ -167,9 +171,11 @@
  import WorkChartModel from './WorkChartModel'
  import WorkHistoryModel from './WorkHistoryModel'
  import { downFile, getAction } from '@/api/manage'
  import DeviceLogBatchExportModal from './DeviceLogBatchExportModal'
  export default {
     components: {
    components: {
      DeviceLogBatchExportModal,
      LogList,
      WorkLogList,
      AlarmLogList,
@@ -255,9 +261,10 @@
          this.cardLoading = false
        })
      },
      dataChange(val) {
      handleDateChange(val) {
        this.queryParams.collectTime = val
        this.queryParams.collectTimeStr = this.queryParams.collectTime.format('YYYY-MM-DD')
      },
      searchQuery() {
        // console.log(this.queryParams.collectTime)
@@ -273,8 +280,8 @@
      },
      searchReset() {
        this.queryParams = {
          collectTime : moment()
      }
          collectTime: moment()
        }
        this.equipment = {}
        this.queryChart()
      },
@@ -346,9 +353,13 @@
        })
      },
      handleExport(){
        this.$refs.logList.queryParam=Object.assign({},this.queryParams,this.$refs.logList.queryParam)
      handleExport() {
        this.$refs.logList.queryParam = Object.assign({}, this.queryParams)
        this.$refs.logList.handleExportXls('设备日志')
      },
      openBatchExportModal() {
        this.$refs.batchExportModalRef.visible = true
      }
    },
    created() {