1
lzhe
2024-05-13 f5edc2904945f37b164a7874d502cf002fae024e
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
 * @LastEditTime: 2024-05-05 21:20:22
 * @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,7 +166,8 @@
                                {
                                    highlight: true,
                                    dates: data.calendarDayVOList.filter(item => {
                                        return moment(item).month() === i
                                        console.log(moment(item).month(), '>>>123')
                                        return moment(item.calendarDate).month() === i
                                    }),
                                }
                            ]