<template>
  <div class="app-container">
    <el-row>
      <el-col :span="1.5" class="isSubmit">
        <el-radio-group v-model="queryParams.type" @change="caoZuoTypefun">
          <el-radio-button label="null">所有值班</el-radio-button>
          <el-radio-button label="1">今日值班</el-radio-button>
          <el-radio-button label="2">次日值班</el-radio-button>
        </el-radio-group>
      </el-col>
    </el-row>
    <hr />
    <el-form
      :model="queryParams"
      ref="queryForm"
      :inline="true"
      v-show="showSearch"
      label-width="auto"
    >
      <!-- <el-form-item label="值班时间" prop="attendedTime">
        <el-date-picker
          clearable
          size="small"
          v-model="queryParams.attendedTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="选择值班时间"
        >
        </el-date-picker>
      </el-form-item>-->
      <el-form-item prop="attendedTime">
        <el-date-picker
          clearable
          size="small"
          v-model="queryParams.attendedTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择值班时间"
        ></el-date-picker>
      </el-form-item>
      <el-form-item prop="chiefDutyName">
        <el-select v-model="queryParams.chiefDutyId" filterable clearable>
          <el-option
            v-for="item in rylist"
            :key="item.id"
            :label="item.name"
            :value="item.id"
          ></el-option>
        </el-select>
      </el-form-item>
      <!-- <el-form-item label="单位名称" prop="unitName">
        <el-select
          v-model="queryParams.unitName"
          placeholder="请选择单位名称"
          clearable
          size="small"
        >
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>-->
      <!-- <el-form-item label="单位ID" prop="unitId">
        <el-input
          v-model="queryParams.unitId"
          placeholder="请输入单位ID"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
      <!-- <el-form-item label="值班首长" prop="chiefDutyName">
        <el-input
          v-model="queryParams.chiefDutyName"
          placeholder="请输入值班首长"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
      <!-- <el-form-item label="值班首长ID" prop="chiefDutyId">
        <el-select
          v-model="queryParams.chiefDutyId"
          placeholder="请选择值班首长ID"
          clearable
          size="small"
        >
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="值班首长职务" prop="chiefDutyZhiwu">
        <el-select
          v-model="queryParams.chiefDutyZhiwu"
          placeholder="请选择值班首长职务"
          clearable
          size="small"
        >
          <el-option
            v-for="dict in dict.type.sys_duty_hief"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="办公电话" prop="telephoneBg">
        <el-input
          v-model="queryParams.telephoneBg"
          placeholder="请输入办公电话"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="宿舍电话" prop="telephoneSs">
        <el-input
          v-model="queryParams.telephoneSs"
          placeholder="请输入宿舍电话"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="值班首长手机" prop="chiefDutyPhone">
        <el-input
          v-model="queryParams.chiefDutyPhone"
          placeholder="请输入值班首长手机"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
      <el-form-item prop="dutyOffierName">
        <el-select
          v-model="queryParams.dutyOffierName"
          placeholder="请选择值班员"
          clearable
          size="small"
        >
          <el-option label="请选择字典生成" value />
        </el-select>
      </el-form-item>
      <!-- <el-form-item label="值班员ID" prop="dutyOffierId">
        <el-input
          v-model="queryParams.dutyOffierId"
          placeholder="请输入值班员ID"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="值班员职务" prop="dutyOffierZw">
        <el-select
          v-model="queryParams.dutyOffierZw"
          placeholder="请选择值班员职务"
          clearable
          size="small"
        >
          <el-option
            v-for="dict in dict.type.sys_duty_hief"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="值班员手机" prop="dutyOffierPhone">
        <el-input
          v-model="queryParams.dutyOffierPhone"
          placeholder="请输入值班员手机"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="值班电话" prop="dutyPhone">
        <el-input
          v-model="queryParams.dutyPhone"
          placeholder="请输入值班电话"
          clearable
          size="small"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="值班岗位" prop="dutyGangwei">
        <el-select
          v-model="queryParams.dutyGangwei"
          placeholder="请选择值班岗位"
          clearable
          size="small"
        >
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>-->
      <el-form-item>
        <el-button type="primary" size="btn" @click="handleQuery"
          >搜索</el-button
        >
        <el-button size="btr" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['combatduty:grassdutyinfo:add']"
          >新增</el-button
        >
      </el-col>
      <!-- <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['combatduty:grassdutyinfo:edit']"
          >修改</el-button
        >
      </el-col>-->
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['combatduty:grassdutyinfo:remove']"
          >删除</el-button
        >
      </el-col>
      <!-- <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          :loading="exportLoading"
          @click="handleExport"
          v-hasPermi="['combatduty:grassdutyinfo:export']"
          >导出</el-button
        >
      </el-col>-->

      <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
    </el-row>

    <el-table
      v-loading="loading"
      :data="grassdutyinfoList"
      @selection-change="handleSelectionChange"
      :header-cell-style="{ background: '#003c69', color: 'white' }"
    >
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="序号" align="center" type="index" />
      <!-- <el-table-column label="值班岗位" align="center" prop="id" /> -->
      <el-table-column label="单位名称" align="center" prop="unitName" />
      <!-- <el-table-column label="单位" align="center" prop="unitId" :formatter="unitIdFormat" /> -->
      <!-- <el-table-column label="值班首长" align="center" prop="chiefDutyName" /> -->
      <el-table-column
        label="值班首长"
        align="center"
        prop="chiefDutyId"
        :formatter="chiefDutyIdFormat"
      />
      <el-table-column
        label="值班首长职务"
        align="center"
        prop="chiefDutyZhiwu"
      >
        <template slot-scope="scope">
          <dict-tag
            :options="dict.type.sys_duty_hief"
            :value="scope.row.chiefDutyZhiwu"
          />
        </template>
      </el-table-column>
      <el-table-column label="办公电话" align="center" prop="telephoneBg" />
      <el-table-column label="宿舍电话" align="center" prop="telephoneSs" />
      <el-table-column
        label="值班首长手机"
        align="center"
        prop="chiefDutyPhone"
      />
      <!-- <el-table-column label="值班员" align="center" prop="dutyOffierName" /> -->
      <el-table-column
        label="值班员"
        align="center"
        prop="dutyOffierId"
        :formatter="dutyOffierIdFormat"
      />
      <el-table-column label="值班员职务" align="center" prop="dutyOffierZw">
        <template slot-scope="scope">
          <dict-tag
            :options="dict.type.sys_duty_hief"
            :value="scope.row.dutyOffierZw"
          />
        </template>
      </el-table-column>
      <!-- <el-table-column label="值班员手机" align="center" prop="dutyOffierPhone" />
      <el-table-column label="值班电话" align="center" prop="dutyPhone" />-->
      <el-table-column
        label="值班岗位"
        align="center"
        prop="dutyGangwei"
        :formatter="dutyGangweiFormat"
      />
      <el-table-column
        label="值班时间"
        align="center"
        prop="attendedTime"
        width="180"
      >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.attendedTime, "{y}-{m}-{d}") }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="操作"
        align="center"
        width="200"
        class-name="small-padding fixed-width"
      >
        <template slot-scope="scope">
          <el-button
            size="btu"
            type="text"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['combatduty:grassdutyinfo:edit']"
            >修改</el-button
          >
          <el-button
            size="btd"
            type="text"
            @click="handleDelete(scope.row)"
            v-hasPermi="['combatduty:grassdutyinfo:remove']"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改基层值班对话框 -->
    <el-dialog
      :title="title"
      :visible.sync="open"
      width="1016px"
      append-to-body
      :close-on-click-modal="false"
    >
      <el-form
        ref="form"
        :model="form"
        :rules="rules"
        label-width="80px"
        :inline="true"
      >
        <div class="jiben">基本信息</div>
        <!-- <el-form-item label="值班时间" prop="attendedTime">
          <el-date-picker
            clearable
            size="small"
            v-model="form.attendedTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="选择值班时间"
          >
          </el-date-picker>
        </el-form-item>-->
        <el-form-item label="值班时间" prop="attendedTime">
          <el-date-picker
            clearable
            size="small"
            v-model="form.attendedTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder=""
            v-if="qdflg == 2"
          ></el-date-picker>
          <el-date-picker
            v-model="form.attendedTime"
            type="daterange"
            range-separator="至"
            start-placeholder
            end-placeholder
            value-format="yyyy-MM-dd"
            v-if="qdflg == 1"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="单位名称" prop="unitName">
          <el-select
            v-model="form.unitName"
            @change="unitNamechange"
            clearable
            placeholder=""
          >
            <el-option
              v-for="dict in deptOptions"
              :key="dict.deptId"
              :label="dict.deptName"
              :value="dict"
            ></el-option>
          </el-select>
        </el-form-item>
        <!-- <el-form-item label="单位" prop="unitId">
          <el-select v-model="form.unitId" ref="deptId" clearable placeholder="请选择单位名称">
            <el-option
              v-for="dict in deptOptions"
              :key="dict.deptId"
              :label="dict.deptName"
              :value="dict.deptId"
            ></el-option>
          </el-select>
        </el-form-item>-->
        <el-form-item label="值班首长" prop="chiefDutyName">
          <!-- <el-input v-model="form.chiefDutyName" placeholder="请输入值班首长" /> -->
          <el-select
            v-model="form.chiefDutyName"
            @change="chiefDutyNamefun"
            filterable
            clearable
            placeholder=""
          >
            <el-option
              v-for="item in rylist"
              :key="item.id"
              :label="item.name"
              :value="item"
            ></el-option>
          </el-select>
        </el-form-item>
        <!-- <el-form-item label="值班首长" prop="chiefDutyId">
          <el-select v-model="form.chiefDutyId" filterable clearable placeholder="请选择值班首长">
            <el-option v-for="item in rylist" :key="item.id" :label="item.name" :value="item.id"></el-option>
          </el-select>
        </el-form-item>-->
        <el-form-item label="值班首长电话" prop="chiefDutyPhone">
          <el-input v-model="form.chiefDutyPhone" placeholder="" />
        </el-form-item>
        <el-form-item label="值班首长职务" prop="chiefDutyZhiwu">
          <el-select v-model="form.chiefDutyZhiwu" placeholder="">
            <el-option
              v-for="dict in dict.type.sys_duty_hief"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="办公电话" prop="telephoneBg">
          <el-input v-model="form.telephoneBg" placeholder="" />
        </el-form-item>
        <el-form-item label="宿舍电话" prop="telephoneSs">
          <el-input v-model="form.telephoneSs" placeholder="" />
        </el-form-item>

        <el-form-item label="值班员" prop="dutyOffierName">
          <el-select
            v-model="form.dutyOffierName"
            @change="dutyOffierNamefun"
            filterable
            clearable
            placeholder=""
          >
            <el-option
              v-for="item in rylist"
              :key="item.id"
              :label="item.name"
              :value="item"
            ></el-option>
          </el-select>
        </el-form-item>
        <!-- <el-form-item label="值班员" prop="dutyOffierId">
          <el-select v-model="form.dutyOffierId" filterable clearable placeholder="请选择值班员">
            <el-option v-for="item in rylist" :key="item.id" :label="item.name" :value="item.id"></el-option>
          </el-select>
        </el-form-item>-->
        <el-form-item label="值班员电话" prop="dutyOffierPhone">
          <el-input v-model="form.dutyOffierPhone" placeholder="" />
        </el-form-item>
        <el-form-item label="值班员职务" prop="dutyOffierZw">
          <el-select v-model="form.dutyOffierZw" placeholder="">
            <el-option
              v-for="dict in dict.type.sys_duty_hief"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="值班电话" prop="dutyPhone">
          <el-input v-model="form.dutyPhone" placeholder="" />
        </el-form-item>
        <el-form-item label="值班岗位" prop="dutyGangwei">
          <el-select v-model="form.dutyGangwei" clearable placeholder="">
            <el-option
              v-for="dict in deptOptions"
              :key="dict.deptId"
              :label="dict.deptName"
              :value="dict.deptId"
            ></el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import {
  listGrassdutyinfo,
  getGrassdutyinfo,
  delGrassdutyinfo,
  addGrassdutyinfo,
  updateGrassdutyinfo,
  exportGrassdutyinfo,
  rllist,
  listPeople,
  getDept,
} from "@/api/combatduty/grassdutyinfo";

