<template>
  <div class="page">
    <div class="left">
      <div class="left_top">
        <div class="title">
          部门绩效总分排名TOP10
        </div>
        <dv-scroll-ranking-board
          :config="config"
          style="width:100%;height:93%"
        />
      </div>
      <div class="left_mid"></div>
      <div class="left_down"></div>
    </div>
    <div class="mid">
      <div class="mid_top">
        <div class="top_box one">
          <div class="title">今年分值情况</div>
          <div class="mid_content">
            <div class="content_top">
              <p class="content_text">
                <span class="txt">初始扣分</span
                ><span class="txt_num">9856241</span>
              </p>
              <p class="content_text">
                <span class="txt">核查扣分</span
                ><span class="txt_num">9856241</span>
                <span class="txt_small">占比：87.21%</span>
              </p>
              <p class="content_text">
                <span class="txt">申诉分值</span
                ><span class="txt_num">9856241</span>
                <span class="txt_small">占比：87.21%</span>
              </p>
              <p class="content_text">
                <span class="txt">累计扣分</span
                ><span class="txt_num">9856241</span>
              </p>
            </div>
            <div class="content_down">
              <div class="down_left">
                <div class="num">+65.32%</div>
                <p class="down_text">环比增长率</p>
              </div>
              <div class="down_right">
                <div class="num">+65.32%</div>
                <p class="down_text">同比增长率</p>
              </div>
            </div>
          </div>
        </div>
        <div class="top_box two">
          <div class="title">本月分值情况</div>
          <div class="mid_content">
            <div class="content_top">
              <p class="content_text">
                <span class="txt">初始扣分</span
                ><span class="txt_num">9856241</span>
              </p>
              <p class="content_text">
                <span class="txt">核查扣分</span
                ><span class="txt_num">9856241</span>
                <span class="txt_small">占比：87.21%</span>
              </p>
              <p class="content_text">
                <span class="txt">申诉分值</span
                ><span class="txt_num">9856241</span>
                <span class="txt_small">占比：87.21%</span>
              </p>
              <p class="content_text">
                <span class="txt">累计扣分</span
                ><span class="txt_num">9856241</span>
              </p>
            </div>
            <div class="content_down">
              <div class="down_left">
                <div class="num">+65.32%</div>
                <p class="down_text">环比增长率</p>
              </div>
              <div class="down_right">
                <div class="num">+65.32%</div>
                <p class="down_text">同比增长率</p>
              </div>
            </div>
          </div>
        </div>
        <div class="top_box three">
          <div class="title">今日分值情况</div>
          <div class="mid_content">
            <div class="content_top">
              <p class="content_text">
                <span class="txt">初始扣分</span
                ><span class="txt_num">9856241</span>
              </p>
              <p class="content_text">
                <span class="txt">核查扣分</span
                ><span class="txt_num">9856241</span>
                <span class="txt_small">占比：87.21%</span>
              </p>
              <p class="content_text">
                <span class="txt">申诉分值</span
                ><span class="txt_num">9856241</span>
                <span class="txt_small">占比：87.21%</span>
              </p>
              <p class="content_text">
                <span class="txt">累计扣分</span
                ><span class="txt_num">9856241</span>
              </p>
            </div>
            <div class="content_down">
              <div class="down_left">
                <div class="num">+65.32%</div>
                <p class="down_text">环比增长率</p>
              </div>
              <div class="down_right">
                <div class="num">+65.32%</div>
                <p class="down_text">同比增长率</p>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="mid_down">
        <div class="down_content">
          <img class="content_title" src="../../../assets/images/title.png" />
          <div style="margin: 20px 0;">
            <el-radio-group v-model="radio1">
              <el-radio-button label="1">部门评估</el-radio-button>
              <el-radio-button label="2">个人评估</el-radio-button>
            </el-radio-group>
          </div>
          <div class="form">
            <el-form ref="form" :model="form" label-width="100px">
              <el-form-item label="请选择部门：">
                <el-select
                  v-model="form.region"
                  placeholder="请选择部门"
                  style="width: 100%;"
                >
                  <el-option label="区域一" value="shanghai"></el-option>
                  <el-option label="区域二" value="beijing"></el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="请选择时间：">
                <el-date-picker
                  type="date"
                  placeholder="选择日期"
                  v-model="form.date1"
                  style="width: 100%;"
                ></el-date-picker>
              </el-form-item>
              <el-form-item label="请选择类型：" style="text-align: left;">
                <el-radio-group v-model="form.resource">
                  <el-radio label="0">按年</el-radio>
                  <el-radio label="1">按月</el-radio>
                  <el-radio label="2">按天</el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item>
                <el-button
                  type="primary"
                  @click="onSubmit"
                  style="margin-top: 20px;transform: translateX(-50%);"
                  >立即创建</el-button
                >
              </el-form-item>
            </el-form>
          </div>
        </div>
      </div>
    </div>
    <div class="right">
      <div class="right_top">
        <div class="title">
          部门绩效总分排名TOP10
        </div>
        <dv-scroll-ranking-board
          :config="config"
          style="width:100%;height:93%"
        />
      </div>
      <div class="right_mid"></div>
      <div class="right_down"></div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      radio1: "",
      form: {
        date1: "",
        type: [],
        resource: "",
      },
      config: {
        data: [
          {
            name: "周口",
            value: 55,
          },
          {
            name: "南阳",
            value: 120,
          },
          {
            name: "西峡",
            value: 78,
          },
          {
            name: "驻马店",
            value: 66,
          },
          {
            name: "新乡",
            value: 80,
          },
          {
            name: "信阳",
            value: 45,
          },
          {
            name: "漯河",
            value: 29,
          },
        ],
      },
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
.page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  overflow: hidden;
  background: unset;
  font-family: "微软雅黑 Bold", "微软雅黑 Regular", "微软雅黑", sans-serif;

  .left,
  .mid,
  .right {
    width: 24%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .mid {
    flex: 1;
    justify-content: space-between;
    .mid_top,
    .mid_down {
      width: 100%;
    }
    .mid_top {
      padding: 0 10px;
      height: 40%;
      display: flex;
      justify-content: space-around;
      .top_box {
        width: 31%;
        height: 100%;
        border-width: 2px;
        padding: 12px;
        border-style: solid;
        border-color: rgba(255, 255, 255, 1);
        border-radius: 8px;
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        box-shadow: none;
        .title {
          font-weight: 700;
          font-style: normal;
          font-size: 14px;
        }
        .mid_content {
          width: 100%;
          height: 100%;
          color: #fff;
          overflow: hidden;
          .content_top {
            width: 100%;
            height: 70%;
            display: flex;
            justify-content: space-evenly;
            flex-direction: column;
            border-bottom: 2px solid rgb(240, 240, 240);
            .content_text {
              position: relative;
              margin-bottom: 5px;
              font-size: 14px;
              .txt {
                display: inline-block;
                width: 30%;
              }
              .txt_num {
                display: inline-block;
                width: 70%;
                text-align: right;
                font-weight: 600;
              }
              .txt_small {
                position: absolute;
                right: 0;
                top: 20px;
                font-size: 12px;
              }
            }
          }
          .content_down {
            width: 100%;
            height: auto;
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            .down_left,
            .down_right {
              padding: 8px 0;
              width: 50%;
              height: 100%;
              text-align: center;
              .down_text {
                font-size: 12px;
              }
              .num {
                font-weight: 700;
                font-style: normal;
                font-size: 18px;
                color: #ffffff;
              }
            }
            .down_left {
              border-right: 2px solid rgb(240, 240, 240);
            }
          }
        }
      }
      .one {
        background: linear-gradient(
          180deg,
          rgba(241, 189, 76, 1) 0%,
          rgba(237, 133, 77, 1) 100%
        );
        .title {
          color: #7d2d00;
        }
      }
      .two {
        background: linear-gradient(
          180deg,
          rgba(96, 155, 248, 1) 0%,
          rgba(102, 135, 244, 1) 100%
        );
        .title {
          color: #001c80;
        }
      }
      .three {
        background: linear-gradient(
          180deg,
          rgba(76, 201, 245, 1) 0%,
          rgba(19, 149, 235, 1) 100%
        );
        .title {
          color: #004679;
        }
      }
    }
    .mid_down {
      width: 96%;
      height: 58%;
      border-radius: 8px;
      -moz-box-shadow: none;
      -webkit-box-shadow: none;
      box-shadow: none;
      margin: 0 auto;
      background: url(../../../assets/images/u10938.svg) no-repeat;
      background-size: cover;
      overflow: hidden;
      .down_content {
        width: 100%;
        height: 100%;
        text-align: center;
        padding: 40px 30px 10px 30px;
        .form {
          width: 70%;
          margin: 0 auto;
        }
      }
    }
  }
  .left_top,
  .left_mid,
  .left_down,
  .right_top,
  .right_mid,
  .right_down {
    width: 100%;
    height: 33%;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    .title {
      font-weight: 600;
      margin-bottom: 5px;
    }
    /deep/.info-name,
    /deep/.ranking-value {
      color: #000;
    }
  }
  .left_mid,
  .right_mid {
    width: 100%;
    height: 30%;
    margin: 15px 0;
  }
}
</style>
