<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: 190px"
                clearable
                v-model="value"
                @change="getData(1)"
              >
                <i slot="prefix" class="el-input__icon el-icon-search"></i>
              </el-input>
            </div>

            <!-- 用户类型筛选 -->
            <div class="state">
              <span>角色名称:</span>
              <el-select
                v-model="state"
                placeholder="请选择状态"
                clearable
                @change="getData(1)"
              >
                <el-option
                  v-for="item in roleType"
                  :key="item.value"
                  :value="item.value"
                  :label="item.label"
                ></el-option>
              </el-select>
            </div>
          </div>
          <div style="display: flex" class="addblock">
            <div class="addcar export" @click="addCar">新增账号</div>
            <!-- 详情弹窗区域 -->
            <el-dialog
              :title="addTitle"
              :visible.sync="dialogVisible"
              width="30%"
              :before-close="closeDialog"
              center
            >
              <div>
                <el-form
                  :model="ruleForm"
                  status-icon
                  :rules="rules"
                  ref="ruleForm"
                  label-width="100px"
                  class="demo-ruleForm"
                >
                  <el-form-item label="姓名" prop="admin_name">
                    <el-input
                      v-model="ruleForm.admin_name"
                      autocomplete="off"
                    ></el-input>
                  </el-form-item>
                  <el-form-item label="账号" prop="admin_account">
                    <el-input
                      v-model="ruleForm.admin_account"
                      v-if="addTitle === '新增账号'"
                      autocomplete="off"
                    ></el-input>
                    <el-input
                      :value="ruleForm.admin_account"
                      v-else
                      autocomplete="off"
                      disabled
                    ></el-input>
                  </el-form-item>
                  <el-form-item label="密码" prop="admin_password">
                    <el-input v-model="ruleForm.admin_password"></el-input>
                  </el-form-item>
                  <el-form-item label="角色" prop="level">
                    <el-select
                      v-model="ruleForm.level"
                      placeholder="请选择状态"
                      @change="getData(1)"
                    >
                      <el-option
                        v-for="item in roleType"
                        :key="item.value"
                        :value="item.value"
                        :label="item.label"
                      ></el-option>
                    </el-select>
                  </el-form-item>
                  <el-form-item>
                    <el-button @click="resetForm('ruleForm')" plain
                      >取消</el-button
                    >
                    <el-button type="primary" @click="submitForm('ruleForm')"
                      >确认</el-button
                    >
                  </el-form-item>
                </el-form>
              </div>
            </el-dialog>
            <div class="export" @click="exportExcel">导出订单</div>
          </div>
        </div>
        <!-- 表格区域 -->
        <div class="inform-table">
          <!-- 表格区域 -->
          <el-table
            :data="tableData"
            @selection-change="handleSelectionChange"
            max-height="550"
            style="width: 1550px; 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="admin_name"
              align="center"
              label="姓名"
            ></el-table-column>
            <el-table-column
              prop="admin_account"
              align="center"
              label="用户名"
            ></el-table-column>
            <el-table-column
              prop="levelName"
              align="center"
              label="角色"
            ></el-table-column>
            <el-table-column
              prop="create_time"
              align="center"
              label="创建时间"
              width="200"
            ></el-table-column>
            <el-table-column align="center" label="操作">
              <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="1"
            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";

