<template>
  <div class="addwrapper">
    <div class="addhead">
      <div class="leftimg">
        <img class="img" src="../../assets/px.jpg" />
      </div>
      <div class="imgfor">
        <div class="forz">产品经理进阶路径</div>
        <div class="fort">创建时间：2022-07-21 00:00</div>
      </div>
      <div class="right">
        <img class="img1" src="../../assets/images/leveladd/ma.png" />
        <div class="line"></div>
        <img class="img2" src="../../assets/images/leveladd/pub.png" />
        <div class="pub">发布</div>
        <div class="line"></div>
        <img
          style="margin-right: 15px"
          class="img2"
          src="../../assets/images/leveladd/more.png"
        />
        <div class="more">
          <span style="color: #7096e3; cursor: pointer">更多</span>
          <div class="moreArrow"></div>
          <div class="moreItems">
            <div class="sammo">撤回</div>
            <div class="sammo">复制</div>
          </div>
        </div>
        <div class="line"></div>
        <router-link to="/learningpath"
          ><div style="display: flex">
            <img class="img2" src="../../assets/images/leveladd/back.png" />
            <div class="return">返回</div>
          </div></router-link
        >
      </div>
    </div>
    <div class="split"></div>
    <div class="bom clearfix">
      <a-tabs
        class="tab"
        v-model:activeKey="activeKey"
        size="large"
        :tabBarStyle="{ marginLeft: '10px' }"
      >
        <a-tab-pane key="1" tab="路径管理">
          <!-- 无数据时的路径管理 -->
          <!-- <div class="cont">
            <div class="pad"></div>
            <div class="sametab">
              <div class="Lhead">
                <a-input
                  v-model:value="gatename"
                  style="width: 270px; height: 40px; border-radius: 8px"
                  placeholder="关卡名称"
                />
                <div class="btns">
                  <div class="btn btn1">
                    <div class="search"></div>
                    <div class="btnText">搜索</div>
                  </div>
                  <div class="btn btn2">
                    <div class="search"></div>
                    <div class="btnText">重置</div>
                  </div>
                  <router-link to="/leveladddetail">
                    <div class="btn btn3" @click="handleOut">
                      <div class="search"></div>
                      <div class="btnText">创建关卡</div>
                    </div>
                  </router-link>
                </div>
              </div>
              <div class="Lbom">
                <div>
                  <div class="create">
                    <div
                      class="taskbox"
                      style="
                        background: linear-gradient(180deg, #e5f6ec, #eef9f3);
                      "
                    >
                      <div class="leftt">
                        <img src="../../assets/images/taskpage/left3.png" />
                      </div>
                      <div class="photo">
                        <img src="../../assets/images/taskpage/picture3.png" />
                      </div>
                      <div class="rightt">
                        <img src="../../assets/images/taskpage/right3.png" />
                      </div>
                      <div
                        class="centerbox"
                        style="color: rgba(93, 201, 136, 1)"
                      >
                        创建关卡
                      </div>
                      <div class="centermain">点击创建关卡任务</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="pad"></div>
          </div> -->
          <!-- 有数据时的路径管理 -->
          <div style="flex: 1">
            <div class="onerow">
              <div class="taskmain">任务大纲</div>

              <router-link to="/leveladddetail" class="edit">
                <img
                  class="editimg"
                  src="../../assets/images/projectadd/edit.png"
                />
                <span class="editext">编辑</span>
              </router-link>
            </div>
            <div class="taskSyllabus">
              <a-collapse v-model:activeKey="taskSyllabusActive" accordion>
                <template #expandIcon="{ isActive }">
                  <img
                    :style="{
                      width: isActive ? 9.1 : 8.1,
                      height: isActive ? 8.1 : 9.1,
                      'margin-right': isActive ? '12px' : '13px',
                    }"
                    :src="
                      isActive
                        ? require('../../assets/images/projectadd/open.png')
                        : require('../../assets/images/projectadd/close.png')
                    "
                  />
                  <div></div>
                </template>
                <a-collapse-panel
                  v-for="(value, index) in taskSyllabus"
                  :key="index"
                  :header="value.text"
                >
                  <div
                    class="course"
                    v-for="(item, key) in value.children"
                    :key="key"
                  >
                    <!-- :style="{width:item.course==='在线'?'28px':
												height:item.course==='在线'?'27px':}" -->
                    <div class="first">
                      <div class="icon">
                        <div
                          style="
                            width: 31px;
                            height: 28px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                          "
                        >
                          <img
                            :src="
                              item.course === '在线'
                                ? require('../../assets/images/leveladd/zai.png')
                                : item.course === '面授'
                                ? require('../../assets/images/leveladd/mian.png')
                                : item.course === '案例'
                                ? require('../../assets/images/leveladd/an.png')
                                : item.course === '作业'
                                ? require('../../assets/images/leveladd/zuo.png')
                                : item.course === '考试'
                                ? require('../../assets/images/leveladd/kao.png')
                                : item.course === '直播'
                                ? require('../../assets/images/leveladd/zhi.png')
                                : item.course === '外链'
                                ? require('../../assets/images/leveladd/wai.png')
                                : item.course === '讨论'
                                ? require('../../assets/images/leveladd/tao.png')
                                : item.course === '活动'
                                ? require('../../assets/images/leveladd/huo.png')
                                : item.course === '测评'
                                ? require('../../assets/images/leveladd/ce.png')
                                : item.course === '调研'
                                ? require('../../assets/images/leveladd/diao.png')
                                : item.course === '投票'
                                ? require('../../assets/images/leveladd/tou.png')
                                : null
                            "
                          />
                        </div>
                      </div>
                      <div>
                        <div class="iconame">「{{ item.course }}」</div>
                        <div class="icontext">{{ item.name }}</div>
                      </div>
                    </div>
                    <div class="type">
                      <div
                        :class="
                          item.classify == '必修' ? 'typename1' : 'typename'
                        "
                      >
                        {{ item.classify }}
                      </div>
                    </div>
                    <div class="time">
                      <div class="timetext">开始时间</div>
                      <div class="timetext">{{ item.beginTime }}</div>
                    </div>
                    <div class="progress">
                      <div class="progresstext">
                        {{ item.complete }}/{{ item.total }}人
                      </div>
                      <div style="display: flex">
                        <a-progress
                          :showInfo="false"
                          :percent="item.percent"
                          strokeColor="#FFC067"
                          trailColor="rgba(253, 209, 98, 0.2)"
                        />
                        <span class="progresstext" style="margin-left: 10px"
                          >{{ item.percent }}%</span
                        >
                      </div>
                    </div>
                    <div class="operations">
                      <div
                        class="operation"
                        style="cursor: pointer"
                        :style="{
                          display: item.course === '面授' ? 'flex' : 'none',
                        }"
                        @click="showFS"
                      >
                        学员
                      </div>
                      <div
                        class="operation"
                        style="cursor: pointer"
                        @click="showAA"
                        :style="{
                          display:
                            item.course === '直播' || item.course === '活动'
                              ? 'flex'
                              : 'none',
                        }"
                      >
                        考勤
                      </div>
                      <div
                        class="operation"
                        style="cursor: pointer"
                        :style="{
                          display:
                            item.course === '直播' ||
                            item.course === '活动' ||
                            item.course === '面授'
                              ? 'flex'
                              : 'none',
                        }"
                        @click="
                          item.course === '面授'
                            ? showCopyModal(item.course)
                            : null
                        "
                      >
                        二维码
                      </div>
                      <div
                        class="operation"
                        style="cursor: pointer; margin-right: 35px"
                        @click="
                          item.course === '在线' ||
                          item.course === '案例' ||
                          item.course === '外链' ||
                          item.course === '讨论' ||
                          item.course === '直播' ||
                          item.course === '调研' ||
                          item.course === '投票' ||
                          item.course === '活动'
                            ? showTime(item.course, item.name)
                            : item.course === '考试' || item.course === '测评'
                            ? showTest(item.course, item.name)
                            : item.course === '面授'
                            ? showFace(item.course)
                            : item.course === '作业'
                            ? showWork(item.course)
                            : null
                        "
                      >
                        管理
                      </div>
                    </div>
                  </div>
                </a-collapse-panel>
              </a-collapse>
            </div>
            <div style="display: flex; height: 20px"></div>
          </div>
        </a-tab-pane>
        <a-tab-pane key="2" tab="学员管理" force-render>
          <div class="xwid">
            <div class="pad"></div>
            <div class="xin" style="overflow-x: auto">
              <div class="xhead">
                <a-input
                  v-model:value="gatenamee"
                  style="width: 270px; height: 40px; border-radius: 8px"
                  placeholder="关卡名称"
                />
                <div class="btns">
                  <div class="btn btn1">
                    <div class="search"></div>
                    <div class="btnText">搜索</div>
                  </div>
                  <div class="btn btn2">
                    <div class="search"></div>
                    <div class="btnText">重置</div>
                  </div>
                </div>
              </div>
              <div class="xheadb">
                <button class="addx" @click="showAddStu">添加学员</button>
                <button class="addd" @click="showImpStu">导入学员</button>
                <div class="select">
                  <a-select
                    v-model:value="projectName"
                    style="width: 130px"
                    placeholder="更多操作"
                    :options="projectNameListt"
                    @change="selectProjectName"
                    allowClear
                    showSearch
                  ></a-select>
                </div>
              </div>
              <div class="talk">
                <img class="im" src="../../assets/images/leveladd/gan.png" />
                <div class="xu">
                  <span class="yi">已选择</span>
                  <div style="width: 5px; display: inline-block"></div>
                  <span class="th">3</span>
                  <div style="width: 5px; display: inline-block"></div>
                  <span class="yi">项</span>
                  <span class="zon">列表选项总数：</span>
                  <span class="yi">5</span>
                  <span class="yi">条</span>
                </div>
              </div>
              <div class="tableBox" style="margin-top: 30px">
                <a-table
                  style="border: 1px solid #f2f6fe"
                  :columns="tableDataFunc()"
                  :scroll="{ x: 1500, y: 235 }"
                  :data-source="tableData"
                  :loading="tableDataTotal === -1 ? true : false"
                  expandRowByClick="true"
                  @expand="expandTable"
                  :pagination="false"
                  :row-selection="{
                    columnWidth: 30,
                    selectedRowKeys: selectedRowKeys,
                    onChange: onSelectChange,
                  }"
                />

                <div class="pa">
                  <a-pagination
                    showSizeChanger="true"
                    showQuickJumper="true"
                    hideOnSinglePage="true"
                    :pageSize="pageSize"
                    :current="currentPage"
                    :total="tableDataTotal"
                    class="pagination"
                  />
                </div>
              </div>
            </div>
            <div class="pad"></div></div
        ></a-tab-pane>

        <a-tab-pane key="3" tab="设置">
          <div class="sametab">
            <div class="Gcon">
              <div class="pad"></div>
              <div class="Gin">
                <div class="headone">
                  <div class="box"></div>
                  <div class="onetitle">关卡内容可见可学设置</div>
                  <div class="oneedi">编辑</div>
                </div>
                <div class="onemain clearfix">
                  <div class="checkcon">
                    <input
                      type="checkbox"
                      name="cb1"
                      value="yulan"
                      class="in"
                    />
                    <span class="yulan">预览其他关卡</span><br />
                    <div style="width: 10px; height: 4px"></div>
                    <span class="yulan2">学员可预览第</span
                    ><span style="color: #4ea6ff">1</span><span>关-第</span
                    ><span style="color: #4ea6ff">4</span><span>关内容</span>
                  </div>
                  <div class="checkcon" style="margin-top: 20px">
                    <input
                      type="checkbox"
                      name="cb1"
                      value="xuexi"
                      class="in"
                    />
                    <span class="yulan">学习其他关卡</span><br />
                    <div style="width: 10px; height: 4px"></div>
                    <span class="yulan2">学员可预览第</span
                    ><span style="color: #4ea6ff">1</span><span>关-第</span
                    ><span style="color: #4ea6ff">4</span><span>关内容</span>
                  </div>
                  <br />
                </div>
              </div>
            </div>
            <div class="Gcon">
              <div class="pad"></div>
              <div class="Gin" style="margin-top: 0px">
                <div class="headone">
                  <div class="box"></div>
                  <div class="onetitle">关卡晋级规则</div>
                </div>
                <div class="twomain clearfix">
                  <a-switch
                    size="small"
                    v-model:checked="checked2"
                    style="margin-top: -5px"
                  />
                  <span class="info">启用关卡自动规则加入</span>
                  <div class="infor">
                    若开启“新建/编辑关卡-添加学员”支持设定自动加入规则，将于每日8点同步数据
                  </div>
                  <div :class="[checked2 ? 'chooseshow' : 'choo']">
                    <div class="fane">选择范围</div>
                    <div class="select">
                      <a-select
                        v-model:value="projectName"
                        style="
                          width: 250px;
                          border-radius: 8px;
                          margin-top: 15px;
                        "
                        placeholder="请选择部门"
                        :options="projectNameList"
                        @change="selectProjectName3"
                        allowClear
                        showSearch
                      ></a-select>
                    </div>
                    <div class="select">
                      <a-select
                        v-model:value="projectName2"
                        style="
                          width: 250px;
                          border-radius: 8px;
                          margin-top: 15px;
                        "
                        placeholder="请选择岗位"
                        :options="projectNameList2"
                        @change="selectProjectName2"
                        allowClear
                        showSearch
                      ></a-select>
                    </div>
                  </div>
                  <div class="btm">
                    <div class="bmo">关卡学习方案展示设置</div>
                    <div class="bmt">仅支持移动端</div>
                    <div class="chosecon">
                      <div class="chose">
                        <input
                          type="checkbox"
                          name="cb1"
                          value="lieb"
                          class="inl"
                        /><span class="sh">列表展示</span>
                      </div>
                      <div class="chose" style="margin-left: 20px">
                        <input
                          type="checkbox"
                          name="cb1"
                          value="lieb"
                          class="inl"
                        /><span class="sh">路径展示</span>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div></a-tab-pane
        >
      </a-tabs>
      <a-modal
        style="padding: 0"
        :closable="sh"
        v-model:visible="visiblene"
        :footer="null"
        centered="true"
        wrapClassName="changeModal"
      >
        <div class="con">
          <div class="header">
            <div class="inhe">
              <div class="mod"></div>
              <div class="tz">调整关卡</div>
              <div class="mg" @click="closeChangeModal"></div>
            </div>
          </div>
          <div class="mid">
            <div class="inher">
              <div class="cur">当前关卡：</div>
              <div class="select">
                <a-select
                  v-model:value="curLevel"
                  style="width: 100%"
                  placeholder="请选择关卡"
                  :options="projectNameList4"
                  @change="selectProjectName4"
                  allowClear
                  showSearch
                ></a-select>
              </div>
              <div class="btn">
                <button class="sameb btn1">取消</button>
                <button class="sameb btn2">确定</button>
              </div>
            </div>
          </div>
        </div></a-modal
      >

      <!-- 批量删除学员弹窗 -->
      <a-modal
        v-model:visible="deleteAll"
        :footer="null"
        :closable="closeDeleteAll"
        wrapClassName="CopyModal"
        centered="true"
      >
        <div class="delete">
          <div class="del_header"></div>
          <div class="del_main">
            <div class="header">
              <div class="icon"></div>
              <span>提示</span>
              <div class="close_exit" @click="closeDeleteALLModal"></div>
            </div>
            <div class="body">
              <span>请确认是否批量删除学员</span>
            </div>
            <div class="del_btnbox">
              <div class="del_btn btn1">
                <div class="btnText" @click="delete_exit">取消</div>
              </div>
              <div class="del_btn btn2">
                <div class="btnText" @click="delete_exit">确定</div>
              </div>
            </div>
          </div>
        </div>
      </a-modal>
      <!-- 面授管理二维码 -->
      <a-modal
        v-model:visible="copyModal"
        :footer="null"
        :closable="closeCopy"
        wrapClassName="facemanageModal"
        centered="true"
      >
        <div class="delete">
          <div class="del_header"></div>
          <div class="del_main">
            <div class="header">
              <div class="icon"></div>
              <span>面授管理</span>
              <div class="close_exit" @click="closeCopyModal"></div>
            </div>
            <div class="body">
              <div><img src="../../assets/images/taskpage/erweima.png" /></div>
            </div>
            <div class="footerr">
              <div class="onload">下载二维码</div>
              <div class="onloadpx">200*200</div>
              <div class="onloadpx">400*400</div>
              <div class="onloadpx">800*800</div>
            </div>
          </div>
        </div>
      </a-modal>
      <!-- 添加学员抽屉 -->
      <add-stu v-model:AddSvisible="AddSvisible" />
      <!-- 导入学员抽屉 -->
      <imp-stu v-model:AddImpStuvisible="AddImpStuvisible" />
      <!-- 学员管理查看抽屉 -->
      <check-stu v-model:CheckStuvisible="CheckStuvisible" />
      <!-- 面授学员抽屉 -->
      <face-stu v-model:FSvisible="FSvisible" />
      <!-- 活动考勤抽屉 -->
      <active-attendance v-model:AAvisible="AAvisible" />
      <!-- 时间管理抽屉 -->
      <time-manage v-model:Tvisible="visible" :title="showTimeText" />
      <!-- 考试管理抽屉 -->
      <test-manage v-model:TMvisible="TMvisible" :title="showTestText" />
      <!-- 面授管理抽屉 -->
      <face-manage v-model:Fvisible="FaceVisivle" />
      <!-- 作业管理抽屉 -->
      <work-manage v-model:Wvisible="Wvisible" />
    </div>
  </div>
