<template>
  <div class="content-box">
    <div class="left">
      <!-- <el-icon :size="23" class="camera"><VideoCameraFilled /></el-icon> -->
      <span class="cameratxt">用户角色</span>
    </div>
    <div class="btm">
      <div class="middle">
        <div class="filter">
          <div class="condition">
            <span>关键字&nbsp;&nbsp;</span>
            <el-input
              :clearable="true"
              @clear="searchBtn"
              v-model="searchInput.keyWord"
              class="w-50 m-2"
              placeholder="请输入关键字"
            />
          </div>
          <div class="condition">
            <span>创建时间&nbsp;&nbsp;</span>
            <el-date-picker
              v-model="searchInput.createTime"
              type="daterange"
              range-separator="-"
              start-placeholder="起始时间"
              end-placeholder="结束时间"
              format="YYYY-MM-DD"
              value-format="YYYY-MM-DD"
              :prefix-icon="Calendar"
              placeholder="请选择日期"
            />
          </div>
          <el-button
            color="rgba(0, 97, 255, 1)"
            type="primary"
            class="search"
            @click="searchBtn"
            ><el-icon>
              <Search />
            </el-icon>
            <span>查询</span></el-button
          >
        </div>
        <!-- 按钮列表 -->
        <div class="gongneng">
          <el-button
            type="primary"
            color="rgba(0, 97, 255, 1)"
            @click="addRolesClick"
            ><span>添加角色</span></el-button
          >
          <el-button type="primary" color="rgba(0, 97, 255, 1)" @click="addlist"
            ><span>导出</span></el-button
          >
        </div>
      </div>
      <div class="footer" v-loading="loading">
        <el-table
          :row-class-name="tableRowClassName"
          :data="tableData.list"
          @selection-change="handleSelectionChange"
          style="width: 100%"
          :header-cell-style="{
            background: 'rgba(240, 243, 247, 1)',
            height: '50px',
            border: 0,
          }"
        >
          <!-- <el-table-column align="center" type="selection" width="80" /> -->
          <el-table-column
            width="150"
            align="center "
            type="index"
            label="序号"
          />
          <el-table-column align="center" label="角色级别">
            <template #default="scope">
              <span v-if="scope.row.parentId==0">T0</span>
              <span v-else>T1</span>
            </template>
          </el-table-column>
          <el-table-column align="center" prop="name" label="角色名称" />
          <el-table-column align="center" prop="createTime" label="创建时间" />
          <el-table-column align="center" label="操作" width="200">
            <template #default="scope">
              <div class="edit">
                <div class="look" @click="editClick(scope.row)">添加</div>
                <div class="look" @click="editClick(scope.row)">编辑</div>
                <el-popconfirm
                  width="220"
                  confirm-button-text="确认"
                  cancel-button-text="取消"
                  :icon="InfoFilled"
                  icon-color="#f89626"
                  title="是否删除此房型?"
                  @confirm="del(scope.row)"
                  @cancel="cancelEvent"
                >
                  <template #reference>
                    <div class="del">删除</div>
                  </template>
                </el-popconfirm>
              </div>
            </template>
          </el-table-column>
        </el-table>
      </div>

      <!-- 添加角色 -->
      <el-dialog
        class="addRoles"
        v-model="addRolesVisible"
        :close-on-click-modal="false"
        :close-on-press-escape="false"
        title="添加角色"
        align-center
        width="900"
        :before-close="cancelAddRoles"
      >
        <div class="roleName">
          <span>角色名称: &nbsp;&nbsp;</span>
          <el-input
            :clearable="true"
            @clear="searchBtn"
            v-model="searchInput.keyWord"
            class="w-50 m-2"
            style="width: 450px"
            placeholder="请输入角色名称"
          />
        </div>
        <div class="rolesName">
          <div class="rolePermission">角色权限: &nbsp;&nbsp;</div>
          <div class="rolesCont">
            <el-table
              :row-class-name="tableRowClassName"
              :data="addRolesData.list"
              style="width: 100%"
              :span-method="arraySpanMethod"
              :header-cell-style="{
                background: 'rgba(240, 243, 247, 1)',
                height: '50px',
                border: 0,
              }"
            >
              <el-table-column align="center" prop="one" label="一级" />
              <el-table-column align="center" prop="two" label="二级" />
              <el-table-column width="600" label="功能">
                <template #default="scope">
                  <div class="checkBoxSel">
                    <el-checkbox-group v-model="scope.row.checkedSel">
                      <el-checkbox
                        v-for="item in scope.row.three"
                        :key="item"
                        :label="item"
                        >{{ item }}</el-checkbox
                      >
                    </el-checkbox-group>
                  </div>
                </template></el-table-column
              >
            </el-table>
          </div>
        </div>
        <div class="options">
          <div class="btn">
            <el-button
              color="rgba(41, 109, 227, 1)"
              class="queding"
              type="primary"
              @click="confirmAddRoles"
            >
              确定
            </el-button>
            <el-button @click="cancelAddRoles">取消</el-button>
          </div>
        </div>
      </el-dialog>

      <!-- 编辑按钮 -->
      <el-dialog
        class="editDialog"
        v-model="editVisible"
        :close-on-click-modal="false"
        :close-on-press-escape="false"
        :title="titleDialog"
        align-center
        width="550"
        :before-close="cancelEdit"
      >
        <el-form
          ref="editRef"
          :model="editRuleForm"
          :rules="editRules"
          label-width="90px"
          class="demo-ruleForm"
          :size="formSize"
          label-position="left"
          status-icon
        >
          <el-form-item label="水电编码 :" prop="SD_encoding">
            <el-input
              v-model="editRuleForm.SD_encoding"
              placeholder="请输入水电编码"
              clearable
              style="width: 500px"
            />
          </el-form-item>
          <el-form-item label="电表编码 :" prop="DB_encoding">
            <el-input
              v-model="editRuleForm.DB_encoding"
              placeholder="请输入电表编码"
              clearable
              style="width: 500px"
            />
          </el-form-item>
          <el-form-item label="房间号 :" prop="roomNum">
            <!-- <el-tree
              :data="roomNumData"
              :props="{
                label: 'label',
                children: 'children',
                value: 'value',
                disabled: 'disabled',
              }"
              node-key="id"
              show-checkbox
              ref="roomNumRef"
              @node-click="roomNumClick"
              @check-change="handleCheckChange"
            /> -->
            <el-cascader
              v-model="editRuleForm.roomNum"
              :options="roomNumData"
              :show-all-levels="false"
            />
          </el-form-item>
          <el-form-item class="options">
            <el-button
              color="rgba(41, 109, 227, 1)"
              class="queding"
              type="primary"
              @click="confirmEdit(editRef)"
            >
              确定
            </el-button>
            <el-button @click="cancelEdit(editRef)">取消</el-button>
          </el-form-item>
        </el-form>
      </el-dialog>

      <!-- 分页组件 -->
      <div class="pageSize">
        <span></span>
        <el-pagination
          background
          :current-page="currentPage"
          :page-size="pageSize"
          layout="total, prev, pager, next, jumper, slot"
          :total="total"
          @update:current-page="handleCurrentChange"
        />
      </div>
    </div>
    <div class="bgImg" v-if="bgImg">
      <el-carousel
        @click="bgImg = false"
        ref="bgImgs"
        indicator-position
        arrow="always"
        :autoplay="false"
        trigger
      >
        <el-carousel-item v-for="item in bgImgList" :key="item.id">
          <img :src="item.url" alt="" />
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>

