From a09f0991bab9791e0c4911dbe4077579bc7016f4 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期三, 09 十月 2024 23:31:47 +0800
Subject: [PATCH] update
---
src/views/console/base/Add.vue | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/src/views/console/base/Add.vue b/src/views/console/base/Add.vue
index 5a4e836..8027a4e 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-09 22:50:13
+ * @LastEditTime: 2024-10-09 23:30:14
* @FilePath: /cps-web/src/views/console/base/Add.vue
-->
<template>
@@ -375,14 +375,21 @@
},
})
// 浼樺厛
- this.months[i].attributes.push({
- dates: dates.filter(v => v.isHighPriority === 1).map(v => v.calendarDate),
- bar: {
- style: {
- backgroundColor: 'red',
- }
- },
- })
+ console.log('------------->>>>', dates)
+ let hiIndex = this.months[i].attributes.findIndex(v => v.bar)
+ if (hiIndex > -1) {
+ this.months[i].attributes[hiIndex].dates.push(...dates.filter(v => v.isHighPriority === 1).map(v => v.calendarDate))
+ } else {
+ this.months[i].attributes.push({
+ dates: dates.filter(v => v.isHighPriority === 1).map(v => v.calendarDate),
+ bar: {
+ style: {
+ backgroundColor: 'red',
+ }
+ },
+ })
+ }
+
this.months[i].attributes[1] = {
highlight: true,
dates: []
@@ -398,6 +405,7 @@
return false
},
changeHigh(val) {
+ console.log('------------changeHigh')
if (this.currentDateItem) {
// 璁剧疆浼樺厛
let index = this.currentDateItem.attributes.findIndex(item => !!item.bar)
--
Gitblit v1.9.3