1
lzhe
2024-10-10 18852cbde460274f3b204fd3ce57a6e5e87cc49b
src/views/console/base/CalenderTab.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-04-04 22:45:43
 * @LastEditors: gaoshp
 * @LastEditTime: 2024-10-08 22:01:18
 * @LastEditTime: 2024-10-09 22:59:25
 * @FilePath: /cps-web/src/views/console/base/CalenderTab.vue
-->
<template>
@@ -282,7 +282,7 @@
                    })
                    for (let i = 0; i < 12; i++) {
                        data.calendarDayVOList.map(v => v.modelId)
                        let modelIds = [...new Set(data.calendarDayVOList.map(v => v.modelId))]
                        let ext = modelIds.map(v => {
                            let ban = this.shiftListName.find(item => item.id === v)
@@ -303,6 +303,8 @@
                                },
                            }
                        })
                        console.log('---------youxian')
                        this.months.push({
                            year: year,
                            month: i,
@@ -314,7 +316,18 @@
                                        return moment(item).month() === i
                                    })
                                },
                                ...ext
                                ...ext,
                                // 优先
                                {
                                    dates: data.calendarDayVOList.filter(item => {
                                        return moment(item.calendarDate).month() === i
                                    }).filter(item => item.isHighPriority).map(item => item.calendarDate),
                                    bar: {
                                        style: {
                                            backgroundColor: 'red',
                                        }
                                    },
                                }
                            ]
                        })
                    }