<template>
  <div class="content-box">
    <div class="left">
      <!-- <el-icon :size="23" class="camera"><VideoCameraFilled /></el-icon> -->
      <span class="cameratxt">流程管理/我发起的</span>
    </div>
    <div class="scroll">
      <div class="middle">
        <div class="filter">
          <div class="condition">
            <span>状态 : </span>
            <el-select
              :clearable="true"
              v-model="searchInput.status"
              @change="getList"
              class="m-2"
              placeholder="请选择状态"
            >
              <el-option label="正在审批" :value="1" />
              <el-option label="审批通过" :value="2" />
              <el-option label="拒绝" :value="3" />
            </el-select>
          </div>
          <!-- <div class="condition">
                        <span>支付时间 : </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 style="margin-left: 20px" color="rgba(9, 101, 98, 1)" type="primary" class="search"
                        @click="searchBtn"><el-icon>
                            <Search />
                        </el-icon> <span>查询</span></el-button>
                    <el-button style="margin-left: 20px" color="rgba(9, 101, 98, 1)" type="primary" class="search"
                        @click="importExcel"><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
            width="100"
            align="center "
            type="index"
            label="序号"
          />
          <el-table-column align="center" prop="orderNum" label="流程">
            <template #default="{ row }">
              <div
                v-if="row.type == 1"
                style="color: rgba(9, 101, 98, 1); cursor: pointer"
                @click="roomFlowInfo(row)"
              >
                民宿信息
              </div>
              <div
                v-if="row.type == 2"
                style="color: rgba(9, 101, 98, 1); cursor: pointer"
                @click="roomFlowInfo(row)"
              >
                投诉
              </div>
            </template>
          </el-table-column>

          <el-table-column align="center" prop="createName" label="发起人" />
          <el-table-column align="center" prop="createDate" label="发起时间" />
          <el-table-column align="center" prop="workflowName" label="审批人" />
          <el-table-column
            align="center"
            prop="workflowDate"
            label="审批时间"
          />

          <el-table-column align="center" prop="payTime" label="状态">
            <template #default="{ row }">
              <div v-if="row.status == 1" style="color: rgba(255, 87, 51, 1)">
                正在审批
              </div>
              <div v-if="row.status == 2" style="color: rgba(9, 101, 98, 1)">
                审批通过
              </div>
              <div v-if="row.status == 3" style="color: rgba(212, 48, 48, 1)">
                拒绝
              </div>
            </template>
          </el-table-column>

          <!-- <el-table-column
              align="center"
              fixed="right"
              label="操作"
              width="150"
            >
              <template #default="scope">
                <div class="edit">
                  <div class="look" @click="edit(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="look">删除</div>
                    </template>
                  </el-popconfirm>
                </div>
              </template>
            </el-table-column> -->
        </el-table>
      </div>

      <!-- 分页组件 -->
      <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>
    <!-- 信息维护弹窗 -->
    <el-dialog
      class="addStaff"
      v-model="addDialogVisible"
      :close-on-click-modal="false"
      :close-on-press-escape="false"
      title="详情"
      align-center
      width="900"
      :before-close="cancelInfo"
    >
      <div class="slider">
        <el-form
          ref="ruleFormRef"
          :model="ruleForm"
          :rules="rules"
          label-width="100px"
          class="demo-ruleForm"
          size="default"
          label-position="left"
          status-icon
          :inline="true"
        >
          <div class="titles"><span>基础信息</span></div>
          <div class="form_item tag">
            <div class="items">
              <el-form-item label="名宿图片 :" prop="coverImg">
                <div class="tooltips">
                  <div class="img img1">
                    <div class="img_title">
                      <span>封面图:</span>
                    </div>
                    <div class="updateImg">
                      <img :src="img1" alt="" />
                      <div class="lookImgs" @click="lookImg(1)" v-if="img1">
                        <img src="@/assets/lookImg.png" alt="" />
                      </div>
                      <!-- <el-upload class="avatar-uploader" action="" list-type="picture"
                                                :on-preview="handlePreview" :on-remove="handleRemove"
                                                :on-change="handleChange" :http-request="handleUpload"
                                                :before-upload="beforeAvatarUpload">
                                                <template #trigger>
                                                    <el-button type="primary" color="rgba(9, 101, 98, 1)"
                                                        @click="updateImg">上传图片</el-button>
                                                </template>
                                                <template #tip>
                                                    <div class="el-upload__tip">
                                                        （注：图片大小不超过10M，建议按3:2比例）
                                                    </div>
                                                </template>
                                            </el-upload> -->
                    </div>
                  </div>
                  <div class="img img2">
                    <div class="img_title">
                      <span>详情图:</span>
                    </div>
                    <div class="updateImg">
                      <div class="carousel">
                        <div class="pre" @click="infoImgClick2('left')">
                          <img src="@/assets/left.png" alt="" />
                        </div>
                        <el-carousel
                          ref="infoImg2"
                          indicator-position="none"
                          arrow="always"
                          :autoplay="false"
                          @change="switchImg2"
                          :initial-index="switchImgInd2"
                        >
                          <el-carousel-item
                            v-for="item in fileList.list"
                            :key="item.id"
                          >
                            <img :src="item.url" alt="" />
                          </el-carousel-item>
                        </el-carousel>
                        <div class="pre" @click="infoImgClick2('right')">
                          <img src="@/assets/right.png" alt="" />
                        </div>
                        <span class="numImg">{{
                          switchImgInd2 + 1 + "/" + fileList.list.length
                        }}</span>
                        <div class="lookImg" v-if="fileList.list.length">
                          <img
                            src="@/assets/lookImg.png"
                            alt=""
                            @click="lookImg(2)"
                          />
                          <!-- <div class="delimg" @click="delImgList(item)"></div> -->
                        </div>
                      </div>
                      <!-- <el-upload class="avatar-uploader" action="" :on-preview="handlePreview2"
                                                :on-remove="handleRemove2" :on-change="handleChange2"
                                                :http-request="handleUpload2" :before-upload="beforeAvatarUpload2">
                                                <template #trigger>
                                                    <el-button type="primary" color="rgba(9, 101, 98, 1)">上传图片</el-button>
                                                </template>
                                                <template #tip>
                                                    <div class="el-upload__tip">
                                                        （注：图片大小不超过10M，建议按16:9比例）
                                                    </div>
                                                </template>
                                            </el-upload> -->
                    </div>
                  </div>
                </div>
              </el-form-item>
            </div>
          </div>
          <div class="form_item">
            <div class="items intro">
              <el-form-item label="简介 :" prop="remark">
                <span>{{ ruleForm.remark }}</span>
              </el-form-item>
            </div>
          </div>
          <div class="form_item tag">
            <div class="items">
              <el-form-item label="状态 :">
                <span
                  style="color: rgba(255, 87, 51, 1)"
                  v-if="ruleForm.status == 1"
                  >正在审批</span
                >
                <span
                  style="color: rgba(9, 101, 98, 1)"
                  v-if="ruleForm.status == 2"
                  >审批通过</span
                >
                <span
                  style="color: rgba(212, 48, 48, 1)"
                  v-if="ruleForm.status == 3"
                  >拒绝</span
                >
              </el-form-item>
            </div>
          </div>
          <div class="form_item tag">
            <div class="items">
              <el-form-item label="备注 :">
                <span>{{ ruleForm.workflowRemark }}</span>
              </el-form-item>
            </div>
          </div>
          <!-- <el-form-item class="options">
              <el-button color="rgba(9, 101, 98, 1)" class="queding" type="primary" @click="submitAdd(ruleFormRef)">
                保存
              </el-button>
              <el-button @click="cancelAdd(ruleFormRef)">取消</el-button>
            </el-form-item> -->
        </el-form>
      </div>
    </el-dialog>
    <!-- 查看图片 -->
    <div class="bgImg" v-if="bgImg">
      <el-carousel
        @click="bgImg = false"
        ref="bgImgs"
        indicator-position
        arrow="always"
        :autoplay="false"
        @change="switchBgImg"
        trigger
        :initial-index="switchImgInd2"
      >
        <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,
  nextTick,
  watch,
  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, { reduce } 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: "111233342",
    //   userName2: "张三",
    //   userPhone: "1121311",
    //   teamName: 12,
    //   schoolName: 1200,
    //   workTypeName: "2023-08-01 12:09:08",
    // },
    // {
    //   userName: "111233342",
    //   userName2: "张三",
    //   userPhone: "1121311",
    //   teamName: 12,
    //   schoolName: 1200,
    //   workTypeName: "2023-08-01 12:09:08",
    // },
    // {
    //   userName: "111233342",
    //   userName2: "张三",
    //   userPhone: "1121311",
    //   teamName: 12,
    //   schoolName: 1200,
    //   workTypeName: "2023-08-01 12:09:08",
    // },
    // {
    //   userName: "111233342",
    //   userName2: "张三",
    //   userPhone: "1121311",
    //   teamName: 12,
    //   schoolName: 1200,
    //   workTypeName: "2023-08-01 12:09:08",
    // },
    // {
    //   userName: "111233342",
    //   userName2: "张三",
    //   userPhone: "1121311",
    //   teamName: 12,
    //   schoolName: 1200,
    //   workTypeName: "2023-08-01 12:09:08",
    // },
  ],
});

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

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

