<template>
  <div class="content-box">
    <div class="left">
      <!-- <el-icon :size="23" class="camera"><UserFilled /></el-icon> -->
      <div class="cameratxt">交通卡明细</div>
    </div>
    <div class="middle">
      <div class="filter">
        <div class="condition">
          <span>订单号 : </span>
          <el-input
            clearable
            v-model="searchInput.orderNum"
            class="w-50 m-2"
            placeholder="请输入订单号"
            style="width: 200px"
          />
        </div>
        <div class="condition">
          <span>交通卡类型 : </span>
          <el-select
            v-model="searchInput.type"
            class="m-2"
            placeholder="请选择交通卡类型"
            style="width: 200px"
          >
            <el-option label="优行卡" :value="0" />
            <el-option label="教师卡" :value="1" />
            <el-option label="暖心卡" :value="2" />
          </el-select>
        </div>
        <div class="condition">
          <span>消费类型 : </span>
          <el-select
            v-model="searchInput.consumeType"
            class="m-2"
            placeholder="请选择消费类型"
            style="width: 200px"
          >
            <el-option label="充值" :value="1" />
            <el-option label="消费" :value="2" />
            <!-- <el-option label="补贴" :value="3" /> -->
            <el-option label="退款" :value="4" />
          </el-select>
        </div>
        <!-- <div class="condition">
          <span>审核结果 : </span>
          <el-select
            v-model="searchInput.type"
            class="m-2"
            placeholder="请选择审核结果"
            style="width: 200px"
          >
            <el-option label="待审核" :value="0" />
            <el-option label="通过" :value="1" />
            <el-option label="拒绝" :value="2" />
          </el-select>
        </div> -->
        <div class="condition">
          <span>订单时间 : </span>
          <el-date-picker
            v-model="searchInput.orderTime"
            type="daterange"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
            format="YYYY-MM-DD"
            value-format="YYYY-MM-DD"
            unlink-panels
          />
        </div>
        <div class="condition">
          <span>用户名 : </span>
          <el-input
            clearable
            v-model="searchInput.username"
            class="w-50 m-2"
            placeholder="请输入用户名"
            style="width: 200px"
          />
        </div>
        <el-button
          style="margin-left: 20px"
          color="rgba(61, 81, 232, 1)"
          type="primary"
          class="search"
          @click="search"
          ><el-icon> <Search /> </el-icon><span>搜索</span></el-button
        >
        <el-button
          style="margin-left: 20px"
          color="rgba(61, 81, 232, 1)"
          type="primary"
          class="search"
          @click="resetInput"
          ><el-icon> <Refresh /> </el-icon><span>重置</span></el-button
        >
      </div>
      <el-button
        color="rgba(61, 81, 232, 1)"
        class="import"
        type="primary"
        @click="downLoad"
        ><img
          src="@/assets/import.png"
          style="width: 14px; height: 14px; margin-right: 4px"
          alt=""
        />
        <span>导出表单</span></el-button
      >
    </div>

    <el-dialog
      class="sendBus"
      v-model="centerDialogVisible"
      :close-on-click-modal="false"
      :close-on-press-escape="false"
      title="审核"
      align-center
      width="500"
      :before-close="editClose"
    >
      <el-form
        ref="ruleFormRef"
        :model="ruleForm"
        :rules="rules"
        label-width="100px"
        class="demo-ruleForm"
        :size="formSize"
        label-position="left"
        status-icon
      >
        <el-form-item label="审核结果 :" prop="type">
          <el-select
            v-model="ruleForm.type"
            class="m-2"
            placeholder="请选择审核结果"
            style="width: 280px"
          >
            <el-option label="通过" value="1" />
            <el-option label="拒绝" value="2" />
          </el-select>
        </el-form-item>

        <el-form-item label="审核理由 :" prop="remark">
          <el-input
            v-model="ruleForm.remark"
            placeholder="请输入审核理由"
            clearable
            :rows="3"
            type="textarea"
            style="width: 280px"
          />
        </el-form-item>
        <el-form-item class="options">
          <el-button class="congzhi" @click="editClose(ruleFormRef)"
            >取消</el-button
          >
          <el-button
            color="rgba(61, 81, 232, 1)"
            class="queding"
            type="primary"
            @click="submitAdd(ruleFormRef)"
          >
            确定
          </el-button>
        </el-form-item>
      </el-form>
    </el-dialog>
    <div class="MingXi">
      <div class="footer mingxi">
        <el-table
          :row-class-name="tableRowClassName"
          :data="tableData.list"
          style="width: 100%"
          :header-cell-style="{
            background: 'rgba(240, 243, 247, 1)',
            border: 0,
          }"
          @selection-change="handleSelectionChange"
        >
          <!-- <el-table-column align="center" type="selection" width="80" /> -->
          <el-table-column
            width="160"
            align="center"
            prop="orderNum"
            label="订单号"
          />
          <!-- <el-table-column align="center" prop="s_date" label="订单描述" /> -->
          <el-table-column align="center" prop="consumeType" label="消费类型">
            <template #default="scope">
              <div style="color: #67c23a" v-if="scope.row.consumeType == 1">
                充值
              </div>
              <div v-if="scope.row.consumeType == 2">消费</div>
              <!-- <div v-if="scope.row.consumeType == 3">补贴</div> -->
              <div style="color: red" v-if="scope.row.consumeType == 4">
                退款
              </div>
            </template>
          </el-table-column>
          <el-table-column align="center" prop="account4" label="交易金额">
          </el-table-column>
          <!-- <el-table-column align="center" prop="account1" label="主余额" /> -->
          <!-- <el-table-column align="center" prop="account2" label="补贴余额" /> -->
          <el-table-column
            width="100"
            align="center"
            prop="createTime"
            label="订单时间"
          />
          <el-table-column align="center" prop="account3" label="可用余额" />
          <el-table-column align="center" prop="by_num" label="交通卡类型">
            <template #default="scope">
              <div v-if="scope.row.type == 0">优行卡</div>
              <div v-if="scope.row.type == 1">教师卡</div>
              <div v-if="scope.row.type == 2">暖心卡</div>
            </template>
          </el-table-column>
          <el-table-column align="center" prop="mobile" label="手机号码" />
          <el-table-column align="center" prop="username" label="用户名" />
          <!-- <el-table-column align="center" prop="car_number" label="审核结果">
            <template #default="scope">
              <div v-if="scope.row.type == 0">待审核</div>
              <div style="color: #67c23a" v-if="scope.row.type == 1">
                通过
              </div>
              <div style="color: red" v-if="scope.row.type == 2">
                拒绝
              </div>
            </template>
          </el-table-column>
          <el-table-column
            show-overflow-tooltip
            align="center"
            prop="remark"
            label="审核理由"
          /> -->

          <!-- <el-table-column align="center" label="操作" width="150">
            <template #default="scope">
              <el-button
                v-if="scope.row.type == 0"
                link
                type="primary"
                @click="info(scope.row)"
              >
                <div class="look">审核</div>
              </el-button>
            </template>
          </el-table-column> -->
        </el-table>
      </div>
      <div class="pagination">
        <el-pagination
          background
          v-model:page-size="pageSize"
          v-model:current-page="currentPage"
          layout="total, prev, pager, next, jumper"
          :total="total"
          @current-change="handleCurrentChange"
        />
        <!-- 往返校区预约和乘车人数 -->
        <div
          class="nowday"
          style="
            position: relative;
            width: 1200px;
            color: #000;
            top: -45px;
            font-size: 18px;
            z-index: 0;
          "
        >
          <div>
            <div style="display: inline-block; margin-left: 10px">
              <div
                style="display: inline-block; width: 600px; margin-left: 20px"
              >
                充值汇总:
                <span style="color: red">{{ sumMoney.recharge }}</span> 元 ;
                消费汇总:
                <span style="color: red">{{ sumMoney.consume }}</span> 元 ;
                <!-- 补贴汇总:
                <span style="color: red">{{ sumMoney.allowance }}</span> 元 ; -->
                退款汇总:
                <span style="color: red">{{ sumMoney.refund }}</span> 元
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, reactive, watch, onBeforeMount } from "vue";
import { useRouter } from "vue-router";
import { Select, Pointer, Upload } from "@element-plus/icons-vue";
import { JSEncrypt } from "jsencrypt"; // 加密密码
import { ElMessage, ElMessageBox } from "element-plus";
import { dayjs } from "element-plus";
import axios from "axios";
import lodash from "lodash";
import { useStore } from "vuex";
const store = useStore();
const router = useRouter();

