<template>
  <div class="inform">
    <el-card class="box-card">
      <!-- 标题区域 -->
      <div slot="header" class="clearfix">
        <div class="inform-title">公告管理</div>
      </div>
      <!-- 主体内容区域 -->
      <div class="inform-body">
        <!-- 筛选条件区域 -->
        <div class="order-top">
          <div style="display: flex">
            <!-- 车牌号筛选 -->
            <div class="plateNum">
              <span>关键字:</span>
              <el-input
                placeholder=" 请输入关键字"
                style="width: 208px; margin-right: 53px"
                clearable
                v-model="value"
                @change="keyword"
              >
                <i slot="prefix" class="el-input__icon el-icon-search"></i>
              </el-input>
            </div>
            <!--时间筛选 -->
            <div class="paydate">
              <span>时间筛选:</span>
              <el-date-picker
                v-model="timeValue"
                align="center"
                type="datetimerange"
                format="yyyy-MM-dd HH:mm:ss"
                value-format="yyyy-MM-dd HH:mm:ss"
                range-separator="至"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
                @change="getStartTime"
              ></el-date-picker>
            </div>
          </div>
          <div style="display: flex" class="addblock">
            <div class="addcar export" @click="addCar">新增公告</div>
            <!-- 详情弹窗区域 -->
            <el-dialog
              :title="addTitle"
              :visible.sync="dialogVisible"
              width="30%"
            >
              <div class="affiche-centent">
                <div class="title">内容:</div>
                <div class="content">
                  <el-input
                    type="textarea"
                    placeholder="请输入公告内容"
                    v-model="content"
                    maxlength="100"
                    show-word-limit
                  ></el-input>
                </div>
              </div>
              <div class="btn">
                <el-button @click="resetForm('ruleForm')" plain>取消</el-button>
                <el-button type="primary" @click="submitForm">确认</el-button>
              </div>
            </el-dialog>
            <div class="export" @click="exportExcel">导出表单</div>
          </div>
        </div>
        <!-- 表格区域 -->
        <div class="inform-table">
          <!-- 表格区域 -->
          <el-table
            v-loading="loading"
            element-loading-text="拼命加载中"
            element-loading-spinner="el-icon-loading"
            element-loading-background="rgba(0, 0, 0, 0.8)"
            :data="tableData"
            @selection-change="handleSelectionChange"
            max-height="550"
            style="width: 100%; height: 550px"
            stripe
            class="Devicetable"
            :cell-style="rowbg"
            :header-cell-style="{
              color: ' rgba(0, 0, 0, 1)',
              background: 'rgba(230, 236, 254, 1)'
            }"
          >
            <el-table-column
              width="120"
              label="序号"
              type="index"
              align="center"
            ></el-table-column>
            <el-table-column
              prop="create_time"
              align="center"
              label="时间"
              width="350"
            ></el-table-column>
            <el-table-column
              prop="content"
              align="center"
              label="内容"
              width="500"
              :show-overflow-tooltip="true"
            ></el-table-column>
            <el-table-column align="center" label="当前显示" width="300">
              <template slot-scope="{ row }">
                <div class="lookIcon">
                  <img
                    src="../../assets/images/eye1.png"
                    alt
                    v-if="row.state == 0"
                    @click="look(row)"
                  />
                  <img src="../../assets/images/eye_active.png" alt v-else />
                </div>
              </template>
            </el-table-column>
            <el-table-column align="center" label="操作" width="200">
              <template slot-scope="{ row }">
                <!-- 详情按钮 -->
                <span
                  @click="amendCar(row)"
                  class="operate"
                  style="margin-right: 5px"
                  >修改</span
                >
                <!-- 删除按钮 -->
                <span @click="handleDelete(row)" class="operate">删除</span>
              </template>
            </el-table-column>
          </el-table>
        </div>
        <!-- 分页器区域 -->
        <div class="block">
          <!-- <el-pagination
            background
            :page-sizes="[100, 200, 300, 400]"
            :page-size="100"
            layout="prev, pager, next"
            :total="1000"
          >
          </el-pagination>-->
          <el-pagination
            @current-change="handleCurrentChange"
            :page-size="9"
            :current-page="curPage"
            layout="total,  prev, pager, next, jumper"
            :total="total"
          ></el-pagination>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
import FileSaver from "file-saver";
import * as XLSX from "xlsx";
import { nextTick } from "vue";

