lxf преди 3 дни
родител
ревизия
db54ca16a5

+ 1 - 0
src/views/old_mini/agri_file/components/reportPanel.vue

@@ -188,6 +188,7 @@ const TYPE_LABEL_MAP = {
     stress: "胁迫报告",
     diagnosis: "巡园诊断报告",
     patrol: "巡园诊断报告",
+    abnormal: "巡园诊断报告",
 };
 
 /** 报告生成状态轮询间隔 */

+ 10 - 10
src/views/old_mini/agri_file/pages/abnormal_diagnosis_report.vue

@@ -80,8 +80,8 @@
                             :key="item.id"
                             class="diag-item"
                         >
-                            <span v-if="item.tag" class="diag-item__tag">{{ item.tag }}</span>
-                            <div v-if="item.title" class="diag-item__title">{{ item.title }}</div>
+                            <span v-if="item.title" class="diag-item__tag">{{ item.title }}</span>
+                            <!-- <div v-if="item.title" class="diag-item__title">{{ item.title }}</div> -->
                             <div v-if="item.content" class="diag-item__desc">{{ item.content }}</div>
                         </div>
                     </div>
@@ -550,7 +550,7 @@ onMounted(() => {
 
     &__cover {
         width: 100px;
-        height: 86px;
+        // height: 86px;
         border-radius: 6px;
         object-fit: cover;
         flex-shrink: 0;
@@ -576,10 +576,10 @@ onMounted(() => {
         color: rgba(255, 255, 255, 0.5);
         word-break: break-all;
         text-align: justify;
-        display: -webkit-box;
-        -webkit-line-clamp: 4;
-        -webkit-box-orient: vertical;
-        overflow: hidden;
+        // display: -webkit-box;
+        // -webkit-line-clamp: 4;
+        // -webkit-box-orient: vertical;
+        // overflow: hidden;
     }
 }
 
@@ -599,13 +599,13 @@ onMounted(() => {
     &__tag {
         display: inline-block;
         padding: 0 8px;
-        height: 22px;
-        line-height: 20px;
+        height: 26px;
+        line-height: 26px;
         border-radius: 3px;
         background: rgba(255, 212, 137, 0.08);
         border: 1px solid rgba(255, 212, 137, 0.5);
         color: #ffd489;
-        font-size: 12px;
+        font-size: 14px;
         box-sizing: border-box;
     }
 

+ 29 - 13
src/views/old_mini/agri_file/pages/diagnosisReport.vue

@@ -1152,14 +1152,12 @@ onBeforeUnmount(() => {
         .report-tabs {
             display: flex;
             align-items: center;
-            gap: 4px;
-            padding: 4px;
-            overflow-x: auto;
-            -webkit-overflow-scrolling: touch;
-            scrollbar-width: none;
-            border-radius: 12px;
-            background: rgba(255, 255, 255, 0.06);
-            border: 1px solid rgba(255, 255, 255, 0.08);
+            justify-content: space-between;
+            padding-bottom: 12px;
+            // gap: 6px;
+            // overflow-x: auto;
+            // -webkit-overflow-scrolling: touch;
+            // scrollbar-width: none;
 
             &::-webkit-scrollbar {
                 display: none;
@@ -1167,20 +1165,38 @@ onBeforeUnmount(() => {
 
             &__item {
                 flex: 0 0 auto;
+                width: 80px;
                 padding: 8px 12px;
                 border-radius: 8px;
                 font-size: 13px;
-                line-height: 18px;
-                white-space: nowrap;
-                color: rgba(255, 255, 255, 0.45);
+                box-sizing: border-box;
+                line-height: 20px;
+                background: rgba(37, 37, 41, 0.8);
+                text-align: center;
+                color: #E1E1E1;
                 border: 1px solid transparent;
                 cursor: pointer;
 
                 &.active {
-                    border: 1px solid rgba(255, 212, 137, 0.12);
-                    background: rgba(255, 212, 137, 0.1);
+                    border: 1px solid rgba(255, 212, 137, 0.4);
+                    background: #1E180E;
                     color: #FFD489;
                     font-weight: 500;
+                    position: relative;
+                    &::after {
+                        content: "";
+                        position: absolute;
+                        left: 0;
+                        right: 0;
+                        width: 0;
+                        height: 0;
+                        bottom: -7px;
+                        margin: 0 auto;
+                        border-left: 8px solid transparent;
+                        border-top: 7px solid #78633F;
+                        border-bottom: 0px solid transparent;
+                        border-right: 8px solid transparent;
+                    }
                 }
             }
         }