@7365admin1/layer-common 3.2.2-staging.190 → 3.2.2-staging.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/DashboardMain.vue +16 -6
- package/package.json +1 -1
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
<v-col v-if="isWidgetVisible('todayAttentions')" cols="12" lg="6">
|
|
725
725
|
<div class="dashboard-card dashboard-panel figma-panel">
|
|
726
726
|
<div class="figma-panel-header">
|
|
727
|
-
<h2>
|
|
727
|
+
<h2>Needs Attention</h2>
|
|
728
728
|
</div>
|
|
729
729
|
<div class="figma-panel-body">
|
|
730
730
|
<div v-if="todayAttentions.length" class="figma-list">
|
|
@@ -2084,9 +2084,9 @@ const customizeWidgets = computed(() => {
|
|
|
2084
2084
|
},
|
|
2085
2085
|
{
|
|
2086
2086
|
key: "todayAttentions",
|
|
2087
|
-
title: "
|
|
2087
|
+
title: "Needs Attention",
|
|
2088
2088
|
description:
|
|
2089
|
-
"
|
|
2089
|
+
"Everything still pending or unacknowledged, not only today's.",
|
|
2090
2090
|
},
|
|
2091
2091
|
{
|
|
2092
2092
|
key: "workOrderStatus",
|
|
@@ -2487,6 +2487,12 @@ const dashboardTitle = computed(() => {
|
|
|
2487
2487
|
return `${getServiceDisplayName(props.serviceType || appName)} - Dashboard`;
|
|
2488
2488
|
});
|
|
2489
2489
|
|
|
2490
|
+
const taskScheduleTitle = computed(() => {
|
|
2491
|
+
if (selectedRange.value === "This Month") return "This Month's Task Schedule";
|
|
2492
|
+
if (selectedRange.value === "This Week") return "This Week's Task Schedule";
|
|
2493
|
+
return "Today's Task Schedule";
|
|
2494
|
+
});
|
|
2495
|
+
|
|
2490
2496
|
// ─── Primary list / staff config ─────────────────────────────────────────────
|
|
2491
2497
|
|
|
2492
2498
|
const primaryListConfig = computed(() =>
|
|
@@ -2497,7 +2503,11 @@ const primaryListConfig = computed(() =>
|
|
|
2497
2503
|
keys: ["activePatrolItems", "patrolItems"],
|
|
2498
2504
|
}
|
|
2499
2505
|
: {
|
|
2500
|
-
|
|
2506
|
+
// The endpoint behind this panel takes the selected period
|
|
2507
|
+
// (`getServiceTodayTaskSchedule` -> `getDateRange(period)`), so on the
|
|
2508
|
+
// Week or Month range the list was a week's or a month's work under a
|
|
2509
|
+
// heading that said "Today's".
|
|
2510
|
+
title: taskScheduleTitle.value,
|
|
2501
2511
|
route: "scheduleTask",
|
|
2502
2512
|
keys: [
|
|
2503
2513
|
"taskScheduleItems",
|
|
@@ -2780,7 +2790,7 @@ const printTableSections = computed<PrintTableSection[]>(() => {
|
|
|
2780
2790
|
},
|
|
2781
2791
|
{
|
|
2782
2792
|
key: "todayAttentions",
|
|
2783
|
-
title: "
|
|
2793
|
+
title: "Needs Attention",
|
|
2784
2794
|
columns: [
|
|
2785
2795
|
{ key: "title", label: "Attention", width: "40%", strong: true },
|
|
2786
2796
|
{ key: "subtitle", label: "Details / Subtitle", width: "60%" },
|
|
@@ -3727,7 +3737,7 @@ async function exportDashboard(format: "PDF" | "Word") {
|
|
|
3727
3737
|
}
|
|
3728
3738
|
wordHtml += `</tbody></table>`;
|
|
3729
3739
|
|
|
3730
|
-
wordHtml += `<div class="section-title">
|
|
3740
|
+
wordHtml += `<div class="section-title">Needs Attention</div>`;
|
|
3731
3741
|
wordHtml += `<table class="data-table">`;
|
|
3732
3742
|
wordHtml += `<thead><tr><th>Attention</th><th>Details / Subtitle</th></tr></thead><tbody>`;
|
|
3733
3743
|
if (todayAttentions.value.length > 0) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "3.2.2-staging.
|
|
5
|
+
"version": "3.2.2-staging.191",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|