</template>
<script>
import { ref, reactive, toRefs } from "vue";
import AddStu from "../../components/drawers/AddLevelAddStu";
import ImpStu from "../../components/drawers/AddLevelImportStu";
import CheckStu from "../../components/drawers/CheckStu";
import FaceStu from "../../components/drawers/FaceStu";
import ActiveAttendance from "../../components/drawers/ActiveAttendance";
import TimeManage from "../../components/drawers/TimeManage";
import TestManage from "../../components/drawers/TestManage";
import FaceManage from "../../components/drawers/FaceManage";
import WorkManage from "../../components/drawers/WorkManage";
export default {
  name: "LevelAdd",
  components: {
    AddStu,
    ImpStu,
    CheckStu,
    FaceStu,
    ActiveAttendance,
    TimeManage,
    TestManage,
    FaceManage,
    WorkManage,
  },
  methods: {},
  setup() {
    const state = reactive({
      gatename: null, //关卡名称
      gatenamee: null, //学员管理关卡名称
      deleteAll: false, //批量删除学员弹窗
      AddSvisible: false, //添加学员抽屉
      AddImpStuvisible: false, //导入学员抽屉
      CheckStuvisible: false, //学员管理的查看抽屉
      Wvisible: false, //作业管理
      projectNameListt: [
        {
          id: 1,
          value: "导出信息",
          label: "导出信息",
        },
        {
          id: 2,
          value: "批量调整关卡",
          label: "批量调整关卡",
        },
        {
          id: 3,
          value: "批量删除",
          label: "批量删除",
        },
      ],
      projectNameList: [
        {
          id: 1,
          value: "项目一",
          label: "项目一",
        },
        {
          id: 2,
          value: "项目二",
          label: "项目二",
        },
        {
          id: 3,
          value: "项目三",
          label: "项目三",
        },
        {
          id: 4,
          value: "项目四",
          label: "项目四",
        },
      ],
      projectNameList2: [
        {
          id: 1,
          value: "项目一",
          label: "项目一",
        },
        {
          id: 2,
          value: "项目二",
          label: "项目二",
        },
        {
          id: 3,
          value: "项目三",
          label: "项目三",
        },
        {
          id: 4,
          value: "项目四",
          label: "项目四",
        },
      ],
      projectNameList4: [
        {
          id: 1,
          value: "请选择关卡",
          label: "请选择关卡",
        },
        {
          id: 2,
          value: "关卡1",
          label: "关卡1",
        },
        {
          id: 3,
          value: "关卡2",
          label: "关卡2",
        },
      ],
      //任务大纲列表
      taskSyllabus: [
        {
          text: "阶段1腾飞班阶段1",
          children: [
            {
              course: "在线",
              name: "时间管理",
              classify: "选修",
              beginTime: "2022-09-10 14:03",
              total: 50, //总人数
              complete: 20, //完成人数
              percent: 40,
            },
            {
              course: "直播",
              name: "管理直播间",
              classify: "必修",
              beginTime: "2022-09-12 14:03",
              total: 50, //总人数
              complete: 10, //完成人数
              percent: 20,
            },
            {
              course: "面授",
              name: "管理面授课",
              classify: "必修",
              beginTime: "2022-09-16 14:03",
              total: 80, //总人数
              complete: 0, //完成人数
              percent: 0,
            },
            {
              course: "活动",
              name: "管理活动",
              classify: "必修",
              beginTime: "2022-09-16 14:03",
              total: 50, //总人数
              complete: 40, //完成人数
              percent: 80,
            },
            {
              course: "作业",
              name: "管理者作业",
              classify: "选修",
              beginTime: "2022-09-16 14:03",
              total: 50, //总人数
              complete: 30, //完成人数
              percent: 60,
            },
            {
              course: "考试",
              name: "管理者考试",
              classify: "必修",
              beginTime: "2022-09-16 14:03",
              total: 50, //总人数
              complete: 50, //完成人数
              percent: 100,
            },
          ],
        },
        {
          text: "阶段2腾飞班阶段2",
          children: [
            {
              course: "讨论",
              name: "时间管理",
              classify: "选修",
              beginTime: "2022-09-16 14:03",
              total: 50, //总人数
              complete: 20, //完成人数
              percent: 40,
            },
            {
              course: "测评",
              name: "管理直播间",
              classify: "必修",
              beginTime: "2022-09-16 14:03",
              total: 50, //总人数
              complete: 10, //完成人数
              percent: 20,
            },
            {
              course: "调研",
              name: "管理直播间",
              classify: "必修",
              beginTime: "2022-09-16 14:03",
              total: 50, //总人数
              complete: 10, //完成人数
              percent: 20,
            },
            {
              course: "投票",
              name: "管理直播间",
              classify: "必修",
              beginTime: "2022-09-16 14:03",
              total: 50, //总人数
              complete: 10, //完成人数
              percent: 20,
            },
          ],
        },
      ],
      activeKey: ref("1"),
      value: ref(" "),
      checked2: false,
      currentPage: 1,
      tableDataTotal: 100,
      pageSize: 10,
      visiblene: false,
      sh: false,
      closeDeleteAll: false,
      curLevel: "",
      taskSyllabusActive: 0,
      //在线管理等页面传递参数
      showTimeText: "",
      //考试、测评页面传递参数
      showTestText: "",
      FSvisible: false, //面授学员
      AAvisible: false, //活动/直播考勤
      copyModal: false, //面授二维码弹窗
      closeCopy: false, //面授二维码关闭图标
      visible: false, //时间管理
      TMvisible: false, //考试管理
      FaceVisivle: false, //面授管理
      //关卡的数据
      level: [
        // {
        //   id: 1,
        //   lev: "关卡2",
        //   name: "中级产品经理",
        //   count: 3,
        //   online: 5,
        //   homework: 1,
        //   juan: 1,
        //   ballot: 1,
        //   test: 1,
        // },
        // {
        //   id: 2,
        //   lev: "关卡2",
        //   name: "初级产品经理",
        //   count: 3,
        //   online: 5,
        //   homework: 1,
        //   juan: 1,
        //   ballot: 1,
        //   test: 1,
        // },
      ],
      tableData: [
        {
          key: 1,
          name: "张三",
          com: "产研部",
          gang: "产品经理",
          cur: "关卡2",
          jin: "2/10",
          time: "2022-07-15 14:00",
        },
        {
          key: 2,
          name: "张三",
          com: "产研部",
          gang: "产品经理",
          cur: "关卡2",
          jin: "2/10",
          time: "2022-07-15 14:00",
        },
        {
          key: 3,
          name: "张三",
          com: "产研部",
          gang: "产品经理",
          cur: "关卡2",
          jin: "2/10",
          time: "2022-07-15 14:00",
        },
        {
          key: 4,
          name: "张三",
          com: "产研部",
          gang: "产品经理",
          cur: "关卡1",
          jin: "2/10",
          time: "2022-07-15 14:00",
        },
        {
          key: 5,
          name: "张三",
          com: "产研部",
          gang: "产品经理",
          cur: "关卡1",
          jin: "2/10",
          time: "2022-07-15 14:00",
        },
        {
          key: 6,
          name: "张三",
          com: "产研部",
          gang: "产品经理",
          cur: "关卡2",
          jin: "2/10",
          time: "2022-07-15 14:00",
        },
        {
          key: 7,
          name: "张三",
          com: "产研部",
          gang: "产品经理",
          cur: "关卡2",
          jin: "2/10",
          time: "2022-07-15 14:00",
        },
        {
          key: 8,
          name: "张三",
          com: "产研部",
          gang: "产品经理",
          cur: "关卡2",
          jin: "2/10",
          time: "2022-07-15 14:00",
        },
      ],
    });
    const selectProjectName = (value, index) => {
      console.log("value", value, index);
      if (value === "批量删除") {
        showDeleteALLModal();
      }
    };
    const selectProjectName2 = (value, index) => {
      console.log("value", value, index);
    };
    const selectProjectName3 = (value, index) => {
      console.log("value", value, index);
    };
    const selectProjectName4 = (value, index) => {
      console.log("value", value, index);
    };
    const tableDataFunc = () => {
      const columns = [
        {
          title: "姓名",
          dataIndex: "name",
          // width: "30%",
          key: "name",
          width: 110,
          align: "left",
          className: "classify",

          scopedSlots: { customRender: "action" }, //引入的插槽
          customRender: (text) => {
            // console.log(text.record.checked1);
            return (
              <div class="racona">
                <span> {text.record.name}</span>

                {/**
								<div class="img"></div>
                <a-checkbox class="ch" checked={text.record.checkedd}>
                  {text.record.lei}
                </a-checkbox>
*/}
              </div>
            );
          },
        },
        {
          title: "部门",
          dataIndex: "com",
          // width: "30%",
          key: "com",
          width: 110,
          align: "center",
          className: "h",
        },
        {
          title: "岗位",
          dataIndex: "gang",
          key: "gang",
          width: 110,
          align: "center",
          className: "h",
        },
        {
          title: "当前关卡",
          dataIndex: "cur",
          key: "cur",
          width: 110,
          align: "center",
          className: "h",
        },
        {
          title: "进度",
          dataIndex: "jin",
          key: "jin",
          width: 110,
          align: "center",
          className: "h",
        },
        {
          title: "开始时间",
          dataIndex: "time",
          key: "time",
          width: 120,
          align: "center",
          className: "h",
        },
        {
          title: "操作",
          className: "h",
          dataIndex: "opacation",
          key: "opacation",
          width: 140,
          align: "center",
          scopedSlots: { customRender: "action" }, //引入的插槽
          customRender: (text) => {
            return (
              <div class="opa">
                <div class="opacation">
                  <span
                    onClick={() => {
                      showCheckStu();
                    }}
                    style="color:#4EA6FF;margin-right:25px;cursor:pointer"
                  >
                    查看
                  </span>
                  <span
                    onClick={() => {
                      state.visible = true;
                      console.log(text.record.cur);
                    }}
                    style="color:#4EA6FF;margin-right:25px;cursor:pointer"
                  >
                    调整
                  </span>
                  <span style="color:#4EA6FF;cursor:pointer">删除</span>
                </div>
              </div>
            );
          },
        },
      ];
      return columns;
    };
    const onSelectChange = (selectedRowKeys) => {
      console.log("selectedRowKeys changed: ", selectedRowKeys);
      state.selectedRowKeys = selectedRowKeys;
    };
    const showDeleteALLModal = () => {
      state.deleteAll = true;
    };
    const closeDeleteALLModal = () => {
      state.deleteAll = false;
    };
    const showModal = () => {
      state.visible = true;
    };
    const closeChangeModal = () => {
      state.visible = false;
    };
    const showAddStu = () => {
      state.AddSvisible = true;
    };
    const showImpStu = () => {
      state.AddImpStuvisible = true;
    };
    const showCheckStu = () => {
      state.CheckStuvisible = true;
    };
    const showCopyModal = () => {
      state.copyModal = true;
    };
    const closeCopyModal = () => {
      state.copyModal = false;
    };
    //面授学员的弹窗
    const showFS = () => {
      state.FSvisible = true;
    };
    //活动考勤的抽屉
    const showAA = () => {
      state.AAvisible = true;
    };
    // 时间管理
    const showTime = (course, name) => {
      console.log("点击管理");
      state.visible = true;
      state.showTimeText = "【" + course + "】" + name;
      // console.log("state.showTimeText", state.showTimeText);
    };
    //考试管理的抽屉
    const showTest = (course, name) => {
      state.TMvisible = true;
      state.showTestText = "【" + course + "】" + name;
    };
    //新增
    const showFace = () => {
      //面授管理的抽屉
      // console.log("点击管理");
      state.FaceVisivle = true;
    };
    //作业管理的抽屉
    const showWork = () => {
      state.Wvisible = true;
    };
    return {
      ...toRefs(state),
      selectProjectName,
      selectProjectName2,
      selectProjectName3,
      selectProjectName4,
      showDeleteALLModal,
      closeDeleteALLModal,
      tableDataFunc,
      onSelectChange,
      showModal,
      closeChangeModal,
      showAddStu,
      showImpStu,
      showCheckStu,
      showFS,
      showAA,
      showCopyModal,
      closeCopyModal,
      showTime,
      showTest,
      showFace,
      showWork,
    };
  },
};
</script>
<style lang="scss">
.clearfix:before,
.clearfix:after {
  content: " ";
  display: block;
  clear: both;
}
.CopyModal {
  .ant-modal {
    width: 424px !important;
    height: 258px !important;
    .ant-modal-content {
      width: 424px !important;
      height: 258px !important;
      .ant-modal-body {
        width: 424px !important;
        height: 258px !important;
        padding: 0 !important;
        .delete {
          z-index: 999;
          width: 424px;
          height: 258px;
          background: #ffffff;
          box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
          border-radius: 4px;
          // position: absolute;
          // left: 50%;
          // top: 10%;
          // transform: translate(-50%, -50%);
          .del_header {
            position: absolute;
            width: calc(100%);
            height: 40px;
            background: linear-gradient(
              rgba(78, 166, 255, 0.2) 0%,
              rgba(78, 166, 255, 0) 100%
            );
          }
          .del_main {
            width: 100%;
            position: relative;
            .header {
              display: flex;
              align-items: center;
              padding-top: 20px;
              padding-left: 26px;
              font-size: 16px;
              .icon {
                width: 16px;
                height: 16px;
                margin-right: 10px;
                background-image: url(@/assets/images/coursewareManage/QR.png);
                background-size: 100% 100%;
              }
              .close_exit {
                position: absolute;
                right: 42px;
                cursor: pointer;
                width: 20px;
                height: 20px;
                background-image: url(@/assets/images/coursewareManage/close.png);
                background-size: 100% 100%;
              }
            }
            .body {
              width: 100%;
              margin: 34px auto 56px auto;
              display: flex;
              justify-content: center;
              align-items: center;
              flex-direction: column;
              // background-color: red;
              position: relative;
              .back {
                position: absolute;
                top: 30px;
                font-size: 12px;
                font-weight: 400;
                color: #666666;
              }
            }
            .del_btnbox {
              display: flex;
              margin: 30px auto;
              justify-content: center;
              .del_btn {
                width: 100px;
                height: 40px;
                background: rgba(64, 158, 255, 0);
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;

                flex-shrink: 0;
                cursor: pointer;
                .btnText {
                  font-size: 14px;
                  font-weight: 400;
                  line-height: 40px;
                }
              }
              .btn1 {
                border: 1px solid rgba(64, 158, 255, 1);
                color: #4ea6ff;
                margin-right: 14px;
              }
              .btn2 {
                background-color: #4ea6ff;
                color: #ffffff;
              }
            }
          }
        }
      }
    }
  }
}
.facemanageModal {
  .ant-modal {
    width: 532px !important;
    height: 428px !important;
    .ant-modal-content {
      width: 532px !important;
      height: 428px !important;
      .ant-modal-body {
        width: 532px !important;
        height: 428px !important;
        padding: 0 !important;
        .delete {
          z-index: 999;
          width: 532px;
          height: 428px;
          background: #ffffff;
          box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
          border-radius: 4px;
          // position: absolute;
          // left: 50%;
          // top: 10%;
          // transform: translate(-50%, -50%);
          .del_header {
            position: absolute;
            width: calc(100%);
            height: 68px;
            background: linear-gradient(
              rgba(78, 166, 255, 0.2) 0%,
              rgba(78, 166, 255, 0) 100%
            );
          }
          .del_main {
            width: 100%;
            position: relative;
            .header {
              display: flex;
              align-items: center;
              padding-top: 20px;
              padding-left: 26px;
              font-size: 16px;
              .icon {
                width: 16px;
                height: 16px;
                margin-right: 10px;
                background-image: url(@/assets/images/coursewareManage/QR.png);
                background-size: 100% 100%;
              }
              .close_exit {
                position: absolute;
                right: 42px;
                cursor: pointer;
                width: 20px;
                height: 20px;
                background-image: url(@/assets/images/coursewareManage/close.png);
                background-size: 100% 100%;
              }
            }
            .body {
              width: 100%;
              margin: 34px auto 56px auto;
              display: flex;
              justify-content: center;
              align-items: center;
              flex-direction: column;
              // background-color: red;
              position: relative;
              .back {
                position: absolute;
                top: 30px;
                font-size: 12px;
                font-weight: 400;
                color: #666666;
              }
            }
            .footerr {
              display: flex;
              justify-content: center;
              align-items: center;
              .onload {
                color: rgba(51, 51, 51, 1);
                font-size: 14px;
              }
              .onloadpx {
                width: 80px;
                height: 32px;
                border: 1px solid rgba(56, 125, 247, 1);
                border-radius: 4px;
                color: rgba(56, 125, 247, 1);
                margin-left: 20px;
                display: flex;
                justify-content: center;
                align-items: center;
                cursor: pointer;
              }
            }
          }
        }
      }
    }
  }
}
.changeModal {
  .ant-modal {
    width: 549px !important;
    height: 245px !important;
    .ant-modal-content {
      width: 549px !important;
      height: 245px !important;
      .ant-modal-body {
        padding: 0 !important;
        width: 549px !important;
        height: 245px !important;
        .con {
          // background-color: #bfa;
          width: 100%;
          height: 100%;

          .header {
            width: 100%;
            display: flex;
            height: 68px;
            position: relative;
            justify-content: center;

            background: linear-gradient(
              rgba(78, 166, 255, 0.2) 0%,
              rgba(78, 166, 255, 0) 100%
            );
            .inhe {
              width: 80%;
              height: 100%;
              display: flex;
              justify-content: space-between;
              align-items: center;
              .mod {
                left: 30px;
                top: 27px;
                position: absolute;
                width: 18px;
                height: 17px;
                background-image: url(../../assets/images/leveladd/mod.png);
              }
              .tz {
                color: #000000;
                font-weight: 400;
                font-size: 16px;
              }
              .mg {
                width: 20px;
                height: 20px;
                background-image: url(../../assets/images/basicinfo/close22.png);
                background-size: 100% 100%;
                cursor: pointer;
              }
            }
          }
          .mid {
            width: 100%;
            display: flex;
            height: 100%;
            justify-content: center;
            .inher {
              width: 80%;
              height: 100%;
              .cur {
                color: #6f6f6f;
                font-size: 14px;
              }
              .select {
                margin-top: 10px;
              }
              .btn {
                width: 100%;
                display: flex;
                justify-content: center;
                margin-top: 30px;
                .sameb {
                  width: 100px;
                  height: 40px;
                  font-size: 14px;

                  border-radius: 8px;
                }
                .btn1 {
                  color: #4ea6ff;
                  background: #ffffff;
                  border: 1px solid #4ea6ff;
                }
                .btn2 {
                  margin-left: 16px;
                  border: 0;
                  color: #ffffff;
                  background: #4ea6ff;
                }
              }
            }
          }
        }
      }
    }
  }
}

