无人机管理后台前端(已迁走)
shuishen
2025-05-15 9bd66f1fd693477483eeda188956ff74b5a1842e
事件工单复核功能显示优化
1 files modified
16 ■■■■■ changed files
src/views/tickets/ticket.vue 16 ●●●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue
@@ -453,8 +453,7 @@
              :preview-src-list="getImageList()" :initial-index="currentImageIndex - 1" class="preview-image"
              style="cursor: pointer"> -->
            <el-image v-if="currentReviewImage" :src="getPreviewUrl(currentReviewImage)" fit="fill"
              :initial-index="currentImageIndex - 1" class="preview-image"
              style="cursor: pointer">
              :initial-index="currentImageIndex - 1" class="preview-image" style="cursor: pointer">
              <template #error>
                <div class="image-error">
                  <i class="el-icon-picture-outline"></i>
@@ -869,10 +868,10 @@
    formattedDetailFields () {
      const fields = [
        { label: '工单名称', value: this.currentDetail.orderName },
        {
          label: '工单类型',
        {
          label: '工单类型',
          // 修改这里:使用 types 数组查找对应的 label
          value: this.types.find(t => t.value === this.currentDetail.type)?.label || this.currentDetail.type || '/'
          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 },
@@ -2436,6 +2435,9 @@
        function closeConfirm () {
          that.reCheckDialog = false
          that.page.currentPage = 1
          that.fetchTableData()
          that.fetchTabCounts()
          loading.close()
        }
@@ -2444,6 +2446,8 @@
          ElMessageBox.confirm(`预计复核执行时间为${res.data.data}`, '提示', {
            confirmButtonText: '确定',
            showCancelButton: false, // 关键配置
            closeOnClickModal: false,
            closeOnPressEscape: false,
            type: 'warning',
          }).then(() => {
            closeConfirm()
@@ -2979,7 +2983,7 @@
  :deep(.el-dialog__body) {
    padding: 0;
    background-color: #f5f7fa;
  }
}