luolei hace 5 años
padre
commit
c8db5d9c99
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/js/dayDetail.js
  2. 1 1
      src/js/payDetail.js

+ 1 - 1
src/js/dayDetail.js

@@ -129,7 +129,7 @@ function renderTab(data,hisId,activePage){
                 <td>${item.name || "-"}</td>
                 <td >${item.averageValue}</td>
                 <td >${item.lastAverageValue}</td>
-                <td style="display:${statisticsType==1?'block':'none'}">${item.lastYearAverageValue}</td>
+                ${statisticsType==1?'<td>'+item.lastYearAverageValue+'</td>':''}
             </tr>
         `
     }

+ 1 - 1
src/js/payDetail.js

@@ -132,7 +132,7 @@ function renderTab(data,hisId,activePage){
                 <td>${item.name || "-"}</td>
                 <td >${item.averageValue}</td>
                 <td >${item.lastAverageValue}</td>
-                <td style="display:${statisticsType==1?'block':'none'}">${item.lastYearAverageValue}</td>
+                ${statisticsType==1?'<td>'+item.lastYearAverageValue+'</td>':''}
             </tr>
         `
     }