Quellcode durchsuchen

个人画像-修改知识点上升-下降标识

吴朋磊 vor 2 Monaten
Ursprung
Commit
61b9fd04d2
1 geänderte Dateien mit 11 neuen und 4 gelöschten Zeilen
  1. 11 4
      src/views/analysisReport/personalProfile/zeroScoreKnowledge.vue

+ 11 - 4
src/views/analysisReport/personalProfile/zeroScoreKnowledge.vue

@@ -117,7 +117,8 @@
               </el-tooltip>
               <span class="item_tag" v-if="item.scoreRateDiff"
                 :style="{ backgroundColor: parseFloat(item.scoreRateDiff) > 0 ? '#3BA272' : '#F56C6C' }">
-                {{ item.scoreRateDiff }}%
+                <i>{{ item.scoreRateDiff }}% </i>
+                <i v-if="parseFloat(item.scoreRateDiff) !== 0" style="margin-top: 0px">{{ parseFloat(item.scoreRateDiff) > 0 ? '↑' : '↓' }}</i>
               </span>
               <span class="item_tag" v-if="item.isPush == 1" style="background-color: #2E64FA;">
                 有推题
@@ -1668,14 +1669,20 @@ export default {
           }
 
           .item_tag {
-            margin-left: 5px;
             color: #FFFFFF;
             font-size: 12px;
-            padding: 4px 0px;
-            width: 57px;
+            padding: 4px 6px;
+            margin-left: 5px;
             text-align: center;
             border-radius: 4px;
             font-weight: 400;
+            display: flex;
+            align-items: center;
+            justify-content: center;
+            gap: 4px;
+            i:last-child {
+              display: block;
+            }
           }
         }