const api = ref("");
// 明细列表搜索框数据
const searchInput = reactive({
  orderNum: "", // 订单号
  vertifyState: "", // 0待审核,1通过,2拒绝
  consumeType: "", // 消费类型 // 1充值,2消费,3补贴,4退款
  username: "", // 用户名
  orderTime: "", // 订单时间
  type: "", // 0普通用户,1教师,2贫困生
});

// 表格数据
const tableData = reactive({
  list: [{}],
  account: "",
});
const sumMoney = reactive({
  recharge: "",
  consume: "",
  allowance: "",
  refund: "",
});

const dialongTitle = ref("候补派车"); // 弹窗标题
const centerDialogVisible = ref(false); // 候补弹窗显示

const pageSize = ref(9);
const currentPage = ref(1); // 当前页
const total = ref(10); // 当前总数
const selectData = reactive({ list: [] }); // 多选框选择的数据

// 表单数据
const formSize = ref("default");
const ruleFormRef = ref();

const ruleForm = reactive({
  id: "",
  type: "",
  remark: "",
});
// 表单验证
const rules = reactive({
  type: [
    {
      required: true,
      message: "审核结果不能为空",
      trigger: "change",
    },
  ],
  remark: [
    {
      required: true,
      message: "审核理由不能为空",
      trigger: "blur",
    },
    // {
    //   pattern: /^(0|[1-9][0-9]*)$/,
    //   message: "请输入正确数字",
    //   trigger: "blur",
    // },
  ],
});