// 详情弹窗
const addDialogVisible = ref(false); // 控制添加员工弹窗
const img1 = ref();
const infoImg2 = ref();
const switchImgInd2 = ref(0);
const fileList = reactive({
  list: [],
}); // 轮播图
const ruleForm = reactive({
  remark: "",
  status: "",
  workflowRemark: "",
  id: "",
}); //

// 点击查看图片
const bgImgs = ref();
const bgImg = ref(false);
const bgImgList = ref([]);

// 添加员工表单数据
const formSize = ref("default");
const ruleFormRef = ref();
const articleIdsRef = ref(); // 关联报修类型ref
const buildIdsRef = ref(); // 关联楼栋ref

// 表单验证
const rules = reactive({
  // serial: [{ required: true, message: "序列号不能为空", trigger: "blur" }],
  userName: [{ required: true, message: "姓名不能为空", trigger: "blur" }],
  cardNumber: [
    { required: true, message: "微校卡号不能为空", trigger: "blur" },
  ],
  userzzId: [{ required: true, message: "身份不能为空", trigger: "blur" }],
  userPhone: [{ required: true, message: "手机号码不能为空", trigger: "blur" }],
  schoolId: [{ required: true, message: "校区不能为空", trigger: "blur" }],
  workType: [{ required: true, message: "工种不能为空", trigger: "blur" }],
  teamId: [{ required: true, message: "维修班不能为空", trigger: "blur" }],
  articleIds: [
    { required: true, message: "关联报修类型不能为空", trigger: "blur" },
  ],
  buildIds: [{ required: true, message: "关联楼栋不能为空", trigger: "blur" }],
  acceptanceTime: [
    { required: true, message: "接单考核时间不能为空", trigger: "blur" },
  ],
  maintenanceTime: [
    { required: true, message: "维修考核时间不能为空", trigger: "blur" },
  ],
});

