aaa
wujingjing
2025-02-08 40d796814fc688c760004719b773c0b8caf2e334
src/components/chat/chatComponents/summaryCom/components/deviceLastValue/MonitorContent.vue
@@ -24,8 +24,13 @@
            height: `${CELL_HEIGHT}px`,
         }"
      >
         <span class="cursor-pointer" @mouseover="valueMouseOver($event, item)" @mouseleave="valueMouseLeave">
            {{ item[type] }}
         <span
            class="cursor-pointer"
            @mouseover="valueMouseOver($event, item)"
            @mouseleave="valueMouseLeave"
            @click="emit('itemClick', item, row)"
         >
            {{ row.unit ? `${item[type]?.['OVALUE'] ?? '-'} ${row.unit}` : item[type]?.['OVALUE'] ?? '' }}
         </span>
      </div>
      <div
@@ -49,7 +54,9 @@
            </div>
            <div v-if="hoverState.data?.[type] || hoverState.data?.[type] === 0" class="flex">
               <div class="w-8">监测</div>
               <div class="before:content-[':'] before:pr-1.5">{{ hoverState.data?.[type] }}</div>
               <div class="before:content-[':'] before:pr-1.5">
                  {{ row.unit ? `${hoverState.data?.[type]?.['OVALUE'] ?? '-'} ${row.unit}` : hoverState.data?.[type]?.['OVALUE'] ?? '' }}
               </div>
            </div>
            <div class="flex" v-if="hoverState.data?.OTIME">
               <div class="w-8">时间</div>
@@ -64,6 +71,8 @@
import { reactive, type PropType } from 'vue';
import { BORDER_COLOR, CELL_HEIGHT, CONTENT_CELL_CLASS, ROW_HEADER_CELL_CLASS, THICK_BORDER_WIDTH } from './constants';
import type { MonitorValue } from './types';
const emit = defineEmits(['itemClick']);
const props = defineProps({
   /** @description 标题 */
   title: {
@@ -80,6 +89,9 @@
   firstColWidth: {
      type: Number,
   },
   row: {
      type: Object as PropType<any>,
   },
   restColWidth: {
      type: Number,