From e759e9be9d1fc11a92839b74df315f0126da47dd Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 09 May 2025 17:18:25 +0800
Subject: [PATCH] 事件工单报错调整
---
src/views/tickets/ticket.vue | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index 2621bb9..0ff1485 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -692,6 +692,7 @@
this.fetchDropdownData()
console.log('permission.tickets_processing_btn', this.permission.tickets_processing_btn)
console.log('permission', this.permission.tickets_tab_pending)
+
},
mounted () {
const href = this.$route.href
@@ -708,7 +709,6 @@
})
}
}
-
this.fetchTabCounts() // 新增:初始化时获取 tab 数据
this.fetchTableData()
@@ -986,13 +986,13 @@
}))
// 确保算法数据的映射一致
- this.algorithms = ai_type.map(item => ({
+ this.algorithms = ai_type?.map(item => ({
dict_key: item.dict_key,
dict_value: item.dict_value,
// 同时添加 label 和 value 以兼容两处使用
label: item.dict_value,
value: item.dict_key
- }))
+ })) || []
// 构建用户ID和名称的映射关系
this.userNameToIdMap = {}
--
Gitblit v1.9.3