From 759a2c06bbd187a19c78cb408456e4fb79831840 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 03 十一月 2026 19:16:59 +0800
Subject: [PATCH] 巡检任务频次增加“每年”,日期不精确到时分
---
src/views/equipmentManagement/inspectionManagement/index.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/views/equipmentManagement/inspectionManagement/index.vue b/src/views/equipmentManagement/inspectionManagement/index.vue
index 8c0d52c..3935963 100644
--- a/src/views/equipmentManagement/inspectionManagement/index.vue
+++ b/src/views/equipmentManagement/inspectionManagement/index.vue
@@ -160,6 +160,8 @@
? "姣忓懆"
: params === "MONTHLY"
? "姣忔湀"
+ : params === "YEARLY"
+ ? "姣忓勾"
: params === "QUARTERLY"
? "瀛e害"
: "";
@@ -167,9 +169,15 @@
},
{
prop: "frequencyDetail",
- label: "寮�濮嬫棩鏈熶笌鏃堕棿",
+ label: "鏃ユ湡",
minWidth: 200,
formatter: (row, column, cellValue) => {
+ // 姣忓勾鏍煎紡涓� "鏈�,鏃�"锛屼笉灞曠ず鏃跺垎
+ if (row.frequencyType === "YEARLY") {
+ const parts = String(cellValue || "").split(",");
+ if (parts.length < 2 || !parts[0] || !parts[1]) return "";
+ return `${parts[0]}鏈�${parts[1]}鏃;
+ }
// 鍏堝垽鏂槸鍚︽槸瀛楃涓�
if (typeof cellValue !== "string") return "";
let val = cellValue;
--
Gitblit v1.9.3