// watch(
//     () => searchInput.createTime,
//     (newVal, oldVal) => {
//         console.log("监听时间:", newVal);
//         if (newVal == null) {
//             getList();
//         }
//     }
// );

// 查看员工列表
const getList = async () => {
  loading.value = true;
  let data = {
    page: currentPage.value,
    rows: pageSize.value,
    status: searchInput.status, // 关键字查询
    id: sessionStorage.getItem("roomId"),
  };
  let res = await axios({
    method: "get",
    url: api.value + "/mhotel/workflowhotelWorkflowList.action",
    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.pageList;
    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 roomFlowInfo = async (row) => {
  addDialogVisible.value = true;
  let data = {
    id: row.id,
  };
  let res = await axios({
    method: "get",
    url: api.value + "/mhotel/workflowqueryById.action",
    headers: {
      // token: sessionStorage.getItem("token"),
      // user_head: sessionStorage.getItem("userhead"),
    },
    params: data,
  });
  console.log(res, "流程详情");
  if (res.data.code == 200) {
    img1.value = res.data.data.coverImg;
    fileList.list = res.data.data.fileInfoList;
    ruleForm.remark = res.data.data.remark;
    ruleForm.status = res.data.data.status;
    ruleForm.workflowRemark = res.data.data.workflowRemark;
  }
};
const cancelInfo = () => {
  addDialogVisible.value = false;
  switchImgInd2.value = 0;
};
// 得到当前幻灯片的索引
const switchImg2 = (val) => {
  //   console.log(val);
  switchImgInd2.value = val;
};
// 左右切换走马灯
const infoImgClick2 = (val) => {
  if (val == "right") {
    //点击右按钮切换至下一页走马灯
    infoImg2.value.next();
  } else {
    //点击左按钮切换至上一页走马灯
    infoImg2.value.prev();
  }
};
// 查看图片
const lookImg = (flag) => {
  bgImg.value = true;
  if (flag == 1) {
    let arr = [
      {
        url: img1.value,
        id: img1.value,
      },
    ];
    bgImgList.value = arr;
  } else if (flag == 2) {
    // console.log(imgList2.value);
    // let arr = [];
    // imgList2.value.forEach((item) => {
    //     arr.push({
    //         url: item.url,
    //         id: item.id,
    //     });
    // });
    bgImgList.value = fileList.list;
  }
};
const switchBgImg = (val) => {
  console.log(val);
  switchImgInd2.value = val;
  infoImg2.value.setActiveItem(val);
};
// 搜索功能
const searchBtn = lodash.debounce(async () => {
  getList();
}, 300);

// 多选框功能
const handleSelectionChange = (val) => {
  console.log(val);
  selectData.list = val;
};
//导出功能
const importExcel = lodash.debounce(async () => {
  let data = {
    ledgerParam: searchInput.keyWord, // 关键字查询
    managerId: sessionStorage.getItem("token"),
  };
  if (searchInput.createTime) {
    data.payStartTime = searchInput.createTime[0];
    data.payEndTime = searchInput.createTime[1];
  }
  let res = await axios({
    method: "post",
    url: api.value + "/mhotel/booktoLedgerExcel.action",
    headers: {
      // token: sessionStorage.getItem("token"),
    },
    params: data,
  });
  console.log(res, "导出台账管理");
  if (res.data.code == 200) {
    var downloadPath = res.data.downurl;
    // window.open(downloadPath);
    window.location.href = 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,
    });
  }
}, 1000);

// 表格斑马纹颜色修改
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();
  // let arr = ['a', 'a', 'a', 'b', 'b', 'c', 'c', 'd', 'e']
  let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
  // let s = arr.reduce((prev, cur) => {
  //     // console.log(prev, cur);
  //     if (prev.indexOf(cur) == -1) {
  //         prev.push(cur)
  //     }
  //     return prev
  // }, [])
  // let s = arr.reduce((prev, cur) => {
  //     if (cur in prev) {
  //         prev[cur]++
  //     } else {
  //         prev[cur] = 1
  //     }
  //     return prev
  // }, {})
  let s = arr.reduce((prev, cur) => {
    return prev * cur;
  }, 1);
  console.log(s);
});
onUnmounted(() => {
  // document.removeEventListener("keyup", Enters);
});
</script>

