From db38e2783a8e9a4c9f886aa15cf895caef9290ec Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期三, 09 十月 2024 15:57:15 +0800
Subject: [PATCH] 1
---
src/views/console/base/Add.vue | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/views/console/base/Add.vue b/src/views/console/base/Add.vue
index 196d6a2..eb1458e 100644
--- a/src/views/console/base/Add.vue
+++ b/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,
--
Gitblit v1.9.3