<script setup>
import {
  ref,
  reactive,
  watch,
  nextTick,
  onBeforeMount,
  onUnmounted,
} from "vue";
import { useRouter } from "vue-router";
import { ElMessage, ElMessageBox } from "element-plus";
import { Calendar } from "@element-plus/icons-vue";
import vidiconsApi from "@/api/vidicons.js";
import { dayjs } from "element-plus";
import lodash from "lodash";
import axios from "axios";
import { useStore } from "vuex";
const store = useStore();
const api = ref("");
const router = useRouter();
// 表格数据
const loading = ref(false);
const tableData = reactive({
  list: [
    // {
    //   userName: "双人房",
    //   userPhone: 150,
    //   teamName: 12,
    // },
    // {
    //   userName: "双人房",
    //   userPhone: 150,
    //   teamName: 12,
    // },
    // {
    //   userName: "双人房",
    //   userPhone: 150,
    //   teamName: 12,
    // },
    // {
    //   userName: "双人房",
    //   userPhone: 150,
    //   teamName: 12,
    // },
  ],
});

const searchInput = reactive({
  keyWord: "",
  createTime: "",
}); // 搜索按钮数据

const currentPage = ref(1); // 当前页
const pageSize = ref(10);
const total = ref(); // 当前总数

// 添加角色
const addRolesVisible = ref(false);
const addRolesData = reactive({
  list: [
    {
      one: "房态管理",
      two: "/",
      three: [
        "全部",
        "预定",
        "退房",
        "维修",
        "关房",
        "置脏",
        "置净",
        "退款",
        "入住",
        "锁房",
        "日志",
        "换房",
        "开房",
        "门锁管理",
      ],
      checkedSel: [],
    },
    {
      one: "房型管理",
      two: "/",
      three: ["全部", "添加", "修改", "删除", "批量改价", "改价记录"],
      checkedSel: [],
    },
    {
      one: "订单管理",
      two: "/",
      three: [
        "全部",
        "取消",
        "详情",
        "入住",
        "退款",
        "退房",
        "查询",
        "删除",
        "换房",
        "导出",
      ],
      checkedSel: [],
    },
    {
      one: "授权管理",
      two: "值班管理",
      three: ["全部", "导入值班", "导出"],
      checkedSel: [],
    },
    {
      one: "授权管理",
      two: "流程管理",
      three: [
        "全部",
        "添加",
        "编辑",
        "同意",
        "驳回",
        "查询",
        "规则设置",
        "导出",
      ],
      checkedSel: [],
    },
    {
      one: "统计报表",
      two: "/",
      three: ["全部", "查询", "导出"],
      checkedSel: [],
    },
    {
      one: "设备管理",
      two: "门锁管理",
      three: [
        "全部",
        "添加",
        "编辑",
        "删除",
        "查询",
        "导出",
        "导入",
        "批量重置密码",
        "重置密码",
        "添加总卡",
        "禁用门锁",
        "钥匙管理",
        "消息列表",
        "远程开锁",
        "解绑设备",
      ],
      checkedSel: [],
    },
    {
      one: "设备管理",
      two: "水电表管理",
      three: ["全部", "添加", "编辑", "删除", "查询", "导出", "导入"],
      checkedSel: [],
    },
    {
      one: "组织机构",
      two: "用户管理",
      three: ["全部", "添加", "编辑", "删除", "查询", "导出", "导入"],
      checkedSel: [],
    },
    {
      one: "组织机构",
      two: "角色管理",
      three: ["全部", "添加", "编辑", "删除", "查询", "导出", "导入"],
      checkedSel: [],
    },
    {
      one: "账号管理",
      two: "/",
      three: ["全部", "添加", "编辑", "删除", "查询", "导出", "导入"],
      checkedSel: [],
    },
    {
      one: "系统设置",
      two: "/",
      three: ["全部", "退房设置", "公寓设置", "补助设置", "催缴设置"],
      checkedSel: [],
    },
  ],
});

