<template>
  <section class="app-container">
    <el-row>
      <el-form :inline="true" size="small">
        <el-form-item style="width: 130px">
          <el-select v-model="value" clearable placeholder="告警等级">
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item style="width: 130px">
          <el-select v-model="value" clearable placeholder="设备是否交维">
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item style="width: 130px">
          <el-select v-model="value" clearable placeholder="业务范围">
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item style="width: 130px">
          <el-select v-model="value" clearable placeholder="设备类型">
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item style="width: 130px">
          <el-select v-model="value" clearable placeholder="厂家">
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item style="width: 130px">
          <el-select v-model="value" clearable placeholder="所属客户">
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item style="width: 130px">
          <el-input v-model="input" placeholder="请输入告警名称" />
        </el-form-item>
        <el-form-item style="width: 130px">
          <el-input v-model="input" placeholder="请输入站址COD" />
        </el-form-item>
        <el-form-item style="width: 130px">
          <el-input v-model="input" placeholder="请输入设备编号" />
        </el-form-item>
        <el-form-item style="width: 130px">
          <el-input v-model="input" placeholder="请输入信号量ID" />
        </el-form-item>
      </el-form>
    </el-row>
    <el-row>
      <el-form :inline="true" size="small">
        <el-form-item style="width: 130px">
          <el-input v-model="input" placeholder="请输入告警名称" />
        </el-form-item>
        <el-form-item>
          <div class="block">
            <el-date-picker v-model="dateValue" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
            </el-date-picker>
          </div>
        </el-form-item>
      </el-form>
    </el-row>
    <el-row>
      <el-button type="primary" size="small" icon="el-icon-refresh-right">刷新</el-button>
      <el-button type="primary" size="small" icon="el-icon-search" @click="handleQuery">查询</el-button>
      <el-button type="primary" size="small" icon="el-icon-refresh-right" @click="resetQuery">重置</el-button>
    </el-row>
    <el-table :data="tableData" style="width: 100%" @selection-change="handleSelectionChange">
      <el-table-column align="center" type="selection" width="55">
      </el-table-column>
      <el-table-column align="center" prop="province" label="省">
      </el-table-column>
      <el-table-column align="center" prop="city" label="市">
      </el-table-column>
      <el-table-column align="center" prop="area" label="区">
      </el-table-column>
      <el-table-column align="center" label="业务类型">
      </el-table-column>
      <el-table-column align="center" prop="name" label="告警名称">
      </el-table-column>
      <el-table-column align="center" prop="level" label="告警等级">
      </el-table-column>
      <el-table-column align="center" label="信号量ID">
      </el-table-column>
      <el-table-column align="center" label="故障号单编">
      </el-table-column>
      <el-table-column align="center" label="告警发生时间">
      </el-table-column>
      <el-table-column align="center" label="操作" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改
          </el-button>
          <el-button class="text-danger" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
  </section>
</template>

<script>
export default {
  name: 'monitorList',
  data () {
    return {
      options: '',
      value: '',
      input:'',
      dateValue: '',
      tableData: [
        {
          province:'广东省',
          city:'中山市',
          area:'石岐区',
          name:111,
          level:1
        }
      ],
      total: 1,
      queryParams: {
        pageNum: 1,
        pageSize: 10,
      },
    }
  },
  methods: {
    handleQuery (){ },
    resetQuery () { },
    handleSelectionChange () { },
    getList (){ },
    handleUpdate () { },
    handleDelete () { },
  }
}
</script>

<style>
</style>