2 Commits 42070cfebd ... 4ea98a9c06

Author SHA1 Message Date
  zhangjiansheng 4ea98a9c06 Merge remote-tracking branch 'origin/master' 3 months ago
  zhangjiansheng 241a96a952 bug修改 3 months ago
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/settingsPage/clinicMaintenance/index.vue

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

@@ -162,7 +162,7 @@ export default {
162
         this.tableData.forEach(x=>{
162
         this.tableData.forEach(x=>{
163
           const today = new Date();
163
           const today = new Date();
164
           let endTime = new Date(Date.parse(x.expireTime.replace(/-/g, "/"))).getTime();
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
         this.loading = false;
167
         this.loading = false;
168
       }
168
       }