소스 검색

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/YangHuCost

vian 5 년 전
부모
커밋
861c4dd52b
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      web/building_saas/standard_interface/export/base.js

+ 5 - 1
web/building_saas/standard_interface/export/base.js

@@ -297,12 +297,16 @@ const INTERFACE_EXPORT_BASE = (() => {
   }
 
   //获取当前时间,格式YYYY-MM-DD HH:mm
-  function getNowFormatTime() {
+  function getNowFormatTime(T) {
     var nowDate = new Date();
     var colon = ":";
     var h = nowDate.getHours();
     var m = nowDate.getMinutes();
     var s = nowDate.getSeconds();
+    if (T) {
+      return getNowFormatDay(nowDate) + "T" + completeDate(h) + colon + completeDate(m)+colon+completeDate(s);
+    }
+
     //补全0,并拼接
     return getNowFormatDay(nowDate) + " " + completeDate(h) + colon + completeDate(m);
   }