lilei il y a 2 mois
Parent
commit
dd9e7bdb21
1 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. 2 5
      src/views/reportData/regionTypeBusinessReport/list.vue

+ 2 - 5
src/views/reportData/regionTypeBusinessReport/list.vue

@@ -101,7 +101,7 @@ const renderContent = (value, row, index) => {
     return {
       children: retVal == '--' ? '' : retVal,
       attrs: {
-        style: isStrong ? 'font-weight: bold;color:red;font-size:14px;' : 'color:#ff0000;font-weight: bold;'
+        style: 'font-weight: bold;color:red;font-size:14px;'
       }
     }
   }
@@ -192,12 +192,9 @@ export default {
           customRender: (text, row, index) => {
             const isStrong = row.category.indexOf('合计') >= 0
             const isRed = row.category == '全品类(含NGK)' || row.category == '箭牌喇叭' || row.category == '轮胎'
-            if (isStrong) {
+            if (isStrong || isRed) {
               return <a-button size="small" type="link" class="button-error" style="font-weight:bold;font-size:14px;">{text}</a-button>
             }
-            if (isRed) {
-              return <a-button size="small" type="link" class="button-error" style="font-weight:bold;">{text}</a-button>
-            }
             return <a-button size="small" type="link" class="button-default">{text}</a-button>
           }
         },