<template>
  <el-card class="content-z">
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-form-item>
          <a-input
            v-model="queryParam.operName"
            style="width: 150px"
            placeholder="操作人员"
          />
        </a-form-item>
        <a-form-item>
          <a-button type="primary" @click="searchQuery">查询</a-button>
          <a-button style="margin-left: 8px" @click="searchReset">重置</a-button>
        </a-form-item>
      </a-form>
    </div>
    <!-- 操作按钮区域 -->
    <div class="table-operator" style="margin: 15px 0">
      <a-dropdown v-if="selectedRowKeys.length > 0">
        <a-menu slot="overlay">
          <a-menu-item key="1" @click="batchDel"><a-icon type="delete" />删除</a-menu-item>
        </a-menu>
        <a-button style="margin-left: 8px">
          批量操作 <a-icon type="down" />
        </a-button>
      </a-dropdown>
    </div>
    <!-- table区域-begin -->
    <div>
      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
        <i class="anticon anticon-info-circle ant-alert-icon" /> 已选择&nbsp;<a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项&nbsp;&nbsp;
        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
      </div>

      <a-table
        ref="table"
        size="middle"
        bordered
        row-key="operId"
        :columns="columns"
        :data-source="dataSource"
        :pagination="ipagination"
        :loading="loading"
        :row-selection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        @change="handleTableChange"
      />
    </div>
    <!-- table区域-end -->
  </el-card>
</template>
<script>
import { listMixin } from '@/mixin/listMixin'
import columns from './indexColumns'

export default {
  components: {
  },
  mixins: [listMixin],
  data() {
    return {
      // 查询条件
      queryParam: {},
      // 表头
      columns: columns(this),
      url: {
        list: '/monitor/operlog/list',
        delete: '/business/catenary/bus/zzdzxx/',
        exportXlsUrl: '/exportXlsUrl',
        importExcelUrl: `${process.env.VUE_APP_BASE_API}/importExcelUrl`
      }
    }
  },
  created() {
  },
  methods: {
  }
}
</script>
<style scoped>
  @import '~@/assets/less/common.less'
</style>