<style scoped lang="scss">
.content-box {
  min-width: 1000px;
  width: calc(100vw - 240px);
  height: calc(100vh - 105px);
  margin: 20px auto;
  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;
    height: 60px;
    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;
      cursor: pointer;
    }

    .is_active {
      color: rgba(111, 182, 184, 1);
    }
  }

  .middle {
    width: 96%;
    margin: 0 auto;

    color: #000;

    // border-bottom: 1px solid rgb(231, 231, 231);
    .filter {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      margin: 15px 0 15px 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;
      }
    }

    :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;
    }
  }
  .scroll {
    height: calc(100% - 61px);
    overflow: auto;
  }

  .footer {
    width: 96%;
    // height: 550px;
    margin: 10px auto 30px;

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

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

        tr {
          color: #000;
        }
      }

      :deep(.el-table__row) {
        height: 50px;
        font-size: 15px;
        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;
      }

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

    // 添加员工弹窗样式
    :deep(.addStaff) {
      //   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-input {
          width: 200px;
        }

        // 关联报修类型样式（-----------------）
        // .checkbox {
        //   .el-form-item__content {
        //     display: flex;
        //     flex-direction: column;
        //     align-items: flex-start;
        //     .el-checkbox-group {
        //       display: flex;
        //       flex-direction: column;
        //     }
        //   }
        // }

        .options {
          .el-form-item__content {
            .queding {
              margin-left: 20px;
              color: #fff;
            }

            display: flex;
            flex-direction: row-reverse;
          }
        }
      }
    }
  }

  .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(111, 182, 184, 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;
      }
    }
  }

  // 流程详情弹窗样式
  :deep(.addStaff) {
    height: 800px;
    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: 10px 30px 10px 35px;

      .slider {
        height: 720px;
        overflow: auto;
      }

      .tooltips {
        display: flex;

        .img {
          display: flex;

          .img_title {
            span {
              display: inline-block;
              width: 60px;
            }
          }

          .updateImg {
            display: flex;
            flex-direction: column;
            //   align-items: center;
            width: 300px;

            .el-button {
              margin-top: 10px;
            }

            .lookImgs {
              width: 183px;
              height: 121px;
              cursor: pointer;
              position: absolute;
              top: 0;
              left: 60px;
              border-radius: 10px;
              display: flex;
              justify-content: center;
              align-items: center;

              img {
                width: 30px;
                height: 30px;
                opacity: 0;
              }
            }

            .lookImgs:hover {
              background-color: rgba(0, 0, 0, 0.2);

              img {
                opacity: 1;
              }
            }
          }
        }
      }

      .img1 {
        img {
          width: 183px;
          height: 121px;
          opacity: 1;
          border-radius: 10px;
        }

        .updateImg {
          .el-upload {
            margin-left: 45px;
          }

          .el-upload__tip {
            color: rgba(212, 48, 48, 1);
            transform: translateX(-30px);
          }

          .el-upload-list {
            display: none;
          }
        }
      }

      .img2 {
        position: relative;

        .carousel {
          height: 120px;
          display: flex;
          align-items: center;

          .pre {
            img {
              width: 30px;
              cursor: pointer;
            }
          }

          .numImg {
            position: relative;
            color: #fff;
            right: 70px;
            bottom: -40px;
          }

          .el-carousel {
            width: 213px;
            height: 120px;

            img {
              width: 213px;
              height: 120px;
            }

            .el-carousel__container {
              border: 1px solid #ccc;
              height: 120px !important;
              box-sizing: border-box;

              .el-carousel__arrow {
                display: none;
              }
            }
          }

          .lookImg {
            width: 213px;
            height: 120px;
            position: absolute;
            z-index: 99;
            top: 0;
            left: 90px;
            display: flex;
            justify-content: center;
            align-items: center;

            img {
              width: 30px;
              height: 30px;
              opacity: 0;
            }

            .delimg {
              width: 30px;
              height: 30px;
              background-image: url("@/assets/imgDel.png");
              background-size: 100%;
              opacity: 0;
              margin-left: 5px;
            }
          }

          .lookImg:hover {
            background-color: rgba(0, 0, 0, 0.2);

            img {
              opacity: 1;
              cursor: pointer;
            }

            .delimg {
              opacity: 1;
              cursor: pointer;
            }
          }
        }

        .updateImg {
          .el-upload {
            margin-left: 90px;
          }

          .el-upload__tip {
            margin-left: 20px;
            color: rgba(212, 48, 48, 1);
          }

          // 录播图显示文件
          .el-upload-list {
            display: none;
          }
        }
      }

      .el-input {
        width: 200px;
      }

      .el-form {
        .titles {
          font-weight: 600;
          color: #000;
          font-size: 18px;
          margin: 10px 0 20px 0;

          span:nth-child(2) {
            color: rgba(212, 48, 48, 1);
          }
        }

        .footer {
          color: rgba(212, 48, 48, 1);
        }

        .form_item {
          display: flex;
          color: #000;

          .intro {
            .el-form-item__content {
              // width: 550px;
            }
          }

          .default {
            .el-form-item__label {
              width: 160px !important;
            }
          }
        }

        .tag {
          .el-form-item__content {
            // width: 200px;
          }
        }

        .nowDay {
          margin-bottom: 18px;

          .el-form-item__label {
            width: 76px !important;
          }

          .el-form-item {
            margin: 0 10px 0 0;
          }

          .now {
            width: 332px;
          }
        }
      }

      .options {
        width: 100%;
        margin: 25px 0 15px 0;

        .el-form-item__content {
          .queding {
            margin-left: 20px;
            color: #fff;
          }

          display: flex;
          flex-direction: row-reverse;
        }
      }
    }
  }

  .bgImg {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 99999999;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);

    // border-radius: 50px;
    :deep(.el-carousel__container) {
      width: 100%;
      height: calc(100vh);

      .el-carousel__item {
        display: flex;
        justify-content: center;

        img {
          height: 100%;
        }
      }
    }
  }
}

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