From bf8c8db50a4a5ba16c2406c25d318bc85bf566d4 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 10 May 2025 14:24:34 +0800
Subject: [PATCH] 事件工单待处理,详情中点击受理后确认派发参数错误处理

---
 src/views/tickets/ticket.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index 8601289..26f87b7 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -593,7 +593,15 @@
           { label: '所属单位', prop: 'department', overHidden: true, tooltip: true },
           { label: '发起时间', prop: 'startTime', width: 160 },
           { label: '关联算法', prop: 'aiType', width: 150, overHidden: true, tooltip: true },
-          { label: '工单类型', prop: 'type', width: 130, overHidden: true, tooltip: true },
+          {
+            label: '工单类型',
+            prop: 'type',
+            width: 130,
+            overHidden: true,
+            tooltip: true,
+            type: 'select',
+            dicData: [],
+          },
           {
             label: '工单内容',
             prop: 'content',
@@ -1047,6 +1055,9 @@
           value: key,
         }))
 
+        const columnType = this.findObject(this.option.column, 'type')
+        columnType.dicData = this.types
+
         // 确保算法数据的映射一致
         this.algorithms =
           ai_type?.map(item => ({
@@ -1128,7 +1139,7 @@
             startTime: item.create_time,
             aiType: item.ai_types,
             content: item.content, // 将后端返回的 content 映射为 content
-            type: this.types.find(t => t.value === item.work_order_type_dict_key)?.label,
+            type: item.work_order_type_dict_key,
             keyData:
               !isNaN(longitude) && !isNaN(latitude)
                 ? `${longitude.toFixed(6)}, ${latitude.toFixed(6)}`

--
Gitblit v1.9.3