无人机管理后台前端(已迁走)
rain
2025-05-15 8bcae8a5e128751396cfca7ba815778f366007c2
事件工单状态显示
1 files modified
6 ■■■■ changed files
src/views/tickets/ticket.vue 6 ●●●● patch | view | raw | blame | history
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) },