From fd7586c8d91473d2850af1e48b12f1a289e6b8d1 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期四, 13 六月 2024 00:10:43 +0800 Subject: [PATCH] 新增文件 --- src/views/console/base/CalenderTab.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/console/base/CalenderTab.vue b/src/views/console/base/CalenderTab.vue index 2d940fd..99a48ce 100644 --- a/src/views/console/base/CalenderTab.vue +++ b/src/views/console/base/CalenderTab.vue @@ -1,7 +1,7 @@ <!-- * @Date: 2024-04-04 22:45:43 - * @LastEditors: Sneed - * @LastEditTime: 2024-05-05 21:14:09 + * @LastEditors: lzhe lzhe@example.com + * @LastEditTime: 2024-06-11 15:26:41 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/base/CalenderTab.vue --> <template> @@ -90,6 +90,7 @@ this.selectInfo = { ...row } + this.months = [] this.$HTTP.get(`/api/blade-cps/calendar/${row.id}`).then(res => { if (res.code === 200) { console.log(res.data) @@ -149,6 +150,7 @@ arr.push(day.format('YYYY-MM-DD')) } }) + for (let i = 0; i < 12; i++) { this.months.push({ year: year, @@ -164,8 +166,9 @@ { highlight: true, dates: data.calendarDayVOList.filter(item => { - return moment(item).month() === i - }), + console.log(moment(item).month(), '>>>123') + return moment(item.calendarDate).month() === i + }).map(v => v.calendarDate), } ] }) @@ -207,6 +210,5 @@ .vc-arrow { display: none !important; - ; } </style> \ No newline at end of file -- Gitblit v1.9.3