From 8bcae8a5e128751396cfca7ba815778f366007c2 Mon Sep 17 00:00:00 2001
From: rain <1679827795@qq.com>
Date: Thu, 15 May 2025 17:24:24 +0800
Subject: [PATCH] 事件工单状态显示
---
src/views/tickets/ticket.vue | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index 2b71973..6a355cf 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -869,7 +869,11 @@
formattedDetailFields () {
const fields = [
{ label: '工单名称', value: this.currentDetail.orderName },
- { label: '工单类型', value: this.currentDetail.type },
+ {
+ label: '工单类型',
+ // 修改这里:使用 types 数组查找对应的 label
+ value: this.types.find(t => t.value === this.currentDetail.type)?.label || this.currentDetail.type || '/'
+ },
{ label: '关联任务', value: this.currentDetail.job_name || '/' },
{ label: '任务发起人', value: this.currentDetail.creator },
{ label: '当前状态', value: this.mapStatus(this.currentDetail.status) },
--
Gitblit v1.9.3