// 获取数据列表
const getList = async () => {
  let data = {};
  if (searchInput.orderNum) {
    data.orderNum = searchInput.orderNum;
  }
  if (searchInput.orderTime) {
    data.createStart = searchInput.orderTime[0];
    data.createEnd = searchInput.orderTime[1];
  }
  data.type = searchInput.type;
  data.consumeType = searchInput.consumeType;
  if (searchInput.username) {
    data.username = searchInput.username;
  }
  data.page = currentPage.value;
  data.rows = pageSize.value;
  let res = await axios({
    method: "get",
    url: api.value + "/cardlist.action",
    headers: {
      token: sessionStorage.getItem("token"),
    },
    params: data,
  });
  console.log(res, "明细");
  if (res.status == 200) {
    tableData.list = res.data.rows;
    total.value = res.data.total;
  } else {
    ElMessage({
      type: "error",
      showClose: true,
      message: res.data.message,
      center: true,
    });
    if (res.data.message == "token错误") {
      router.push({
        path: `/login`,
      });
    }
  }
};
const getMoney = async () => {
  let data = {};
  if (searchInput.orderNum) {
    data.orderNum = searchInput.orderNum;
  }
  if (searchInput.orderTime) {
    data.createStart = searchInput.orderTime[0];
    data.createEnd = searchInput.orderTime[1];
  }
  data.type = searchInput.type;
  data.consumeType = searchInput.consumeType;
  if (searchInput.username) {
    data.username = searchInput.username;
  }
  let res = await axios({
    method: "post",
    url: api.value + "/cardsummary.action",
    headers: {
      token: sessionStorage.getItem("token"),
    },
    data: data,
  });
  console.log(res, "交通卡明细流水");
  if (res.data.code == 200) {
    let s = res.data.data;
    sumMoney.recharge = s.recharge.money.toFixed(2);
    sumMoney.consume = s.consume.money.toFixed(2);
    sumMoney.allowance = s.allowance.money.toFixed(2);
    sumMoney.refund = s.refund.money.toFixed(2);
  } else {
    ElMessage({
      type: "error",
      showClose: true,
      message: res.data.message,
      center: true,
    });
    if (res.data.message == "token错误") {
      router.push({
        path: `/login`,
      });
    }
  }
};
// 搜索按钮
const search = lodash.debounce(() => {
  getList();
  getMoney();
}, 300);
// 重置搜索框
const resetInput = lodash.debounce(() => {
  searchInput.orderNum = "";
  searchInput.type = "";
  searchInput.type = "";
  searchInput.consumeType = "";
  searchInput.orderTime = "";
  searchInput.username = "";
  getList();
  getMoney();
}, 300);
// 多选框功能
const handleSelectionChange = (val) => {
  console.log(val);
  selectData.list = val;
};

// 派车按钮
const info = (row) => {
  console.log(row);
  centerDialogVisible.value = true;
  ruleForm.type = "";
  ruleForm.remark = "";
  ruleForm.id = row.id;
};
const editClose = () => {
  centerDialogVisible.value = false;
  ruleFormRef.value.resetFields();
};
const submitAdd = async (formEl) => {
  if (!formEl) return;
  await formEl.validate(async (valid, fields) => {
    if (valid) {
      let data = new FormData();
      data.set("id", ruleForm.id);
      data.set("type", ruleForm.type); //前面的key记得对应！
      data.set("remark", ruleForm.remark);
      let res = await axios({
        method: "post",
        url: api.value + "/cardvertify.action",
        headers: {
          token: sessionStorage.getItem("token"),
        },
        data: data,
      });
      // console.log(res, "添加账号");
      if (res.data.code == 200) {
        getList();
        getMoney();
        ElMessage({
          type: "success",
          showClose: true,
          message: res.data.message,
          center: true,
        });
        centerDialogVisible.value = false;
        ruleFormRef.value.resetFields();
      } else {
        ElMessage({
          type: "error",
          showClose: true,
          message: res.data.message,
          center: true,
        });
      }
    } else {
      console.log("error submit!", fields);
    }
  });
};