// 编辑功能
const titleDialog = ref("");
const editVisible = ref(false);
const editRef = ref();
const editRuleForm = reactive({
  SD_encoding: "",
  DB_encoding: "",
  roomNum: "",
  id: "",
});
// 树形结构配置
const roomNumRef = ref();
const roomNumData = [
  {
    value: 1,
    label: "Level one 1",
    children: [
      {
        value: 11,
        label: "Level two 1-1",
      },
      {
        value: 12,
        label: "Level two 1-2",
      },
    ],
  },
  {
    value: 2,
    label: "Level one 2",
    children: [
      {
        value: 21,
        label: "Level two 2-1",
      },
      {
        value: 22,
        label: "Level two 2-2",
      },
    ],
  },
];
// 表单验证
const editRules = reactive({
  SD_encoding: [
    { required: true, message: "水电编码不能为空", trigger: "blur" },
  ],
  DB_encoding: [
    {
      required: true,
      message: "电表编码不能为空",
      trigger: "blur",
    },
  ],
  roomNum: [
    {
      required: true,
      message: "房间号不能为空",
      trigger: "blur",
    },
  ],
});
watch(
  () => searchInput.createTime,
  (newVal, oldVal) => {
    console.log("监听时间:", newVal);
    if (newVal == null) {
      searchBtn();
    }
  }
);
// 查看角色列表
const getList = async () => {
  loading.value = true;
  let data={
    page:currentPage.value,
    size:pageSize.value,
    adminMenuId:sessionStorage.getItem('adminMenuId'),
    keyWord:searchInput.keyWord,
  }
  if (searchInput.createTime) {
    data.startTime = searchInput.createTime[0];
    data.endTime = searchInput.createTime[1];
  }
  let res = await axios({
    method: "get",
    url: api.value + "/users-menu/userListPage",
    headers: {
      // token: sessionStorage.getItem("token"),
      // user_head: sessionStorage.getItem("userhead"),
    },
    params: data,
  });
  console.log(res, "角色列表");
  if (res.data.code == 200) {
    tableData.list = res.data.data.records;
    total.value = res.data.data.total;
    loading.value = false;
    // ElMessage({
    //   type: "success",
    //   showClose: true,
    //   message: res.data.message,
    //   center: true,
    // });
  } else {
    loading.value = false;
    ElMessage({
      type: "error",
      showClose: true,
      message: res.data.message,
      center: true,
    });
  }
};

