From 8bfc9743f7f2c02c0e2c6de139dca17b2dde5cb4 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 26 十二月 2024 16:03:14 +0800 Subject: [PATCH] 完成人员迁移 --- src/components/view/index-index.vue | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/view/index-index.vue b/src/components/view/index-index.vue index bfe5816..a5075c7 100644 --- a/src/components/view/index-index.vue +++ b/src/components/view/index-index.vue @@ -314,7 +314,7 @@ </div> </el-col> <el-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10"> - <div class="right-1 card"> + <div class="right-1 card" v-if="getNumberFourTypes"> <div class="right-1-item" @click="openNotice"> <div class="img"> <img src="../../../static/img/index-0.svg" alt=""> @@ -889,10 +889,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 +907,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() }, -- Gitblit v1.9.3