const del = (row) => {
  ElMessageBox.confirm("此操作将永久删除该数据, 是否继续?", "提示", {
    confirmButtonText: "确定",
    cancelButtonText: "取消",
    type: "warning",
  })
    .then(async () => {
      let data = new FormData();
      data.set("ticketId", row.id);
      let res = await axios({
        method: "post",
        url: api.value + "/cardcancelOrder.action",
        headers: {
          token: sessionStorage.getItem("token"),
        },
        data: data,
      });
      if (res.data.code == 200) {
        getList();
        ElMessage({
          type: "success",
          showClose: true,
          message: res.data.message,
          center: true,
        });
      } else {
        ElMessage({
          type: "error",
          showClose: true,
          message: res.data.message,
          center: true,
        });
      }
    })
    .catch(() => {
      ElMessage({
        type: "info",
        message: "已取消删除",
      });
    });
};

// 导出按钮
const downLoad = lodash.debounce(async () => {
  let data = {};
  if (searchInput.orderNum) {
    data.orderNum = searchInput.orderNum;
  }
  if (searchInput.orderTime) {
    data.createStart = searchInput.orderTime[0];
    data.createEnd = searchInput.orderTime[1];
  }
  data.type = searchInput.type;
  data.consumeType = searchInput.consumeType;
  if (searchInput.username) {
    data.username = searchInput.username;
  }
  let res = await axios({
    method: "get",
    url: api.value + "/cardtoExcel.action",
    headers: {
      token: sessionStorage.getItem("token"),
    },
    params: data,
  });
  console.log(res);
  if (res.data.code == 200) {
    // const elt = document.createElement("a");
    // elt.setAttribute(
    //   "href",
    //   "https://car.meiyishuoo.com/ride-sharing" + res.data.downurl
    // );
    // elt.setAttribute("download", "file.png");
    // elt.style.display = "none";
    // document.body.appendChild(elt);
    // elt.click();

    var downloadPath =
      "https://car.meiyishuoo.com/ride-sharing" + res.data.downurl;
    console.log("获得地址数据:", downloadPath);
    var downloadLink = document.createElement("a");
    downloadLink.style.display = "none"; // 使其隐藏
    downloadLink.href = downloadPath;
    downloadLink.download = "";
    downloadLink.click();
    document.body.appendChild(downloadLink);
    document.body.removeChild(downloadLink);
    ElMessage({
      type: "success",
      showClose: true,
      message: res.data.message,
      center: true,
    });
  } else {
    ElMessage({
      type: "error",
      showClose: true,
      message: res.data.message,
      center: true,
    });
  }
}, 300);

// 表格斑马纹颜色修改
const tableRowClassName = ({ row, rowIndex }) => {
  if (rowIndex % 2 === 0) {
    return "even";
  } else if (rowIndex % 2 !== 0) {
    return "odd";
  }
  return "";
};
// 分页
const handleCurrentChange = (value) => {
  currentPage.value = value;
  getList();
};

onBeforeMount(() => {
  api.value = store.state.user.api;
  getList();
  getMoney();
});
</script>

