1
lzhe
2024-10-09 db38e2783a8e9a4c9f886aa15cf895caef9290ec
src/views/console/base/Add.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-05-04 16:37:48
 * @LastEditors: gaoshp
 * @LastEditTime: 2024-10-02 17:15:08
 * @LastEditTime: 2024-10-08 22:02:06
 * @FilePath: /cps-web/src/views/console/base/Add.vue
-->
<template>
@@ -361,10 +361,19 @@
                    }
                })
                if (dates.length > 0) {
                    let ban = this.shiftList.find(v => v.id === ext.modelId)
                    this.months[i].attributes.push({
                        dates: dates.map(v => v.calendarDate),
                        ...ext,
                        highlight: color.stringToColor(ext.modelId)
                        // highlight: color.stringToColor(ext.modelId),
                        highlight: {
                            style: {
                                'background-color': ban.colour
                            }
                        },
                        popover: {
                            label: `${ban?.code}-${ban?.name}`
                        },
                    })
                    this.months[i].attributes[1] = {
                        highlight: true,