From e235d36ee70f8538ac65af413d15d5b68087bc90 Mon Sep 17 00:00:00 2001
From: lq <121091329@qq.com>
Date: Thu, 4 Sep 2025 15:48:06 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../routes/modules/propertyMarketing.ts | 13 +++++
src/stores/modules/side-bar/constants.ts | 2 +
src/utils/DateUtils.ts | 56 -------------------
.../assignment-management/index.vue | 34 ++++++++---
4 files changed, 41 insertions(+), 64 deletions(-)
diff --git a/src/router/routes/modules/propertyMarketing.ts b/src/router/routes/modules/propertyMarketing.ts
index eab2175..c80e9ae 100644
--- a/src/router/routes/modules/propertyMarketing.ts
+++ b/src/router/routes/modules/propertyMarketing.ts
@@ -84,6 +84,19 @@ const COMPONENTS: AppRouteRecordRaw[] = [
},
component: () => import('@/views/property-marketing/assignment-management/index.vue'),
},
+ {
+ path: 'management-detail/:id',
+ name: 'managementDetail',
+ meta: {
+ locale: '任务详情',
+ requiresAuth: true,
+ requireLogin: true,
+ roles: ['*'],
+ hideInMenu: true,
+ activeMenu: 'MediaAccountAccountDashboard',
+ },
+ component: () => import('@/views/property-marketing/assignment-management/managementDetail.vue'),
+ },
{
path: 'detail/:id',
name: 'MediaAccountAccountDetails',
diff --git a/src/stores/modules/side-bar/constants.ts b/src/stores/modules/side-bar/constants.ts
index 3c458e8..de80a81 100644
--- a/src/stores/modules/side-bar/constants.ts
+++ b/src/stores/modules/side-bar/constants.ts
@@ -85,6 +85,8 @@ export const MENU_LIST = [
'MediaAccountAccountManagement',
'MediaAccountAccountDashboard',
'MediaAccountAccountDetails',
+ 'assignmentManagement',
+ 'managementDetail',
],
},
{
diff --git a/src/utils/DateUtils.ts b/src/utils/DateUtils.ts
index 9b2a237..dfcb77e 100644
--- a/src/utils/DateUtils.ts
+++ b/src/utils/DateUtils.ts
@@ -349,63 +349,7 @@ class DateUtils {
};
}
- /**
- * 获取当前日期信息(增强版,包含年月信息)
- * @returns 包含各种格式的当前日期信息
- */
- static getCurrentDateInfo() {
- const now = new Date();
- now.setHours(0, 0, 0, 0);
- const monthRange = this.getMonthRange();
- const weekRange = this.getWeekRange();
- const yearMonth = this.getCurrentYearMonth();
-
- return {
- current: {
- date: now,
- formatted: this.formatDate(now),
- dayOfWeek: this.getChineseDayOfWeek(now),
- day: now.getDate(),
- month: yearMonth.month,
- year: yearMonth.year,
- },
- month: {
- start: monthRange.start,
- end: monthRange.end,
- startFormatted: monthRange.startFormatted,
- endFormatted: monthRange.endFormatted,
- totalDays: this.getDaysInMonth(now.getFullYear(), now.getMonth() + 1),
- month: yearMonth.month,
- year: yearMonth.year,
- formatted: this.getFormattedYearMonth(),
- chinese: this.getChineseYearMonth(),
- },
- week: {
- start: weekRange.start,
- end: weekRange.end,
- startFormatted: weekRange.startFormatted,
- endFormatted: weekRange.endFormatted,
- weekNumber: this.getWeekNumber(now),
- },
- year: yearMonth.year,
- quarter: {
- number: this.getCurrentQuarter(),
- range: this.getCurrentQuarterRange(),
- },
- };
- }
-
- /**
- * 获取指定日期所在的周数
- * @param date 日期对象
- * @returns 周数 (1-53)
- */
- static getWeekNumber(date: Date): number {
- const firstDayOfYear = new Date(date.getFullYear(), 0, 1);
- const pastDaysOfYear = (date.getTime() - firstDayOfYear.getTime()) / 86400000;
- return Math.ceil((pastDaysOfYear + firstDayOfYear.getDay() + 1) / 7);
- }
/**
* 获取指定年份的所有月份信息
diff --git a/src/views/property-marketing/assignment-management/index.vue b/src/views/property-marketing/assignment-management/index.vue
index 135961e..d8ef5d7 100644
--- a/src/views/property-marketing/assignment-management/index.vue
+++ b/src/views/property-marketing/assignment-management/index.vue
@@ -325,6 +325,11 @@
{{ deleteContent }}
+
+
+
+
+