export default {
  name: "Grassdutyinfo",
  dicts: ["sys_duty_hief", "sys_duty_hief"],
  data() {
    return {
      // 遮罩层
      loading: true,
      // 导出遮罩层
      exportLoading: false,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 基层值班表格数据
      grassdutyinfoList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        attendedTime: null,
        unitName: null,
        unitId: null,
        chiefDutyName: null,
        chiefDutyId: null,
        chiefDutyZhiwu: null,
        telephoneBg: null,
        telephoneSs: null,
        chiefDutyPhone: null,
        dutyOffierName: null,
        dutyOffierId: null,
        dutyOffierZw: null,
        dutyOffierPhone: null,
        dutyPhone: null,
        dutyGangwei: null,
        type: null,
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {},
      //人员数据
      rylist: [],
      //单位数据
      deptOptions: [],
      qdflg: null,
    };
  },
  created() {
    this.getList();
    this.gettreeselect();
    this.getrylist();
  },
  methods: {
    //获取人员
    getrylist() {
      listPeople().then((res) => {
        if (res.code == 200) {
          this.rylist = res.rows;
        }
      });
    },
    gettreeselect() {
      getDept().then((res) => {
        if (res.code == 200) {
          this.deptOptions = res.data;
        }
      });
    },
    //首长
    chiefDutyIdFormat(row, column) {
      var deptName = "";
      this.rylist.map((item) => {
        if (item.id == row.chiefDutyId) {
          deptName = item.name;
        }
      });
      return deptName;
    },
    dutyOffierIdFormat(row, column) {
      var deptName = "";
      this.rylist.map((item) => {
        if (item.id == row.dutyOffierId) {
          deptName = item.name;
        }
      });
      return deptName;
    },
    //单位
    // unitIdFormat(row, column) {
    //   var deptName = "";
    //   this.deptOptions.map(item => {
    //     if (item.deptId == row.unitId) {
    //       deptName = item.deptName;
    //     }
    //   });
    //   return deptName;
    // },
    //岗位
    dutyGangweiFormat(row, column) {
      var deptName = "";
      this.deptOptions.map((item) => {
        if (item.deptId == Number(row.dutyGangwei)) {
          deptName = item.deptName;
        }
      });
      return deptName;
    },
    /** 查询基层值班列表 */
    getList() {
      this.loading = true;
      listGrassdutyinfo(this.queryParams).then((response) => {
        this.grassdutyinfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        attendedTime: null,
        unitName: null,
        unitId: null,
        chiefDutyName: null,
        chiefDutyId: null,
        chiefDutyZhiwu: null,
        telephoneBg: null,
        telephoneSs: null,
        chiefDutyPhone: null,
        dutyOffierName: null,
        dutyOffierId: null,
        dutyOffierZw: null,
        dutyOffierPhone: null,
        dutyPhone: null,
        dutyGangwei: null,
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.id);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加基层值班";
      this.qdflg = 1;
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id || this.ids;
      getGrassdutyinfo(id).then((response) => {
        this.form = response.data;
        this.form.dutyGangwei = Number(this.form.dutyGangwei);
        this.open = true;
        this.title = "修改基层值班";
        this.qdflg = 2;
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate((valid) => {
        if (valid) {
          if (this.form.id != null) {
            updateGrassdutyinfo(this.form).then((response) => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            this.form.timequjian = this.form.attendedTime;
            this.form.attendedTime = this.form.attendedTime.join(",");
            addGrassdutyinfo(this.form).then((response) => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal
        .confirm("是否确认删除该数据项？")
        .then(function () {
          return delGrassdutyinfo(ids);
        })
        .then(() => {
          this.getList();
          this.$modal.msgSuccess("删除成功");
        })
        .catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      const queryParams = this.queryParams;
      this.$modal
        .confirm("是否确认导出所有基层值班数据项？")
        .then(() => {
          this.exportLoading = true;
          return exportGrassdutyinfo(queryParams);
        })
        .then((response) => {
          this.$download.name(response.msg);
          this.exportLoading = false;
        })
        .catch(() => {});
    },
    //值班分类
    caoZuoTypefun() {
      this.getList();
    },
    //首长电话
    chiefDutyNamefun(val) {
      this.form.chiefDutyId = val.id;
      this.form.chiefDutyName = val.name;
      this.form.chiefDutyPhone = val.phone;
    },
    //总值班员
    dutyOffierNamefun(val) {
      this.form.dutyOffierId = val.id;
      this.form.dutyOffierName = val.name;
      this.form.dutyOffierPhone = val.phone;
    },
    unitNamechange(val) {
      this.form.unitId = val.deptId;
      this.form.unitName = val.deptName;
    },
    // detachmentwoNamechange(val) {
    //   this.form.detachmentwoId = val.deptId;
    //   this.form.detachmentwoName = val.deptName;
    // }
  },
};
</script>
<style scoped>
/* 对话框背景颜色 */
::v-deep .el-dialog {
  background: #004d86 !important;
}
::v-deep .el-textarea__inner {
  width: 884px;
  height: 104px;
  margin-left: 29px;
}
::v-deep .el-dialog__header {
  border-bottom: 1px solid #718a9d;
}
::v-deep .el-dialog__title {
  color: #fff;
  font: 18px;
}
::v-deep .el-dialog__headerbtn .el-dialog__close {
  color: #fff;
}
::v-deep .el-form-item__label {
  font: 16px;
  color: #fff;
  width: 100px !important;
}
::v-deep .el-input__inner {
  /* width: 200px !important;
  height: 36px; */
  background: transparent !important;
  color: #fff;
}
::v-deep .el-dialog__body {
  padding: 30px 0px 30px 46px;
}
::v-deep .el-dialog__footer {
  margin-right: 30px !important;
}
/* 单位框背景颜色 */
::v-deep .vue-treeselect__control {
  background: #004d86 !important;
}
/* 基本信息背景 */
.jiben {
  width: 952px;
  height: 32px;
  background-image: url(../../../images/小标题底.png);
  margin-bottom: 25px;
  color: #fff;
  padding-left: 16px;
  line-height: 32px;
}
/*调整表单间距 */
::v-deep .el-form-item__content {
  width: 200px;
}
/* 时间选择 */
::v-deep .el-input--small .el-input__inner {
  width: 200px;
  height: 36px;
  line-height: 36px;
}
.el-date-editor.el-input {
  width: 200px;
  height: 36px;
  line-height: 36px;
}
::v-deep .el-date-editor.el-input .el-input__inner {
  height: 36px;
  line-height: 36px;
}
::v-deep .el-range-input {
  background: #004d86;
  color: #fff;
  font-size: 12px;
}
::v-deep .el-range-separator {
  color: #fff;
  font-size: 12px;
}
.el-form-item ::v-deep .el-input__inner {
  width: 200px;
  height: 36px;
  background: #004d86;
  color: #fff;
  border: 1px solid #fff !important;
}
::v-deep .el-date-editor.el-input {
  width: 200px;
  height: 36px;
}
.el-select-dropdown__item {
  /* background-color: white; */
  color: #000 !important;
}
::v-deep .el-input-number__increase {
  background-color: transparent !important;
  border: none;
  color: #cccccc;
  border-bottom: none !important;
}
::v-deep .el-input-number__decrease {
  background-color: transparent !important;
  border: none !important;
  color: #cccccc;
}
.isSubmit {
  margin-left: 40% !important;
  margin-right: 30%;
  margin-bottom: 5px;
  padding-bottom: 5px;
}
.el-radio-button {
  width: 122px !important;
  height: 30px !important;
  line-height: 30px !important;
  border: none !important;
}
::v-deep .el-radio-button__inner {
  width: 120px !important;
  height: 30px !important;
  line-height: 8px !important;
  background: #034b81;
  border: none;
  color: #fff;
}
::v-deep .el-radio-button:first-child .el-radio-button__inner {
  border-left: none !important;
}
::v-deep .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  color: #ffffff;
  background-color: rgb(10, 67, 224) !important;
  border-color: rgb(10, 67, 224) !important;
  -webkit-box-shadow: -1px 0 0 0 rgb(10, 67, 224) !important;
  box-shadow: -1px 0 0 0 rgb(10, 67, 224) !important;
}
/* 将水平线设为红色： */
hr {
  border: none;
  height: 1px;
  background-color: rgba(204, 204, 204, 0.5);
  margin-bottom: 15px;
}
</style>
