Kaynağa Gözat

执行日志返回意向度展示

zyy 2 hafta önce
ebeveyn
işleme
4d90bdd18d
1 değiştirilmiş dosya ile 20 ekleme ve 2 silme
  1. 20 2
      src/views/company/companyVoiceRobotic/index.vue

+ 20 - 2
src/views/company/companyVoiceRobotic/index.vue

@@ -634,6 +634,15 @@
                       <div class="customer-detail">
                         <div class="customer-name-row">
                           <span class="customer-name">{{ record.customerName }}</span>
+
+                          <el-tag
+                            v-if="record.intention"
+                            size="small"
+                            type="info"
+                            class="status-tag">
+                            意向度:{{ getIntentionLabel(record.intention) }}
+                          </el-tag>
+
                           <el-tag
                             :type="getWorkflowStatusType(record.workflowStatus)"
                             size="small"
@@ -1538,7 +1547,8 @@ export default {
         })
         this.execLogs.list = (res.rows || []).map(item => ({
           ...item,
-          contentList: item.contentList || ''
+          contentList: item.contentList || '',
+          intention: item.intention || ''
         }))
         this.execLogs.total = res.total || 0
         // this.execLogs.stats = res.stats || {
@@ -1669,7 +1679,15 @@ export default {
       } catch (e) {
           return false
       }
-    }
+    },
+    getIntentionLabel(val) {
+      if (val === null || val === undefined || val === '') {
+          return '-'
+      }
+
+      const item = (this.levelList || []).find(e => String(e.dictValue) === String(val))
+      return item ? item.dictLabel : val
+    },
   }
 };
 </script>