<template>
  <div class="bg-F5">
    <div class="bannerDiv">
      <img src="@assets/shrz-banner.png" alt="" />
      <router-link class="applyBtn" to="/shopEnter/add"
        >商家入驻申请</router-link
      >
    </div>
    <div class="container">
      <div class="partTitle"><span class="orangeLine"></span>企业认证公示</div>
      <div class="cxtj">
        <span>企业名称：</span>
        <el-input
          v-model="name"
          clearable
          size="small"
          placeholder="请输入企业名称"
          style="width:38rem;"
        ></el-input>
        <span class="ml2rem">审核状态：</span>
        <el-select
          v-model="shStatus"
          clearable
          size="small"
          placeholder="请选择"
          style="width:14rem;"
        >
          <el-option
            v-for="item in statusArr"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          ></el-option>
        </el-select>
        <el-button class="searchBtn" size="small">查询</el-button>
      </div>
      <el-table class="qyrzgs" stripe :data="tableData">
        <el-table-column type="index" label="序号" width="50"></el-table-column>
        <el-table-column prop="name" label="市" width="180"></el-table-column>
        <el-table-column prop="address" label="区(县)"></el-table-column>
        <el-table-column prop="address" label="企业名称"></el-table-column>
        <el-table-column prop="address" label="申请日期"></el-table-column>
        <el-table-column prop="address" label="审核状态"></el-table-column>
        <el-table-column prop="address" label="审核日期"></el-table-column>
        <el-table-column prop="address" label="驳回理由"></el-table-column>
        <el-table-column
          prop="date"
          label="审核日期"
          width="180"
        ></el-table-column>
      </el-table>
      <el-pagination
        class="pageDiv"
        background
        @current-change="handleCurrentChange"
        :page-size="pageSize"
        :current-page="currentPage"
        layout="prev, pager, next,total, jumper"
        :total="total"
      ></el-pagination>
    </div>
  </div>
</template>
<script>
import { Component, Vue } from "vue-property-decorator";
export default {
  name: "app",
  components: {},
  data() {
    return {
      name: "",
      shStatus: "",
      statusArr: [
        {
          value: "选项1",
          label: "黄金糕"
        },
        {
          value: "选项2",
          label: "双皮奶"
        },
        {
          value: "选项3",
          label: "蚵仔煎"
        },
        {
          value: "选项4",
          label: "龙须面"
        },
        {
          value: "选项5",
          label: "北京烤鸭"
        }
      ],
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄"
        }
      ],
      pageSize: 10,
      currentPage: 1,
      total: 24
    };
  },
  methods: {
    handleCurrentChange(val) {
      this.currentPage = val;
      this.requestData();
    }
  }
};
</script>
<style scoped lang="scss">
.bannerDiv {
  width: 100%;
  height: 24rem;
  position: relative;
  img {
    width: 100%;
    height: 100%;
  }
  .applyBtn {
    display: inline-block;
    height: 3rem;
    line-height: 3rem;
    font-size: 1.8rem;
    color: #fd5522;
    padding: 0 2rem;
    background: #fff;
    border-radius: 1.5rem;
    position: absolute;
    bottom: 23%;
    left: 27%;
  }
}
.partTitle {
  padding: 3rem 0 2rem 0;
  font-size: 1.8rem;
  color: #333;
  .orangeLine {
    display: inline-block;
    height: 1.8rem;
    width: 0.3rem;
    background: #fd5522;
    vertical-align: middle;
    border-radius: 0.15rem;
    margin-right: 1rem;
  }
}
.cxtj {
  span {
    display: inline-block;
    height: 3.6rem;
    line-height: 3.6rem;
    font-size: 1.4rem;
    color: #333;
    margin-right: 1rem;
  }
  .searchBtn {
    font-size: 1.4rem;
    margin-left: 1rem;
    background: #fd5522;
    color: #fff;
    border-color: #fd5522;
  }
}
.qyrzgs {
  width: 100%;
  margin-top: 2rem;
}
.pageDiv {
  text-align: right;
  margin-top: 0.5rem;
  padding: 3rem 0;
}
.ml2rem {
  margin-left: 2rem;
}
</style>
<style lang="scss">
.qyrzgs th {
  background: #fd5522;
  color: #fff;
  padding: 0.6rem 0;
  text-align: center;
}
.qyrzgs .cell {
  text-align: center;
}
.qyrzgs.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: #fff6f4;
}
.qyrzgs.el-table--enable-row-hover .el-table__body tr:hover > td {
  background: #fff6f4;
}
.pageDiv.el-pagination.is-background .el-pager li:not(.disabled).active {
  background: #fd5522;
}
.pageDiv.el-pagination.is-background .el-pager li:not(.disabled):hover {
  color: #fd5522;
}
</style>
