Преглед на файлове

[Feat 0000] 预警看板添加跳转配置

houzekong преди 6 месеца
родител
ревизия
dfe2174259
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 1 1
      src/views/vent/home/billboard/components/BaseCard.vue
  2. 2 1
      src/views/vent/home/billboard/index.vue

+ 1 - 1
src/views/vent/home/billboard/components/BaseCard.vue

@@ -1,7 +1,7 @@
 <!-- eslint-disable vue/multi-word-component-names -->
 <template>
   <div class="card" :style="{ height: `${height}px` }">
-    <p class="card_title" @click="clickHandler">
+    <p class="card_title cursor-pointer" @click="clickHandler">
       <slot name="title">{{ title }}</slot>
     </p>
     <div class="card_content" :style="{ height: `${contentHeight}px` }">

+ 2 - 1
src/views/vent/home/billboard/index.vue

@@ -154,12 +154,13 @@
     GasStatus: '/gas/warn/home',
     FireStatus: '/fire/warn/home',
     Summary: '/monitorChannel/device-monitor/warningHistory',
+    Warning: '/monitorChannel/device-monitor/warningHistory',
   };
 
   // 页面跳转
   function openHandler(ip: string, orgcode) {
     // const url = `http://localhost:3100/login`;
-    if (props.billboardType == 'Summary') {
+    if (props.billboardType == 'Warning') {
       const newPage = router.resolve({ path: '/monitorChannel/device-monitor/warningHistory', query: { orgcode } });
       window.open(newPage.href, '_blank');
     } else {