diff --git a/src/views/dhr_demo/baoxiuguanli.vue b/src/views/dhr_demo/baoxiuguanli.vue index f2c0165..f093912 100644 --- a/src/views/dhr_demo/baoxiuguanli.vue +++ b/src/views/dhr_demo/baoxiuguanli.vue @@ -95,8 +95,8 @@
- 详情 - + 详情 + {{ task.actionText }}
@@ -853,7 +853,18 @@ const handleInspection7 = () => { align-items: center; padding-top: 12px; border-top: 1px solid #f0f2f5; - margin-top: 12px; + position: absolute; + bottom: 16px; + right: 16px; + left: 16px; + background-color: #fff; + padding: 12px 0 0 0; + z-index: 10; +} + +.task-actions .el-button { + border-radius: 16px; + padding: 6px 16px; } .task-card::before { diff --git a/src/views/dhr_demo/index.vue b/src/views/dhr_demo/index.vue index 01731b3..858fe55 100644 --- a/src/views/dhr_demo/index.vue +++ b/src/views/dhr_demo/index.vue @@ -1,184 +1,209 @@ @@ -187,14 +212,14 @@ import { ref, computed, watch } from 'vue'; import router from '@/router'; import TitleComponent from '../demo/components/TitleComponent.vue'; -// 生成年份选项,生成2020-2029年的年份范围 -const targetYear = 2025; -const years = ref(Array.from({ length: 10 }, (_, index) => 2020 + index)); -const selectedYear = ref(targetYear); -const selectedMonth = ref(9); +// 默认显示当前月份 +const currentDate = ref(new Date()); -// 默认显示2025年9月 -const currentDate = ref(new Date(targetYear, 8, 1)); +// 为了保持兼容性,保留这些变量 +const targetYear = 2025; +const years = ref([]); +const selectedYear = ref(currentDate.value.getFullYear()); +const selectedMonth = ref(currentDate.value.getMonth() + 1); // 减少月份 const decreaseMonth = () => { @@ -258,15 +283,13 @@ const updateYearAndMonth = () => { selectedMonth.value = currentDate.value.getMonth() + 1; }; -// 监听年份和月份变化,更新日历显示 -watch([selectedYear, selectedMonth], ([newYear, newMonth]) => { - const date = new Date(currentDate.value); - date.setFullYear(newYear); - date.setMonth(newMonth - 1); - currentDate.value = date; +// 监听日期变化,更新年份和月份 +watch(currentDate, (newDate) => { + selectedYear.value = newDate.getFullYear(); + selectedMonth.value = newDate.getMonth() + 1; }); -// 初始化年份和月份选择器 +// 初始化年份和月份 updateYearAndMonth(); // 弹窗相关状态管理 @@ -329,7 +352,8 @@ const handleInspection7 = () => { diff --git a/src/views/dhr_demo/shiyanrenwu.vue b/src/views/dhr_demo/shiyanrenwu.vue index b4787c0..1dbbd7a 100644 --- a/src/views/dhr_demo/shiyanrenwu.vue +++ b/src/views/dhr_demo/shiyanrenwu.vue @@ -106,8 +106,8 @@
- 详情 - + 详情 + {{ task.actionText }}
@@ -564,7 +564,7 @@ const handleInspection7 = () => { .task-card { background-color: #fff; - border-radius: 8px; + border-radius: 16px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); padding: 16px 16px 60px 16px; /* 底部留出更多空间给按钮 */ transition: box-shadow 0.2s ease; @@ -588,6 +588,11 @@ const handleInspection7 = () => { z-index: 10; } +.task-actions .el-button { + border-radius: 16px; + padding: 6px 16px; +} + .task-card::before { content: ''; position: absolute; @@ -635,8 +640,8 @@ const handleInspection7 = () => { } .task-status { - padding: 4px 10px; - border-radius: 6px; + padding: 4px 12px; + border-radius: 16px; font-size: 12px; font-weight: 500; border: 1px solid transparent; diff --git a/src/views/dhr_demo/xunjianjihua.vue b/src/views/dhr_demo/xunjianjihua.vue index 662bc78..1f6d7fe 100644 --- a/src/views/dhr_demo/xunjianjihua.vue +++ b/src/views/dhr_demo/xunjianjihua.vue @@ -55,7 +55,7 @@ >
- 搜索 + 搜索
@@ -97,19 +97,19 @@

本月完成巡检

-

42

+

{{ completedInspections }}

发现问题数

-

7

+

{{ totalProblems }}

已解决问题

-

5

+

{{ solvedProblems }}

平均完成时间

-

45分钟

+

{{ avgCompletionTime }}

@@ -117,56 +117,10 @@
- +
-

本月完成巡检

-
- - - - - - - - - - -
-

已解决问题

-

72%

-
-
- -
-
-
- 已解决 -
-
-
- 未解决 -
-
+

进度指标对比

+
@@ -175,28 +129,28 @@
完成率 - 68% + {{ completionRate }}%
-
-
+
+
解决率 - 72% + {{ resolutionRate }}%
-
-
+
+
及时率 - 60% + {{ timelinessRate }}%
-
-
+
+
@@ -212,46 +166,58 @@
温度异常率 - 85% + {{ problemTypes.temperature }}%
-
-
+
+
内存使用率 - 62% + {{ problemTypes.memory }}%
-
-
+
+
CPU负载 - 45% + {{ problemTypes.cpu }}%
-
-
+
+
响应时间 - 30% + {{ problemTypes.responseTime }}%
-
-
+
+
磁盘空间状态 - 15% + {{ problemTypes.diskSpace }}%
-
-
+
+
@@ -271,7 +237,7 @@
-
+

数据库性能巡检

正常 @@ -308,7 +274,7 @@
-
+

生产服务器日常巡检

需关注 @@ -352,7 +318,7 @@
-
+

网络设备安全巡检

有问题 @@ -396,9 +362,10 @@