export default {
  name: "role",
  data() {
    return {
      loading: false,
      // 显示的总数据
      tableData: [],

      // 状态数组
      options: [
        {
          value: 0,
          label: "超级管理员"
        },
        {
          value: 1,
          label: "管理员"
        }
      ],
      timeValue: "", // 时间筛选
      value: "", // 车牌号
      state: "超级管理员", // 车辆类型
      curPage: 1, // 当前页
      total: 1,
      dialogVisible: false, // 新增车辆窗口显示
      roleState: "管理员",
      addTitle: "", // 弹框标题
      roleType: [
        {
          value: 0,
          label: "管理员"
        },
        {
          value: 1,
          label: "超级管理员"
        }
      ],
      content: "", // 公告内容
      id: "", // 列表id
      src: "", // 使用当前公告的图片
      type: "", // 当前修改的列表是否为选中状态
      select: {
        id: ""
      }
    };
  },
  mounted() {
    document.getElementsByClassName(
      "el-pagination__jump"
    )[0].childNodes[0].nodeValue = "跳转";

    this.getData(1);
  },
  methods: {
    // 获取表格数据
    async getData(page) {
      let data;
      // 判断关键字
      if (this.value && !this.timeValue) {
        let params = { page: page, rows: 9, content: this.value };
        data = await this.API.affiche.adverquery(params);
      }
      // 判断日期
      else if (!this.value && this.timeValue) {
        let params = {
          page: page,
          rows: 9,
          start_time: this.timeValue[0],
          end_time: this.timeValue[1]
        };
        data = await this.API.affiche.adverquery(params);
      }
      // 判断关键字和日期
      else if (this.value && this.timeValue) {
        let params = {
          page: page,
          rows: 9,
          content: this.value,
          start_time: this.timeValue[0],
          end_time: this.timeValue[1]
        };
        data = await this.API.affiche.adverquery(params);
      } else {
        data = await this.API.affiche.adverquery({ page: page, rows: 9 });
      }
      if (data.total == 0) {
        this.tableData = [];
        this.total = 0;
      } else {
        this.tableData = data.rows;
        this.total = data.total;
      }
      this.tableData.forEach(item => {
        if (item.state == 1) {
          this.select.id = item.id;
        }
      });
      this.$nextTick(() => {
        let active = document.getElementsByClassName("el-table__row");
        // console.log(active[0]);
        if (data.rows[0].state == 1) {
          active[0].style.color = "rgba(52, 92, 254, 1)";
        } else {
          active[0].style.color = "#000";
        }
      });
      // console.log(data);
    },

    // 新增公告
    addCar() {
      this.addTitle = "新增公告";
      this.content = "";
      this.dialogVisible = true;
    },
    async submitForm() {
      if (this.addTitle === "新增公告") {
        let params = {
          content: this.content
        };
        let data = await this.API.affiche.adveradd(params);
        // console.log(data);
        if (data.code == 200) {
          this.$message({
            showClose: true,
            message: data.message,
            type: "success"
          });
        } else {
          this.$message({
            showClose: true,
            message: data.message,
            type: "error"
          });
        }
        this.getData(1);
      } else if (this.addTitle === "修改公告") {
        let params = {
          id: this.id,
          content: this.content
        };
        let data = await this.API.affiche.adverupdate(params);
        // console.log(data);
        if (data.code == 200) {
          this.$message({
            showClose: true,
            message: data.message,
            type: "success"
          });
        } else {
          this.$message({
            showClose: true,
            message: data.message,
            type: "error"
          });
        }
        if (this.id == this.select.id) {
          let row = { id: this.id };
          this.look(row);
        } else {
          this.getData(this.curPage);
        }
      }
      this.dialogVisible = false;
    },
    resetForm(formName) {
      this.dialogVisible = false;
      this.content = "";
    },
    // 关键字搜索
    keyword() {
      // console.log("关键字搜索触发");
      this.getData(1);
      this.curPage = 1;
    },
    // 时间筛选车辆
    getStartTime() {
      // console.log("时间筛选触发");
      this.getData(1);
      this.curPage = 1;
    },
    // 修改公告
    amendCar(row) {
      this.addTitle = "修改公告";
      this.dialogVisible = true;
      this.content = row.content;
      this.id = row.id;
    },
    notarize(formName) {
      this.$refs[formName].validate(valid => {
        if (valid) {
          alert("submit!");
        } else {
          // console.log("error submit!!");
          return false;
        }
      });
    },
    cancel(formName) {
      this.dialogVisible = false;
      this.$refs[formName].resetFields();
    },
    // 使用当前公告
    async look(row) {
      // console.log(row);
      // this.tableData.forEach((item, index) => {
      //   if (item.state == 1) {
      //     let active = document.getElementsByClassName("el-table__row");
      //     console.log(active[0]);
      //     active[0].style.color = "rgba(52, 92, 254, 1)";
      //   }
      // });
      this.loading = true;
      let data = await this.API.affiche.adverupdateState({ id: row.id });
      if (data.code == 200) {
        this.$message({
          showClose: true,
          message: data.message,
          type: "success"
        });
      } else {
        this.$message({
          showClose: true,
          message: data.message,
          type: "error"
        });
      }
      this.getData(1);
      this.curPage = 1;
      this.loading = false;
    },
    // 导出订单按钮回调
    async exportExcel() {
      let params;
      // 关键字搜索
      if (this.value && !this.timeValue) {
        params = {
          content: this.value
        };
      }
      // 判断筛选时间
      else if (!this.value && this.timeValue) {
        params = {
          start_time: this.timeValue[0],
          end_time: this.timeValue[1]
        };
      }
      // 当关键字搜索和筛选时间同时存在
      else if (this.value && this.timeValue) {
        params = {
          content: this.value,
          start_time: this.timeValue[0],
          end_time: this.timeValue[1]
        };
      } else {
        params = {};
      }

      let data = await this.API.affiche.advertoExcel(params);
      // console.log(data);
      if (data.code == 200) {
        let url = data.downurl.slice(11);
        // console.log(url);
        window.open("https://chtech.ncjti.edu.cn/carstop/carMonitor" + url);
        this.$message({
          showClose: true,
          message: data.message,
          type: "success"
        });
      } else {
        this.$message({
          showClose: true,
          message: data.message,
          type: "error"
        });
      }
    },

    //删除按钮回调
    async handleDelete(row) {
      this.$confirm("此操作将永久删除该条公告, 是否继续?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      })
        .then(async () => {
          if (this.tableData.length == 1) {
            this.curPage = this.curPage - 1;
          }
          let data = await this.API.affiche.adverdel({ id: row.id });
          this.getData(this.curPage);
          if (data.code == 200) {
            this.$message({
              showClose: true,
              message: data.message,
              type: "success"
            });
          } else {
            this.$message({
              showClose: true,
              message: data.message,
              type: "error"
            });
          }
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消删除"
          });
        });
    },

    // 翻页逻辑回调
    handleCurrentChange(val) {
      // console.log(val);
      this.getData(val);
      this.curPage = val;
    },

    // 多选框按钮操作
    handleSelectionChange(list) {
      // console.log(list);
    },

    // 表格样式设置
    rowbg(row) {
      if (row.rowIndex % 2 != 0) {
        return { background: "rgba(245, 248, 252, 1)", "border-radius": "5px" };
      }
    }
  }
};
</script>