// 搜索功能
const searchBtn = lodash.debounce(async () => {
  getList();
}, 300);

// 添加角色（------------------------------------------------）
// 合并表格行或列
const arraySpanMethod = ({ row, column, rowIndex, columnIndex }) => {
  if (columnIndex === 0) {
    if (rowIndex === 3) {
      return {
        rowspan: 2,
        colspan: 1,
      };
    }
    if (rowIndex === 4) {
      return {
        rowspan: 0,
        colspan: 0,
      };
    }
    if (rowIndex === 6) {
      return {
        rowspan: 2,
        colspan: 1,
      };
    }
    if (rowIndex === 7) {
      return {
        rowspan: 0,
        colspan: 0,
      };
    }
    if (rowIndex === 8) {
      return {
        rowspan: 2,
        colspan: 1,
      };
    }
    if (rowIndex === 9) {
      return {
        rowspan: 0,
        colspan: 0,
      };
    }
  }
};
const addRolesClick = () => {
  addRolesVisible.value = true;
};
const cancelAddRoles = () => {
  addRolesVisible.value = false;
};

//编辑按钮  （-------------------------------------------）
const editClick = async () => {
  titleDialog.value = "编辑";
  editVisible.value = true;
  //   let data = {
  //     linkId: row.id,
  //   };
  //   let res = await axios({
  //     method: "post",
  //     url: api.value + "/mhotel/uploadgetByLinkId.action",
  //     headers: {},
  //     params: data,
  //   });
  //   console.log(res, "编辑中查找图片");
  //   if (res.data.code == 200) {
  //     // res.data.data.fileInfoList.forEach((item) => {
  //     //   item.uid = item.id;
  //     // });
  //     // fileList.list = res.data.data.fileInfoList;
  //     // ruleForm.fileListJson = fileList.list;
  //     res.data.data.forEach((item) => {
  //       item.uid = item.id;
  //     });
  //     fileList.list = res.data.data;
  //     ruleForm.fileListJson = fileList.list;
  //     // ElMessage({
  //     //   type: "success",
  //     //   showClose: true,
  //     //   message: res.data.message,
  //     //   center: true,
  //     // });
  //   } else {
  //     ElMessage({
  //       type: "error",
  //       showClose: true,
  //       message: res.data.message,
  //       center: true,
  //     });
  //   }
};

