浏览代码

bug修改

zhangjiansheng 3 月之前
父节点
当前提交
241a96a952
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
       }