Pārlūkot izejas kodu

fix 达标率箭头

anxiaoxia 2 gadi atpakaļ
vecāks
revīzija
e54b8c1203
1 mainītis faili ar 9 papildinājumiem un 4 dzēšanām
  1. 9 4
      src/views/ReportForm/weekReport/envSurvey.vue

+ 9 - 4
src/views/ReportForm/weekReport/envSurvey.vue

@@ -31,8 +31,10 @@
                     <div>
                         <div>{{surveyTable.weekcoldProprotion}}<span>%</span></div>
                         <p  v-if="surveyTable.coldChainRatio">环比 {{surveyTable.coldChainRatio||'--'}}%
-                            <img src="../../../../static/images/icon_down.png" alt="" v-if="surveyTable.coldChainRatio&&surveyTable.coldChainRatio.includes('-')">
-                            <img src="../../../../static/images/icon_up.png" alt="" v-else>
+                            <span v-if="surveyTable.coldChainRatio!=0">
+                                <img src="../../../../static/images/icon_up.png" style="transform:rotate(180deg);" alt="" v-if="surveyTable.coldChainRatio&&surveyTable.coldChainRatio.includes('-')">
+                            <img src="../../../../static/images/icon_down.png" style="transform:rotate(180deg);" alt="" v-else>
+                            </span>
                         </p>
                     </div>
                 </div>
@@ -41,8 +43,11 @@
                     <div>
                         <div>{{surveyTable.weekhotProprotion}}<span>%</span></div>
                         <p  v-if="surveyTable.hotChainRatio">环比 {{surveyTable.hotChainRatio||'--'}}%
-                            <img src="../../../../static/images/icon_down.png" alt="" v-if="surveyTable.hotChainRatio&&surveyTable.hotChainRatio.includes('-')">
-                            <img src="../../../../static/images/icon_up.png" alt="" v-else>
+                            <span v-if="surveyTable.hotChainRatio!=0">
+                                <img src="../../../../static/images/icon_up.png" style="transform:rotate(180deg);" alt="" v-if="surveyTable.hotChainRatio&&surveyTable.hotChainRatio.includes('-')">
+                            <img src="../../../../static/images/icon_down.png" style="transform:rotate(180deg);" alt="" v-else>
+                            </span>
+                            
                         </p>
                     </div>
                 </div>