licp
2024-12-24 c70e37453d06f8eb6eddeddb3085548541cd34b5
src/components/view/index-index.vue
@@ -314,6 +314,8 @@
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10">
        <div class="right-1 card" v-if="getNumberFourTypes">
          <div class="right-1-item">
        <div class="right-1 card">
          <div class="right-1-item" @click="openNotice">
            <div class="img">
@@ -889,10 +891,10 @@
            case '月':
              const year = new Date(this.time.month).getFullYear();
              const month = new Date(this.time.month).getMonth();
              const day = new Date(year, month + 1, 0).getDate(); //
              // 设置起始日期和结束日期
              this.startTime = new Date(year, month, 1).toISOString().slice(0, 10); // 月初
              this.endTime = new Date(year, month + 1, 0).toISOString().slice(0, 10); // 月末
              this.startTime = `${year}-${month + 1}-01`
              this.endTime = `${year}-${month + 1}-${day}` // 月末
              break;
            case '年':
              const year0 = new Date(this.time.year).getFullYear();
@@ -907,6 +909,7 @@
          // 设置起始日期和结束日期
          this.startTime = new Date(year, month, 1).toISOString().slice(0, 10); // 月初
          this.endTime = new Date(year, month + 1, 0).toISOString().slice(0, 10); // 月末
          this.time.month = new Date()
        }
        this.initEchart()
      },