zhangjiansheng 3 mēneši atpakaļ
vecāks
revīzija
241a96a952
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/views/settingsPage/clinicMaintenance/index.vue

+ 1 - 1
src/views/settingsPage/clinicMaintenance/index.vue

@@ -162,7 +162,7 @@ export default {
162 162
         this.tableData.forEach(x=>{
163 163
           const today = new Date();
164 164
           let endTime = new Date(Date.parse(x.expireTime.replace(/-/g, "/"))).getTime();
165
-          x.isExpire =Math.ceil(Math.abs((today - endTime)) / (1000 * 60 * 60 * 24));
165
+          x.isExpire =Math.ceil((endTime - today) / (1000 * 60 * 60 * 24));
166 166
         })
167 167
         this.loading = false;
168 168
       }