<style lang="scss" scoped>
.inform {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.inform /deep/ .el-card {
  width: 97.5%;
  height: 95%;

  box-shadow: 0px 3px 21px 0px rgba(60, 108, 254, 0.16) !important;

  border-radius: 8px;
  .el-card__header {
    border-bottom: none;
  }
  .clearfix {
    height: 66px;
    box-sizing: border-box;
    display: flex;
    margin: 0 36px;
    border-block: 1px solid rgba(230, 230, 230, 1);
    border-top: none;
    justify-content: space-between;
    align-items: center;

    .inform-title {
      width: 96px;
      height: 36px;
      color: rgba(0, 0, 0, 1);
      font-size: 24px;
      font-weight: 600;
    }

    .inform-header {
      display: flex;
      margin-right: 29px;

      .el-button {
        margin-left: 9px;
        background-color: rgba(41, 109, 227, 1);
      }
    }
  }

  .carNum {
    display: flex;
    margin: 0 36px;
    padding: 31px 0 22px 0;
    border-bottom: 1px dashed rgba(217, 217, 217, 1);
    flex-wrap: wrap;

    .carType {
      width: 288px;
      height: 84px;
      background: #f4f6fa;
      border-radius: 10px;
      margin: 0 25px 15px 0;
      display: flex;
      align-items: center;
      justify-content: center;

      &:nth-of-type(5n) {
        margin: 0 0 15px 0;
      }

      .type {
        height: 24px;
        border-right: 2px solid rgba(186, 186, 186, 1);
        padding: 0 22px 0 0;
        font-size: 18px;
        font-family: Microsoft YaHei-3970(82674968);
        font-weight: 400;
        color: #292b34;
      }

      .num {
        width: 60px;
        height: 29px;
        font-size: 34px;
        font-family: Microsoft YaHei-3970(82674968);
        font-weight: 600;
        color: #292b34;
        margin: 0 5px 0 29px;
        transform: translateY(-7px);
      }
    }
  }

  .inform-body {
    margin: 0 36px;

    .order-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 0 15px 0;
      font-size: 16px;
      font-weight: 400;
      color: #000;

      .el-button {
        background-color: rgba(41, 109, 227, 1);
        color: #fff;
        margin-left: 9px;
      }

      .paydate {
        margin: 0 51px 0 0;

        .el-date-editor {
          margin-left: 7px;
          width: 373px;

          .el-range__icon {
            display: block;
          }
        }
      }

      .state {
        margin-left: 51px;

        .el-input {
          width: 150px;
        }
      }

      .export {
        width: 94px;
        height: 42px;
        color: #fff;
        text-align: center;
        line-height: 42px;
        background: rgba(65, 106, 165, 1);
        cursor: pointer;
        border-radius: 5px;
      }

      .addblock {
        .addcar {
          background: rgba(43, 76, 254, 1);
          margin-right: 15px;
        }

        .el-dialog__wrapper {
          overflow: hidden;

          .el-dialog {
            width: 600px !important;
            height: 497px;
            background: #ffffff;
            box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.29);
            border-radius: 10px;
            margin-top: 230px !important;

            .el-dialog__header {
              height: 60px;
              padding: 0;
              border-top-left-radius: 10px;
              border-top-right-radius: 10px;
              border-bottom: 1px solid rgba(230, 230, 230, 1);
              background-color: rgba(230, 235, 254, 1);

              span {
                float: left;
                font-size: 20px;
                font-weight: 500;
                color: #000;
                line-height: 60px;
                margin-left: 30px;
              }

              .el-dialog__close {
                width: 35px;
                height: 35px;

                &::before {
                  font-size: 24px;
                  color: #000;
                }
              }
            }

            .el-dialog__body {
              padding: 0;
              display: flex;
              flex-direction: column;
              align-items: center;
              margin-top: 40px;

              .affiche-centent {
                .title {
                  font-size: 18px;
                  font-family: Microsoft YaHei-3970(82674968);
                  font-weight: 400;
                  color: #53575a;
                  margin-bottom: 8px;
                }

                .content {
                  .el-textarea {
                    width: 437px;
                    height: 188px;
                    border-radius: 6px;

                    .el-textarea__inner {
                      width: 437px;
                      height: 188px;
                      font-size: 17px;
                    }

                    .el-input__count {
                      font-size: 17px;
                    }
                  }
                }
              }

              // 输入框

              .btn {
                margin-top: 36px;

                .el-button--default {
                  background-color: #fff;
                  border: 1px solid rgba(43, 76, 254, 1);
                  color: rgba(43, 76, 254, 1);
                  margin: 15px 36px 0 191px;
                }

                .el-button--primary {
                  background-color: rgba(43, 76, 254, 1);
                }

                .el-input {
                  width: 222px;
                }

                .el-input__inner {
                  width: 222px;
                  height: 47px;
                  border-radius: 6px;
                }
              }

              .userinfo {
                font-size: 20px;
                font-weight: 500;
                color: rgba(0, 0, 0, 1);
                text-align: left;
                margin-top: 15px;
              }

              .info {
                display: flex;

                .user {
                  .name {
                    text-align: left;
                  }

                  .el-input {
                    width: 283px;
                    height: 38px;
                    opacity: 1;
                    margin-right: 81px;

                    .el-input__inner {
                      color: #000;
                    }
                  }
                }
              }

              .rate {
                font-size: 20px;
                font-weight: 500;
                color: rgba(0, 0, 0, 1);
                text-align: left;
                margin: 15px 0;
              }

              .water {
                text-align: left;
                font-size: 16px;
                font-weight: 400;
                color: rgba(0, 0, 0, 1);
              }

              .el-table {
                margin: 10px 0;

                tr {
                  height: 48px;
                }

                .el-table__body-wrapper {
                  overflow: visible;
                }
              }
            }
          }
        }
      }
    }

    .inform-table {
      .execlTable,
      .selectTable {
        display: none;
      }

      .el-table {
        font-weight: 400;
        font-size: 16px;
        color: rgba(0, 0, 0, 1);
        margin: 0 auto;

        .el-table__header-wrapper {
          border-radius: 5px;
          .el-table__header {
            width: 100% !important;
          }

          .el-checkbox.is-checked {
            .el-checkbox__inner {
              background-color: rgba(41, 109, 227, 1);
            }
          }

          .el-checkbox__input.is-checked,
          .el-checkbox__input.is-indeterminate {
            .el-checkbox__inner {
              background-color: rgba(41, 109, 227, 1);
            }
          }
        }

        .el-table__body-wrapper {
          .el-table__body {
            width: 100% !important;
            .el-table__row {
              .el-table_1_column_7 {
                .cell {
                  .operate {
                    .el-dialog {
                      width: 600px !important;
                      height: 497px;
                      background: #ffffff;
                      box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.29);
                      border-radius: 10px;

                      .el-dialog__header {
                        height: 60px;
                        padding: 0;
                        border-top-left-radius: 10px;
                        border-top-right-radius: 10px;
                        border-bottom: 1px solid rgba(230, 230, 230, 1);
                        background-color: rgba(230, 235, 254, 1);

                        span {
                          float: left;
                          font-size: 20px;
                          font-weight: 500;
                          color: #000;
                          line-height: 60px;
                          margin-left: 30px;
                        }

                        .el-dialog__close {
                          width: 35px;
                          height: 35px;

                          &::before {
                            font-size: 24px;
                            color: #000;
                          }
                        }
                      }

                      .el-dialog__body {
                        padding: 0;

                        .el-form {
                          margin: 39px 0 0 81px;

                          .el-form-item {
                            // 文字
                            .el-form-item__label {
                              height: 47px;
                              font-size: 18px;
                              line-height: 47px;
                              font-family: Microsoft YaHei-3970(82674968);
                              font-weight: 400;
                              color: #53575a;
                            }

                            // 输入框
                            .el-form-item__content {
                              .el-button--default {
                                background-color: #fff;
                                border: 1px solid rgba(43, 76, 254, 1);
                                color: rgba(43, 76, 254, 1);
                                margin: 15px 36px 0 34px;
                              }

                              .el-button--primary {
                                background-color: rgba(43, 76, 254, 1);
                              }

                              .el-input {
                                width: 222px;
                              }

                              .el-input__inner {
                                width: 222px;
                                height: 47px;
                                border-radius: 6px;
                              }
                            }
                          }
                        }

                        .userinfo {
                          font-size: 20px;
                          font-weight: 500;
                          color: rgba(0, 0, 0, 1);
                          text-align: left;
                          margin-top: 15px;
                        }

                        .info {
                          display: flex;

                          .user {
                            .name {
                              text-align: left;
                            }

                            .el-input {
                              width: 283px;
                              height: 38px;
                              opacity: 1;
                              margin-right: 81px;

                              .el-input__inner {
                                color: #000;
                              }
                            }
                          }
                        }

                        .rate {
                          font-size: 20px;
                          font-weight: 500;
                          color: rgba(0, 0, 0, 1);
                          text-align: left;
                          margin: 15px 0;
                        }

                        .water {
                          text-align: left;
                          font-size: 16px;
                          font-weight: 400;
                          color: rgba(0, 0, 0, 1);
                        }

                        .el-table {
                          margin: 10px 0;

                          tr {
                            height: 48px;
                          }

                          .el-table__body-wrapper {
                            overflow: visible;
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }

        tr {
          height: 55px;

          td {
            padding: 0;

            .cell {
              .lookIcon {
                display: flex;
                align-items: center;
                justify-content: center;

                img {
                  display: inline-block;
                  cursor: pointer;
                  width: 39px;
                  height: 39px;
                }
              }

              .el-checkbox.is-checked {
                .el-checkbox__inner {
                  background-color: rgba(41, 109, 227, 1);
                }
              }

              .is-indeterminate {
                .el-checkbox__inner {
                  background-color: rgba(41, 109, 227, 1);
                }
              }

              .operate {
                display: inline-block;
                color: rgba(84, 136, 254, 1);
                cursor: pointer;
                font-size: 16px;
                font-weight: 400;
                width: 60px;
                height: 30px;
                line-height: 32px;
                border: 1px solid rgba(84, 136, 254, 1);
                border-radius: 15px;
              }

              .el-dialog__wrapper {
                overflow: hidden;

                .el-dialog {
                  width: 600px !important;
                  height: 497px;
                  background: #ffffff;
                  box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.29);
                  border-radius: 10px;

                  .el-dialog__header {
                    height: 83px;
                    border-bottom: 1px solid rgba(230, 230, 230, 1);

                    span {
                      float: left;
                      font-size: 20px;
                      font-weight: 500;
                      color: #000;
                    }

                    .el-dialog__close {
                      width: 35px;
                      height: 35px;

                      &::before {
                        font-size: 24px;
                        color: #000;
                      }
                    }
                  }

                  .el-dialog__body {
                    padding: 0 38px;

                    .userinfo {
                      font-size: 20px;
                      font-weight: 500;
                      color: rgba(0, 0, 0, 1);
                      text-align: left;
                      margin-top: 15px;
                    }

                    .info {
                      display: flex;

                      .user {
                        .name {
                          text-align: left;
                        }

                        .el-input {
                          width: 283px;
                          height: 38px;
                          opacity: 1;
                          margin-right: 81px;

                          .el-input__inner {
                            color: #000;
                          }
                        }
                      }
                    }

                    .rate {
                      font-size: 20px;
                      font-weight: 500;
                      color: rgba(0, 0, 0, 1);
                      text-align: left;
                      margin: 15px 0;
                    }

                    .water {
                      text-align: left;
                      font-size: 16px;
                      font-weight: 400;
                      color: rgba(0, 0, 0, 1);
                    }

                    .el-table {
                      margin: 10px 0;

                      tr {
                        height: 48px;
                      }

                      .el-table__body-wrapper {
                        overflow: visible;
                      }
                    }
                  }
                }
              }

              .el-dialog__title {
                color: rgba(41, 109, 227, 1);
                cursor: pointer;
                padding: 10px 18px 0 18px;
              }
            }
          }

          .el-checkbox__inner {
            width: 18px;
            height: 18px;

            &::after {
              transform: rotate(45deg) scaleY(1.5);
              top: 3px;
              left: 5px;
            }
          }
        }

        th {
          font-weight: 400;
        }
      }
    }

    .block {
      height: 36px;
      margin: 40px 0 0 0;
      float: right;

      .el-pagination {
        padding: 0;

        .el-pagination__total {
          font-size: 18px;
          line-height: 36px;
        }

        button {
          width: 36px;
          background: #fff;
          color: rgba(0, 0, 0, 1);
          height: 36px;
          font-size: 14px;
          border: 1px solid rgba(112, 112, 112, 1);
          border-radius: 8px;
        }

        ul {
          .active {
            background: #fff;
            color: rgba(0, 97, 255, 1);
            border: 1px solid rgba(0, 97, 255, 1);
            box-sizing: border-box;
          }

          .el-icon {
            border: none;
          }

          li {
            background: #fff;
            color: rgba(0, 0, 0, 1);
            width: 36px;
            height: 36px;
            font-size: 14px;
            border: 1px solid rgba(112, 112, 112, 1);
            border-radius: 8px;
            line-height: 36px;
            margin-left: 8px;
          }
        }

        .btn-next {
          margin-left: 8px;
        }

        .el-pagination__jump {
          color: rgba(0, 0, 0, 1);
          font-size: 16px;
          margin-left: 10px;
          font-weight: 400;
          height: 36px;

          .el-input {
            width: 65px;
            height: 36px;
            margin: 0 10px;

            input {
              width: 65px;
              height: 36px;
              border: 1px solid rgba(0, 0, 0, 1);
              border-radius: 8px;
            }
          }
        }
      }
    }
  }
}

.box-card {
  /deep/ .el-card__header {
    padding: 0;
  }

  /deep/ .el-card__body {
    padding: 0;
  }
}
</style>
<style lang="scss">
.el-message-box__wrapper {
  .el-button--primary {
    background-color: #296de3;
  }
}
</style>