const cancelEdit = () => {
  editVisible.value = false;
  editRuleForm.roomNum = "";
};

// 确定编辑
const confirmEdit = (formEl) => {
  if (!formEl) return;
  formEl.validate(async (valid, fields) => {
    if (valid) {
    }
  });
};

//删除按钮
const del = async (row) => {
  let data = {
    id: row.id,
  };
  let res = await axios({
    method: "post",
    url: api.value + "/mhotel/housedelHouser.action",
    headers: {
      // token: sessionStorage.getItem("token"),
      // user_head: sessionStorage.getItem("userhead"),
    },
    params: data,
  });
  if (res.data.code == 200) {
    if (tableData.list.length == 1 && currentPage.value != 1) {
      currentPage.value = currentPage.value - 1;
    }
    getList();
    ElMessage({
      type: "success",
      showClose: true,
      message: res.data.message,
      center: true,
    });
  } else {
    ElMessage({
      type: "error",
      showClose: true,
      message: res.data.message,
      center: true,
    });
  }
  // console.log(res);
};

// 多选框功能
const handleSelectionChange = (val) => {
  console.log(val);
  selectData.list = val;
};
//导出功能
// const importExcel = async () => {
//   if (searchInput.createTime == null) {
//     searchInput.createTime = "";
//   }
//   let data = new FormData();
//   data.set("car_number", searchInput.carnumber);
//   data.set("create_time", searchInput.createTime);
//   let res = await axios({
//     method: "post",
//     url: api.value + "/carBook/cinfotoExcel.action",
//     headers: {
//       token: sessionStorage.getItem("token"),
//     },
//     data: data,
//   });
//   // console.log(res, "导出账号");
//   if (res.data.code == 200) {
//     // const elt = document.createElement("a");
//     // elt.setAttribute(
//     //   "href",
//     //   "https://chtech.ncjti.edu.cn/carstop" + res.data.downurl
//     // );
//     // elt.setAttribute("download", "file.png");
//     // elt.style.display = "none";
//     // document.body.appendChild(elt);
//     // elt.click();
//     var downloadPath = "https://chtech.ncjti.edu.cn/carstop" + res.data.downurl;
//     console.log("获得地址数据:", downloadPath);
//     var downloadLink = document.createElement("a");
//     downloadLink.style.display = "none"; // 使其隐藏
//     downloadLink.href = downloadPath;
//     downloadLink.download = "";
//     downloadLink.click();
//     document.body.appendChild(downloadLink);
//     document.body.removeChild(downloadLink);
//     ElMessage({
//       type: "success",
//       showClose: true,
//       message: res.data.message,
//       center: true,
//     });
//   } else {
//     ElMessage({
//       type: "error",
//       showClose: true,
//       message: res.data.message,
//       center: true,
//     });
//   }
// };
// 表格斑马纹颜色修改
const tableRowClassName = ({ row, rowIndex }) => {
  if (rowIndex % 2 === 0) {
    return "even";
  } else if (rowIndex % 2 !== 0) {
    return "odd";
  }
  return "";
};
// 分页
const handleCurrentChange = (value) => {
  // console.log(value);
  currentPage.value = value;
  getList();
};