.addwrapper {
  width: 100%;
  height: 100%;
  // background-color: green;
  .addhead {
    width: 100%;
    height: 130px;
    // background-color: lightgreen;
    display: flex;
    align-items: center;
    position: relative;
    .leftimg {
      width: 151px;
      height: 100px;
      border: 10px solid #e7f2ff;
      border-radius: 8px;
      margin-left: 20px;
      .img {
        width: 100%;
        height: 100%;
      }
    }
    .imgfor {
      margin-left: 32px;
      .forz {
        color: #363636;
        font-size: 16px;
      }
      .fort {
        color: #878b92;
        font-size: 14px;
        margin-top: 20px;
      }
    }
    @media screen and (max-width: 1030px) {
      .imgfor {
        margin-left: 20px;
      }
    }
    .right {
      // width: 500px;
      height: 100%;
      // background-color: red;
      position: absolute;
      right: 0;
      display: flex;
      align-items: center;
      .img1 {
        width: 24px;
        height: 24px;
        margin-right: 50px;
      }
      .line {
        height: 65%;
        width: 1px;
        background-color: #e8effa;
        margin-right: 28px;
      }
      .img2 {
        width: 42px;
        height: 42px;
        margin-right: 22px;
      }
      .pub {
        color: #ffb64e;
        font-size: 14px;
        margin-top: 5px;
        margin-right: 30px;
        cursor: pointer;
      }
      .return {
        color: #4ea6ff;
        font-size: 14px;
        margin-top: 10px;
        margin-right: 60px;
      }
      .more {
        position: relative;
        margin-right: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        .moreArrow {
          width: 13px;
          height: 7px;
          display: inline-block;
          background-image: url("../../assets/images/navtop/down.png");
          background-size: 100%;
          margin: 2px;
          margin-left: 15px;
        }
        .moreItems {
          width: 110px;
          height: 80px;
          display: none;
          background: #ffffff;
          box-shadow: 2px 3px 9px 3px rgba(0, 0, 0, 0.05);
          // border-radius: 3px;
          border: 0px solid #dcdcdc;
          position: absolute;
          left: -48px;
          top: 30px;
          z-index: 100;
          cursor: pointer;
          .sammo {
            text-align: center;
            margin-top: 12px;
            cursor: pointer;
          }
          .sammo:hover {
            color: #4ea6ff;
          }
        }
        .moreItems:hover {
          display: block;
        }
      }
      @media screen and (max-width: 1240px) {
        .line {
          margin-right: 10px;
        }
        .img1 {
          margin-right: 15px;
        }
        .img2 {
          margin-right: 10px;
        }
        .return {
          margin-right: 10px;
        }
        .pub {
          margin-right: 10px;
        }
        .more {
          margin-right: 10px;
        }
      }
      .more:hover .moreArrow {
        background-image: url("../../assets/images/navtop/up.png");
      }
      .more:hover .moreItems {
        display: block;
      }
    }
  }
  .split {
    width: 100%;
    height: 20px;
    background-color: #edf0f5;
  }
  .bom {
    .tab {
      margin-top: 10px;
      // margin-left: 10px;
    }
    .ant-tabs > .ant-tabs-nav,
    .ant-tabs > div > .ant-tabs-nav {
      margin-left: 0px !important;
      padding-left: 32px !important;
    }
    .cont {
      display: flex;

      .pad {
        height: 100%;
        width: 40px;
        // background-color: red;
      }
      .sametab {
        // margin-left: 30px;
        // margin-right: 30px;
        margin-top: 30px;
        width: 100%;
        // background-color: green;
        .Lhead {
          display: flex;
          .btns {
            display: flex;
            margin-left: 20px;
            // flex-wrap: wrap;
            .btn {
              padding: 0px 26px 0px 26px;
              height: 38px;
              background: rgba(64, 158, 255, 0);
              border-radius: 8px;
              border: 1px solid rgba(64, 158, 255, 1);
              display: flex;
              align-items: center;
              justify-content: center;
              margin-right: 14px;
              flex-shrink: 0;
              cursor: pointer;
              .search {
                background-size: 100%;
              }
              .btnText {
                font-size: 14px;
                font-weight: 400;
                color: rgba(64, 158, 255, 1);
                line-height: 36px;
                margin-left: 5px;
              }
            }
            .btn1 {
              .search {
                width: 15px;
                height: 17px;
                background-image: url("../../assets/images/courseManage/search1.png");
              }
            }
            .btn2 {
              .search {
                width: 16px;
                height: 18px;
                background-image: url("../../assets/images/courseManage/reset1.png");
              }
            }
            .btn3 {
              margin-right: 0px;
              .search {
                width: 17px;
                height: 18px;
                background-image: url("../../assets/images/courseManage/add1.png");
              }
            }
            .btn1:hover {
              background: rgba(64, 158, 255, 1);
              .search {
                background-image: url("../../assets/images/courseManage/search0.png");
              }
              .btnText {
                color: #ffffff;
              }
            }
            .btn2:hover {
              background: rgba(64, 158, 255, 1);
              .search {
                background-image: url("../../assets/images/courseManage/reset0.png");
              }
              .btnText {
                color: #ffffff;
              }
            }
            .btn3:hover {
              background: rgba(64, 158, 255, 1);
              .search {
                background-image: url("../../assets/images/courseManage/add0.png");
              }
              .btnText {
                color: #ffffff;
              }
            }
          }
        }
        .Lbom {
          position: relative;
          margin-bottom: 20px;
          .item {
            width: 100%;
            height: 200px;
            // background-color: green;
            margin-top: 40px;
            border-radius: 8px;
            border: 1px solid #f0f4fe;
            .itemhead {
              height: 50px;
              width: 100%;
              background-color: #f0f4fe;
              display: flex;
              align-items: center;
              position: relative;
              .lev {
                margin-left: 27px;
                margin-right: 16px;
                line-height: 100%;
                color: #409eff;
                font-size: 16px;
              }
              .lin {
                width: 1px;
                height: 35%;
                background-color: #c7cbd2;
              }
              .nam {
                margin-left: 16px;
                color: #4f5156;
                line-height: 100%;
                font-size: 16px;
              }
              .count {
                position: absolute;
                line-height: 100%;
                color: #4f5156;
                font-size: 14px;
                right: 40px;
                span:nth-child(2) {
                  color: #63ca8c;
                }
              }
            }
            .itembomm {
              display: flex;
              align-items: center;
              height: 150px;
              .it {
                // margin-left: 110px;
                // margin-right: 110px;
                width: 13%;
                text-align: center;
                .on {
                  font-size: 30px;
                }
                .ittext {
                  color: #4f5156;
                  margin-top: 16px;
                  margin-left: -5px;
                }
              }
              .linee {
                background-color: #ecf2fb;
                width: 1px;
                height: 55%;
              }
              .itright {
                position: absolute;
                right: 45px;
                display: flex;
                .te {
                  color: #4ea6ff;
                  font-size: 14px;
                  cursor: pointer;
                }
                .more {
                  position: relative;
                  height: 30px;
                  display: flex;
                  .moreArrow {
                    width: 13px;
                    height: 7px;
                    display: inline-block;
                    background-image: url("../../assets/images/navtop/down.png");
                    background-size: 100%;
                    margin: 2px;
                    margin-left: 7px;
                    margin-top: 6px;
                  }
                  .moreItems {
                    width: 80px;
                    height: 70px;
                    display: none;
                    background: #ffffff;
                    box-shadow: 2px 3px 9px 3px rgba(0, 0, 0, 0.05);
                    border-radius: 3px;
                    border: 0px solid #dcdcdc;
                    position: absolute;
                    left: 0px;
                    top: 20px;
                    z-index: 100;
                    .roleItem {
                      font-size: 14px;
                      font-weight: 400;
                      color: rgba(79, 81, 86, 1);
                      line-height: 36px;
                      display: flex;
                      justify-content: center;
                      cursor: pointer;
                    }
                    .roleItem:hover {
                      color: #4ea6ff;
                    }
                  }
                }
                .more:hover .moreArrow {
                  background-image: url("../../assets/images/navtop/up.png");
                }
                .more:hover .moreItems {
                  display: block;
                }
              }
            }

            .show {
              color: blue;
            }
            .noshow {
              display: none;
            }
          }
          .create {
            margin-top: 40px;
            .taskbox {
              width: 412px;
              height: 160px;
              border-radius: 10px;
              position: relative;
              // margin-left: 68px;
              margin-bottom: 40px;
              cursor: pointer;
              .leftt {
                position: absolute;
                top: 18px;
                left: 0;
              }
              .photo {
                position: absolute;
                top: 42px;
                left: 37px;
              }
              .rightt {
                position: absolute;
                top: 69px;
                right: 26px;
              }
              .centerbox {
                position: absolute;
                top: 52px;
                left: 145px;
                font-size: 20px;
                font-weight: 700;
                //line-height: 36px;
              }
              .centermain {
                color: rgba(135, 139, 146, 1);
                font-size: 14px;
                position: absolute;
                left: 144px;
                bottom: 49px;
              }
            }
          }
        }
      }
    }

    .onerow {
      //width: 100%;
      display: flex;
      height: 40px;
      position: relative;
      margin-top: 15px;
      margin-left: 38px;
      //margin-right: 38px;
      .taskmain {
        font-size: 18px;
        padding-top: 7px;
        color: #000000;
      }
      .btn {
        position: absolute;
        top: 0;
        right: 168px;
        background-color: #409eff;
        width: 130px;
        height: 40px;
        border-radius: 8px;
        border: 1px solid #409eff;
        color: #ffffff;
        cursor: pointer;
      }
      .edit {
        position: absolute;
        right: 38px;
        top: 0;
        color: #409eff;
        width: 100px;
        height: 40px;
        border: 1px solid #409eff;
        border-radius: 8px;
        .editimg {
          width: 15px;
          height: 15px;
          margin-top: -2px;
          margin-left: 25px;
          margin-right: 5px;
        }
        .editext {
          line-height: 40px;
        }
      }
      .edit:hover {
        color: #ffffff;
        background-color: #409eff;
        cursor: pointer;
        .editimg {
          background-image: url("../../assets/images/projectadd/edit1.png");
        }
      }
    }
    .taskSyllabus {
      // flex: 1;
      overflow-x: auto;

      .ant-collapse {
        border: 0px;
        background-color: rgba(255, 255, 255, 0);
        min-width: 1040px;
      }

      .ant-collapse-content > .ant-collapse-content-box {
        padding-top: 0px;
        padding-bottom: 0px;
      }
      .ant-collapse > .ant-collapse-item {
        border: 0px;
      }
      .ant-collapse-header {
        display: flex;
        height: 49px;
        background-color: #eff4fc;
        align-items: center;
        margin-top: 20px;
        margin-left: 38px;
        margin-right: 40px;
        font-size: 16px;
        font-weight: 400;
        color: #409eff;
        line-height: 36px;
        .ant-collapse-arrow {
          margin-left: 15px !important;
        }
      }
      .ant-collapse-content {
        border-top: 0px;
      }
    }
    .course {
      //width: 100%;
      flex-shrink: 0;
      margin-right: 24px;

      display: flex;
      flex-wrap: wrap;
      align-items: center;
      padding: 25px 0px;
      margin-left: 22px;

      //margin: 0 12px;
      border: 1px solid #f2f6fc;
      border-top: 0px;
      .first {
        //position: relative;
        display: flex;
        flex-grow: 1;
        align-items: center;
        //height: 71px;
        margin-left: 12px;
        margin-right: 50px;

        .iconame {
          //position: absolute;
          color: #4f5156;
          font-size: 16px;
          margin-left: 4px;
        }
        .icontext {
          //positipn: absolute;
          color: #999ba3;
          font-size: 14px;
          margin-left: 12px;
          width: 83px;
        }
      }
      .type {
        //height: 71px;
        display: flex;
        flex-grow: 1;
        align-items: center;
        margin-right: 50px;
        .typename {
          width: 63px;
          height: 23px;
          color: #5dc988;
          font-size: 14px;
          background-color: #f2f6fc;
          border-radius: 4px;
          text-align: center;
        }
        .typename1 {
          width: 63px;
          height: 23px;
          color: #f0f4fe;
          font-size: 14px;
          background-color: #5dc988;
          border-radius: 4px;
          text-align: center;
        }
      }
      .time {
        //height: 71px;
        flex-grow: 1;
        margin-right: 50px;
        .timetext {
          font-size: 14px;
          color: #999ba3;
        }
      }
      .progress {
        width: 168px;
        margin-left: 10px;
        margin-right: 50px;
        flex-grow: 1;
        .progresstext {
          color: #ffc067;
          font-size: 14px;
        }
      }
      .operations {
        display: flex;
        width: 200px;
        //flex-grow: 1;
        .operation {
          color: #4ea6ff;
          font-size: 14px;
          padding: 10px;
          margin-left: auto;
        }
      }
    }

    .xwid {
      // width: 100%;
      // height: 100%;
      // background-color: #bfa;
      position: relative;
      margin-top: 30px;
      display: flex;
      margin-bottom: 20px;
      // overflow-x: auto;
      .pad {
        height: 100%;
        width: 40px;
        flex-shrink: 0;
      }
      .xin {
        width: 100%;
        .xhead {
          display: flex;
          .btns {
            display: flex;
            margin-left: 20px;
            // flex-wrap: wrap;
            .btn {
              padding: 0px 26px 0px 26px;
              height: 38px;
              background: rgba(64, 158, 255, 0);
              border-radius: 8px;
              border: 1px solid rgba(64, 158, 255, 1);
              display: flex;
              align-items: center;
              justify-content: center;
              margin-right: 14px;
              flex-shrink: 0;
              cursor: pointer;
              .search {
                background-size: 100%;
              }
              .btnText {
                font-size: 14px;
                font-weight: 400;
                color: rgba(64, 158, 255, 1);
                line-height: 36px;
                margin-left: 5px;
              }
            }
            .btn1 {
              .search {
                width: 15px;
                height: 17px;
                background-image: url("../../assets/images/courseManage/search1.png");
              }
            }
            .btn2 {
              .search {
                width: 16px;
                height: 18px;
                background-image: url("../../assets/images/courseManage/reset1.png");
              }
            }
            .btn3 {
              margin-right: 0px;
              .search {
                width: 17px;
                height: 18px;
                background-image: url("../../assets/images/courseManage/add1.png");
              }
            }
            .btn1:hover {
              background: rgba(64, 158, 255, 1);
              .search {
                background-image: url("../../assets/images/courseManage/search0.png");
              }
              .btnText {
                color: #ffffff;
              }
            }
            .btn2:hover {
              background: rgba(64, 158, 255, 1);
              .search {
                background-image: url("../../assets/images/courseManage/reset0.png");
              }
              .btnText {
                color: #ffffff;
              }
            }
            .btn3:hover {
              background: rgba(64, 158, 255, 1);
              .search {
                background-image: url("../../assets/images/courseManage/add0.png");
              }
              .btnText {
                color: #ffffff;
              }
            }
          }
        }
        .xheadb {
          display: flex;
          margin-top: 30px;
          .addx {
            width: 130px;
            height: 40px;
            background: #4ea6ff;
            border-radius: 8px;
            color: #fff;
            border: 0;
            cursor: pointer;
            margin-right: 20px;
          }
          .addd {
            width: 130px;
            height: 40px;
            background: #fff;
            border-radius: 8px;
            border: 1px solid #4ea6ff;
            color: #4ea6ff;
            cursor: pointer;
            margin-right: 20px;
          }
          .select {
            .ant-select {
              //
              // border: 0 !important;
              border-radius: 11px;
              .ant-select-selector {
                border: 1px solid #4ea6ff !important;
                .ant-select-selection-placeholder {
                  padding-left: 15px;
                  color: #4ea6ff;
                }
              }
            }
          }
        }
        .talk {
          margin-top: 24px;
          margin-bottom: 11px;
          width: 100%;
          height: 50px;
          background: #f5faff;
          border: 1px solid #4ea6ff;
          // opacity: 0.22;
          display: flex;
          align-items: center;
          .im {
            width: 14px;
            height: 15px;
            margin-left: 27px;
            margin-top: -3px;
          }
          .xu {
            height: 100%;
            line-height: 50px;
            margin-left: 13px;
            .yi {
              color: #4f5156;
              font-size: 14px;
            }
            .zon {
              color: #999ba3;
              font-size: 14px;
              margin-left: 34px;
            }
            .th {
              color: #4ea6ff;
            }
          }
        }
        .tableBox {
          margin-bottom: 80px;

          .classify {
            margin-left: 11px !important;
            padding-left: 9px !important;
          }
          .ant-checkbox-wrapper {
            align-items: center;
            margin-top: -2px;
          }
          .ant-table-selection-column {
            padding: 0px !important;
            padding-left: 38px !important;
          }
          .ant-table-thead > tr > th {
            background-color: rgba(239, 244, 252, 1);
          }
          th.h {
            background-color: #eff4fc !important;
          }

          .ant-table-tbody
            > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
            > td {
            background: #f6f9fd;
          }
          .pa {
            left: 0;
            width: 100%;
            // height: 20px;
            // background-color: red;
            display: flex;
            justify-content: center;
            position: absolute;
            bottom: 0px;
          }
        }
      }
    }
    .Gcon {
      display: flex;
      .pad {
        height: 100%;
        width: 40px;
      }
      .Gin {
        // background-color: #bfa;
        margin-top: 30px;
        .headone {
          // background-color: red;
          display: flex;
          text-align: center;
          .box {
            width: 4px;
            height: 20px;
            background-color: #4ea6ff;
            border-radius: 2px;
          }
          .onetitle {
            margin-left: 15px;
            color: #333333;
            font-size: 14px;
          }
          .oneedi {
            margin-left: 15px;
            color: #4ea6ff;
            cursor: pointer;
          }
        }
        .onemain {
          margin-top: 20px;
          margin-left: 55px;
          color: #6f6f6f;
          font-size: 14px;
          .checkcon {
            position: relative;
            .in {
              position: absolute;
              // margin-top: 10px;
              left: 0;
              top: 3px;
            }
            .yulan {
              // color: yellow;
              margin-left: 22px;
              // display: inline-block;
            }
            .yulan2 {
              margin-left: 22px;
            }
          }
        }
        .twomain {
          margin-left: 20px;
          margin-top: 20px;
          .ant-switch-checked {
            background-color: #5dc988;
          }
          .info {
            margin-left: 10px;
            color: #6f6f6f;
            font-size: 14px;
            // margin-top: 10px;
          }
          .infor {
            margin-left: 38px;
            margin-top: 10px;
            color: #c7cbd2;
            font-size: 14px;
          }
          .chooseshow {
            // background-color: red;
            margin-left: 38px;
            margin-top: 12px;
            .fane {
              color: #6f6f6f;
              font-size: 14px;
            }
          }
          .choo {
            display: none;
          }
          .btm {
            margin-left: 38px;
            margin-top: 20px;
            .bmo {
              color: #6f6f6f;
              font-size: 14px;
            }
            .bmt {
              color: #c7cbd2;
              font-size: 14px;
              margin-top: 3px;
            }
            .chosecon {
              display: flex;
              margin-top: 6px;
              margin-bottom: 20px;
              .chose {
                position: relative;
                .inl {
                  position: absolute;
                  top: 2px;
                }
                .sh {
                  margin-left: 23px;
                  color: #6f6f6f;
                }
              }
            }
          }
        }
      }
    }
  }
}
</style>