<style scoped lang="scss">
.content-box {
  width: calc(100% - 40px);
  height: calc(100% - 105px);
  margin: 20px auto;
  background-color: #fff;
  color: #fff;
  display: flex;
  flex-direction: column;

  .left {
    width: calc(100% - 60px);
    display: flex;
    align-items: center;
    height: 60px !important;
    margin: 0 30px;
    // padding: 10px 0;
    border-bottom: 1px solid #ccc;
    color: #000;
    font-size: 18px;
    font-weight: 600;

    .cameratxt {
      margin-right: 15px;
      display: flex;
      align-items: center;
      height: 60px !important;
    }
  }

  :deep(.sendBus) {
    //   height: 420px;
    border-radius: 11px;

    .el-dialog__header {
      border-radius: 11px 11px 0 0;
      background: rgba(237, 241, 245, 1);
      font-weight: 600;
      margin: 0;

      .el-dialog__headerbtn {
        outline: none;
      }
    }

    .el-dialog__body {
      padding: 30px 20px 10px 20px;

      .el-form-item--feedback {
        .el-input__validateIcon {
          color: rgba(61, 81, 232, 1);
        }
      }

      .el-form-item.is-error .el-input__validateIcon {
        color: red;
      }

      .options {
        margin-left: 200px;
      }
    }
  }

  .middle {
    width: calc(100% - 60px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    color: #000;
    padding: 10px 0;
    // 添加员工弹窗样式

    .filter {
      display: flex;
      flex-wrap: wrap;
      align-items: center;

      //   width: 100%;
      .condition {
        display: flex;
        align-items: center;
        margin: 10px 20px 10px 0;

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

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

    .import {
      margin: 10px 0;
    }

    .gongneng {
      margin: 10px 0;
    }

    :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;
    }
  }

  .footerMenu {
    width: calc(100% - 60px);
    margin: 10px auto 0;
    display: flex;
    align-items: center;

    // height: 40px;
    .menuList {
      padding: 5px 12px;
      border-bottom: 2px solid transparent;
      //   color: rgba(61, 81, 232, 1);
      color: rgba(128, 128, 128, 1);
      cursor: pointer;
      //   font-size: 16px;
      font-weight: 600;
    }

    .menuListActive {
      border-bottom: 2px solid rgba(61, 81, 232, 1);
      color: rgba(61, 81, 232, 1);
      font-size: 17px;
    }
  }

  .MingXi {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;

    .mingxi {
      flex: 1;
      overflow: auto;

      :deep(.el-table__header-wrapper) {
        height: 50px;

        .el-table__header {
          height: 50px;
        }
      }

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

        :deep(.el-table__row) {
          height: 50px;
        }
      }
    }

    .pagination {
      width: 100%;
      height: 70px;

      .el-pagination {
        position: relative;
        z-index: 999;
      }
    }
  }

  .footer {
    width: calc(100% - 60px);
    // height: 510px;
    margin: 0 auto;

    :deep(.el-table__header-wrapper) {
      height: 48px;

      .el-table__header {
        height: 48px;
        font-size: 16px;
        color: #000;
      }
    }

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

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

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

      :deep(.look) {
        padding: 5px 10px;
        border-radius: 40px;
        border: 0.74px solid rgba(30, 125, 251, 1);
      }
      :deep(.del) {
        padding: 5px 10px;
        border-radius: 40px;
        border: 0.74px solid rgb(251, 30, 30);
      }

      // 输出链接弹窗样式
      :deep(.link .el-dialog__header) {
        text-align: left;
        font-size: 20px;
        font-weight: 600;
      }

      :deep(.link .el-dialog__body) {
        padding: 10px 20px;
        height: 100px;
        margin-bottom: 10px;
      }

      .link {
        .linkcontent {
          text-align: left;
          height: 100px;
          border: 1px solid #ccc;

          p {
            margin: 5px 10px;
          }
        }
      }

      :deep(.playVideo .el-dialog__header) {
        text-align: left;
        font-size: 20px;
        font-weight: 600;
        background-color: #ccc;
        margin-right: 0;
      }

      :deep(.playVideo .el-dialog__body) {
        height: 600px;
      }

      .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);
      }
    }
  }

  .footers {
    width: 96%;
    // height: 550px;
    // margin: 20px auto 20px;

    :deep(.el-table__header-wrapper) {
      height: 48px;

      .el-table__header {
        height: 48px;
        font-size: 16px;
        color: #000;
      }
    }

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

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

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

      :deep(.look) {
        padding: 3px 10px;
        border-radius: 40px;
        border: 0.74px solid rgba(30, 125, 251, 1);
      }

      // 输出链接弹窗样式
      :deep(.link .el-dialog__header) {
        text-align: left;
        font-size: 20px;
        font-weight: 600;
      }

      :deep(.link .el-dialog__body) {
        padding: 10px 20px;
        height: 100px;
        margin-bottom: 10px;
      }

      .link {
        .linkcontent {
          text-align: left;
          height: 100px;
          border: 1px solid #ccc;

          p {
            margin: 5px 10px;
          }
        }
      }

      :deep(.playVideo .el-dialog__header) {
        text-align: left;
        font-size: 20px;
        font-weight: 600;
        background-color: #ccc;
        margin-right: 0;
      }

      :deep(.playVideo .el-dialog__body) {
        height: 600px;
      }

      .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);
      }
    }
  }

  .el-pagination {
    // width: 1600px;
    width: calc(100% - 60px);
    height: 60px;
    margin: 0 30px;
    justify-content: flex-end;

    :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(30, 125, 251, 1);
    }

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

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

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