onBeforeMount(async () => {
  api.value = store.state.user.api;
  getList();
});
onUnmounted(() => {
  // document.removeEventListener("keyup", Enters);
});
</script>

<style scoped lang="scss">
.content-box {
  min-width: 800px;
  width: calc(100vw - 260px);
  height: calc(100vh - 105px);
  margin: 20px auto;
  border-radius: 8px;
  background-color: #fff;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);

  .left {
    // width: calc(100wh - 40px);
    display: flex;
    align-items: center;
    margin: 0 30px;
    border-bottom: 1px solid #ccc;
    color: rgb(0, 0, 0);
    font-size: 18px;
    font-weight: 600;

    span {
      display: block;
      height: 60px;
      line-height: 60px;
      margin-right: 20px;
    }

    .is_active {
      color: rgba(111, 182, 184, 1);
    }
  }
  .btm{
  width: 100%;
  height: 100%;
}
  .middle {
    width: calc(100% - 60px);
    margin: 0 auto;

    color: #000;

    // border-bottom: 1px solid rgb(231, 231, 231);
    .filter {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      margin: 10px 0 0 0;

      .search {
        color: #fff;
      }

      .condition {
        display: flex;
        align-items: center;
        margin: 10px 30px 10px 0;

        :deep(.el-input .el-input__inner) {
          font-size: 14px;
        }

        span {
          margin: 0 10px 0 0;
        }
      }
    }

    .gongneng {
      margin: 10px 0 20px 0;

      span {
        color: #fff;
      }
      .el-button {
        margin-right: 10px;
      }
    }

    :deep(.cont) {
      width: 60%;
      margin: 20px auto;
    }

    :deep(.download) {
      display: flex;
      align-items: center;
      margin: 10px;
    }

    :deep(.download span) {
      font-size: 16px;
      margin-left: 20px;
    }

    :deep(.cont .el-button) {
      margin-left: 60px;
      margin-bottom: 30px;
    }

    :deep(.cont .accomplish) {
      width: 100%;
      display: flex;
      justify-content: center;
    }

    :deep(.cont .accomplish .el-button) {
      width: 50%;
      margin: 0;
    }
  }

  .footer {
    width:  calc(100% - 60px);
    height: calc(100% - 210px);
    margin: 10px auto 30px;

    .el-table--fit {
      height: 100%;

      :deep(.el-table__header-wrapper) {
        background-color: #000;
        font-size: 16px;

        tr {
          color: #000;
        }
      }

      :deep(.el-table__row) {
        height: 50px;
        font-size: 16px;
        color: #000;
      }

      :deep(.el-table__row):nth-child(2n) {
        .el-table-fixed-column--right {
          background-color: rgba(240, 243, 247, 1);
        }
      }

      :deep(.el-table__row td) {
        padding: 0;
        border: 0;
      }

      .el-button--primary {
        margin-left: 5px;
      }

      :deep(.el-table__body .even) {
        background-color: #fff;
      }

      :deep(.el-table__body .odd) {
        background-color: rgba(240, 243, 247, 1);
      }

      :deep(.edit) {
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(111, 182, 184, 1);
      }

      :deep(.look) {
        padding: 0 10px;
        cursor: pointer;
        color: rgba(30, 125, 251, 1);
      }

      .del {
        padding: 0 10px;
        color: rgba(212, 48, 48, 1);
        cursor: pointer;
      }

      // :deep(.look):hover {
      //   color: red;
      // }
      // :deep(.del):hover {
      //   color: red;
      // }
    }
  }

  // 添加角色
  :deep(.addRoles) {
      height: 820px;
      overflow: auto;
    border-radius: 11px;
    .el-dialog__header {
      border-radius: 11px 11px 0 0;
      background: rgba(237, 241, 245, 1);
      font-weight: 600;
      margin: 0;
      .el-dialog__headerbtn {
        outline: none;
      }
    }
    .el-dialog__body {
      padding: 15px 30px 10px 30px;
      height: calc(100% - 79px);
      .rolesName {
        margin: 15px 0;
        color: #000;
        height:calc(100% - 115px);
        .rolePermission {
          margin: 10px 0;
        }
        .rolesCont{
          height: calc(100% - 41px);
        }
      }
      .el-table--fit {
        height: 100%;

        .el-table__header-wrapper {
          background-color: #000;
          font-size: 16px;
          tr {
            color: #000;
            th {
              border-left: 1px solid #dcdfe6 !important;
              &:last-child {
                border-right: 1px solid #dcdfe6 !important;
              }
              .cell {
                text-align: center;
              }
            }
          }
        }

        .el-table__row {
          height: 50px;
          font-size: 16px;
          color: #000;
        }

        .el-table__row td {
          padding: 0;
          // border: 0;
        }
        td {
          border-left: 1px solid #dcdfe6;
          .checkBoxSel {
            padding-left: 20px;
            .el-checkbox {
              .el-checkbox__label {
                color: #000;
              }
            }
          }
          &:last-child {
            border-right: 1px solid #dcdfe6;
          }
        }
        .el-table__row:hover {
          td {
            background-color: #ffffff !important;
          }
        }

        .el-button--primary {
          margin-left: 5px;
        }

        // .el-table__body .even {
        //   background-color: #fff;
        // }

        // .el-table__body .odd {
        //   background-color: rgba(240, 243, 247, 1);
        // }
      }

      .options {
        margin: 10px 20px 20px 0;
        width: 100%;
        .btn {
          display: flex;
          flex-direction: row-reverse;
        }
        .queding {
          color: #fff;
          margin-left: 15px;
        }
      }
    }
  }
  // 编辑按钮
  :deep(.editDialog) {
    //   height: 420px;
    border-radius: 11px;
    .el-dialog__header {
      border-radius: 11px 11px 0 0;
      background: rgba(237, 241, 245, 1);
      font-weight: 600;
      margin: 0;
      .el-dialog__headerbtn {
        outline: none;
      }
    }
    .el-dialog__body {
      padding: 30px 20px 10px 20px;
      .el-form-item__content {
        width: 200px;
        .el-tree-node__content {
          //   border: 1px solid red;
          .el-checkbox {
            display: none;
          }
        }
        .el-tree-node__children {
          .el-checkbox {
            display: block;
          }
        }
      }
      .options {
        margin: 10px 20px 20px 0;
        width: 100%;
        .el-form-item__content {
          display: flex;
          flex-direction: row-reverse;
        }
        .queding {
          color: #fff;
          margin-left: 15px;
        }
      }
    }
  }

  .pageSize {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 30px;

    span {
      color: #000;
    }

    .el-pagination {
      // width: 1600px;
      :deep(.el-pagination__total) {
        color: #000;
      }

      :deep(.el-pagination__goto) {
        color: #000;
      }

      :deep(.el-pagination__classifier) {
        color: #000;
      }

      :deep(.el-input__wrapper) {
        border: 1px solid rgba(0, 0, 0, 1);
        border-radius: 5px;
        box-shadow: none;
      }

      :deep(.el-pager li) {
        margin: 0 5px;
        border: 1px solid rgba(0, 0, 0, 1);
        border-radius: 5px;
        background-color: transparent;
      }

      :deep(.el-pager li.is-active) {
        // background-color: rgba(0, 97, 255, 0.8);
        border: 1px solid rgba(0, 97, 255, 1);
        color: rgba(0, 97, 255, 1);
      }

      :deep(.btn-prev) {
        margin-right: 5px;
        border: 1px solid rgba(0, 0, 0, 1);
        border-radius: 5px;
        background-color: transparent;
      }

      :deep(.btn-next) {
        margin-left: 5px;
        border: 1px solid rgba(0, 0, 0, 1);
        border-radius: 5px;
        background-color: transparent;
      }
    }
  }
}

.el-input {
  width: 192px;
}
</style>
