Pārlūkot izejas kodu

fix: 修复定时任务异常

zhangxinlei1996 2 gadi atpakaļ
vecāks
revīzija
7745f0cff1

+ 3 - 2
src/jfw/modules/app/src/web/templates/dataExport/dataExport_toOrderDetail.html

@@ -390,7 +390,7 @@
                           snArray.push("附件");
                       } else if (selectTypeArr[i].indexOf("purchasing")!=-1) {
                           snArray.push("项目名称/标的物");
-                      } 
+                      }
                     }
                      selectTypeHtml += snArray.join("、")+"匹配";
                 }
@@ -759,9 +759,10 @@
     // 到计时
     function startTimeOver(order_create_time, countdown) {
         console.log("id_", id_)
-        var downtime = countdown.split("h")[0]
+        var downtime = countdown? countdown.split("h")[0] : 72
         downtime = downtime * 60 * 60 * 1000
         order_create_time = order_create_time.replace(/-/g, '/')
+        clearInterval(t)
         var t = setInterval(() => {
             var nowtime = new Date()  //获取当前时间
             endtime = new Date(order_create_time);  //定义结束时间