yangyuxuan 5 tháng trước cách đây
mục cha
commit
af4e8ae521

+ 18 - 2
src/views/routineCommandMap/RightSection/EventReport/index.vue

@@ -18,11 +18,16 @@
         <div class="td">
           <div class="address-box">
             <i class="address-icon" />
-            <div class="address-text">{{ item.address }}</div>
+            <div class="address-text" :title="item.address">{{ item.address }}</div>
           </div>
         </div>
         <div class="td">
-          <dict-tag :class="['0', '1'].includes(item.event_type) ? 'primary-tag' : 'success-tag'" :options="mm_event_type" :value="item.event_type" />
+          <dict-tag
+            :class="['0', '1'].includes(item.event_type) ? 'primary-tag' : 'success-tag'"
+            :options="mm_event_type"
+            :value="item.event_type"
+            :title="typeContent(mm_event_type, item.event_type)"
+          />
         </div>
         <div class="td text1" @click="handleShowDetail(item)">{{ item.event_title }}</div>
         <div class="td">{{ item.event_time }}</div>
@@ -117,6 +122,17 @@ const getEventStatusClass = (value) => {
   }
   return className;
 };
+
+const typeContent = (arrayInfo, index) => {
+  let temp = '';
+  for (let i = 0; i < arrayInfo.length; i++) {
+    if (arrayInfo[i].value === index) {
+      temp = arrayInfo[i].label;
+      break;
+    }
+  }
+  return temp;
+};
 </script>
 
 <style lang="scss" scoped>