export default {
  name: "role",
  data() {
    return {
      // 显示的总数据
      tableData: [],
      timeValue: "", // 时间筛选
      value: "", // 搜索用户名
      state: "", // 角色名称类型
      curPage: 1,
      total: 1,
      dialogVisible: false, // 新增车辆窗口显示
      roleState: "管理员",
      addTitle: "",
      roleType: [
        {
          value: 1,
          label: "管理员"
        },
        {
          value: 2,
          label: "超级管理员"
        }
      ],
      ruleForm: {
        admin_name: "",
        admin_account: "",
        level: "",
        admin_password: "",
        pwd_old: ""
      },
      rules: {
        admin_name: [
          { required: true, message: "姓名不能为空", trigger: "blur" }
        ],
        admin_account: [
          { required: true, message: "车牌号不能为空", trigger: "blur" }
        ],
        level: [{ required: true, trigger: "blur", message: "角色不能为空" }],
        admin_password: [
          { required: true, message: "密码不能为空", trigger: "blur" }
        ]
      }
    };
  },
  mounted() {
    document.getElementsByClassName(
      "el-pagination__jump"
    )[0].childNodes[0].nodeValue = "跳转";
    this.getData(1);
  },
  methods: {
    // 获取表格数据
    async getData(page) {
      let data;
      // 判断输入用户名搜索
      if (this.value && !this.state) {
        // console.log(this.state);
        data = await this.API.role.adminquery({
          page: page,
          rows: 9,
          admin_name: this.value
        });
      }
      // 判断搜索角色类型
      else if (!this.value && this.state) {
        data = await this.API.role.adminquery({
          page: page,
          rows: 9,
          level: this.state
        });
      }
      // 输入用户名搜索和搜索角色类型同时判断
      else if (this.value && this.state) {
        data = await this.API.role.adminquery({
          page: page,
          rows: 9,
          admin_name: this.value,
          level: this.state
        });
      } else {
        data = await this.API.role.adminquery({ page: page, rows: 9 });
      }
      if (data.total == 0) {
        this.tableData = [];
        this.total = data.total;
      } else {
        data.rows.forEach(item => {
          if (item.level == 1) {
            item.levelName = "管理员";
          } else {
            item.levelName = "超级管理员";
          }
        });
        this.tableData = data.rows;
        this.total = data.total;
      }
      // console.log(data);
    },

    // 新增车辆
    addCar() {
      this.addTitle = "新增账号";
      this.dialogVisible = true;
      this.ruleForm = {
        admin_name: "",
        admin_account: "",
        level: "",
        create_time: ""
      };
      this.$nextTick(() => {
        this.$refs[ruleForm].resetFields();
      });
    },
    submitForm(formName) {
      this.$refs[formName].validate(async valid => {
        if (valid) {
          if (this.addTitle === "新增账号") {
            let params = {
              admin_name: this.ruleForm.admin_name,
              admin_password: this.ruleForm.admin_password,
              level: this.ruleForm.level,
              admin_account: this.ruleForm.admin_account
            };
            let data = await this.API.role.adminadd(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 = {
              admin_id: this.ruleForm.admin_id,
              admin_name: this.ruleForm.admin_name,
              admin_password: this.ruleForm.admin_password,
              level: this.ruleForm.level,
              admin_account: this.ruleForm.admin_account,
              pwd_old: this.ruleForm.pwd_old
            };
            // console.log(params);
            let data = await this.API.role.adminupdate(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(this.curPage);
          }
        } else {
          // console.log("error submit!!");
          return false;
        }
        this.dialogVisible = false;
      });
    },
    resetForm(formName) {
      this.dialogVisible = false;
      this.$refs[formName].resetFields();
    },
    // 修改车辆
    async amendCar(row) {
      this.addTitle = "修改账号";
      this.dialogVisible = true;
      let dataValue = await this.API.role.adminqueryByNum({
        admin_account: row.admin_account
      });
      // this.$refs[ruleForm].resetFields();

      // console.log(dataValue);
      this.ruleForm = {
        admin_id: row.admin_id,
        admin_name: row.admin_name,
        admin_password: dataValue.data.admin_password,
        level: row.level,
        admin_account: row.admin_account,
        pwd_old: dataValue.data.admin_password
      };
    },
    cancel(formName) {
      this.dialogVisible = false;
      this.$refs[formName].resetFields();
    },
    // 导出账户按钮回调
    async exportExcel() {
      let params = {
        admin_name: this.ruleForm.admin_name,
        level: this.ruleForm.level
      };
      // 用户名或姓名导出
      if (!this.state && this.value) {
        params = {
          admin_name: this.value
        };
      }
      // 用户角色类型导出
      else if (this.state && !this.value) {
        params = {
          level: this.state
        };
      } // 用户角色类型和用户名或姓名同时导出
      else if (this.state && this.value) {
        params = {
          admin_name: this.value,
          level: this.state
        };
      } else {
        params = {};
      }
      let data = await this.API.role.admintoExcel(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"
        });
      }
    },
    // 重置表单
    closeDialog(done) {
      this.resetForm("ruleForm");
      done();
    },
    // 重置弹窗表单数据
    resetForm(formName) {
      console.log(formName);
      this.dialogVisible = false;
      this.$refs[formName].resetFields();
    },
    //删除按钮回调
    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.role.admindel({ admin_id: row.admin_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) {
      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 {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.inform /deep/ .el-card {
  height: 95%;
  width: 97.5%;
  box-shadow: 0px 0px 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: 236px;
          .el-range__icon {
            display: none;
          }
        }
      }
      .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;
              .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;
                }
              }
            }
          }
        }
      }
    }
    .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-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 {
            .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 {
            .cell {
              .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>
