<style lang="scss" scoped>
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: #000 !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

.card_title {
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.88);
}

.card_header_count {
  margin: 5px;
  padding: 5px 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.88);
}

.todos_card {
  .card_content {
    padding: 0 10px;
    height: 65vh;
    width: 100%;
    overflow-y: auto;

    .card_content_item {
      margin-bottom: 10px;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid rgba(0, 0, 0, 0.15);
      display: flex;
      justify-content: space-between;
      align-items: center;

      .card_content_item_left {
        .card_content_item_left_top {
          display: flex;

          .title {
            font-weight: 600;
            font-size: 14px;
            color: rgba(0, 10, 26, 0.89);
          }

          .text {
            padding-left: 10px;
            font-weight: 400;
            font-size: 14px;
            color: rgba(0, 0, 0, 0.65);
          }
        }

        .card_content_item_left_bottom {
          margin-top: 10px;
          font-weight: 400;
          font-size: 12px;
          color: rgba(0, 0, 0, 0.45);
        }
      }
    }
  }
}

.notice_card {
  .card_content {
    padding: 0 10px;
    height: 65vh;
    width: 100%;
    overflow-y: auto;

    .card_content_item {
      margin-bottom: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .card_content_item_left {
        display: flex;
        align-items: flex-start;

        .card_content_item_tag {
          width: 40px;
          margin-right: 10px;
          padding: 2px 8px;
          background: #f5f5f5;
          font-weight: 400;
          font-size: 12px;
          color: #000000;
          border-radius: 4px;
        }

        .card_content_item_text {
          width: 280px;
          display: inline-block;
          font-weight: 400;
          font-size: 14px;
          color: #000;
        }
      }

      .card_content_item_right {
        width: 90px;
        font-weight: 400;
        font-size: 14px;
        color: #141414;
      }
    }
  }
}
</style>
<template>
  <div class="overall-container">
    <!-- <el-row :gutter="20">
      <el-col :span="16">
        <el-card class="todos_card" :style="{ height: cardHeight }">
          <template #header>
            <div class="card-header">
              <span class="card_title">代办事项</span>
              <span class="card_header_count">{{ toDos.length }}</span>
            </div>
          </template>
          <div class="card_content">
            <div class="card_content_item" v-for="(item, index) in toDos" :key="index">
              <div class="card_content_item_left">
                <div class="card_content_item_left_top">
                  <div class="title">{{ item.title }}</div>
                  <div class="text">{{ item.text }}</div>
                </div>
                <div class="card_content_item_left_bottom">{{ item.date }}</div>
              </div>
              <div class="card_content_item_right">
                <el-button type="primary" plain>去处理</el-button>
              </div>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :span="8">
        <el-card class="notice_card" :style="{ height: cardHeight }">
          <template #header>
            <div class="card-header">
              <span class="card_title">通知</span>
            </div>
          </template>
          <div class="card_content">
            <div class="card_content_item" v-for="(item, index) in notice" :key="index">
              <div class="card_content_item_left">
                <span class="card_content_item_tag">{{ item.tag }}</span>
                <span class="card_content_item_text">{{ item.text }}</span>
              </div>
              <div class="card_content_item_right">{{ item.date }}</div>
            </div>
          </div>
        </el-card>
      </el-col>
    </el-row> -->
  </div>
</template>

<script setup>
// import { ref } from 'vue'
// const cardHeight = ref('75vh')
// const toDos = ref([])

// const notice = ref([
//   {
//     tag: '保障平台',
//     text: '测试版本0.1试运行',
//     date: '2025-05-20',
//   },
// ])

</script>
