瀏覽代碼

no message

linwenxin 8 月之前
父節點
當前提交
20b92bc210
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      src/views/workOrder/workOrderPool/index.vue

+ 9 - 2
src/views/workOrder/workOrderPool/index.vue

@@ -510,8 +510,15 @@ export default {
         this.$nextTick(() => {
           this.getOrderBaseStatusCount({
             orderSmallTypeText: pam.orderSmallTypeText || '',
-            startTime: `${new Date(this.value1).getFullYear()}-1-1 00:00:00`,
-            endTime: `${new Date(this.value1).getFullYear()}-12-31 23:59:59`
+            ...(() => {
+              if (this.value1) {
+                return {
+                  startTime: `${new Date(this.value1).getFullYear()}-1-1 00:00:00`,
+                  endTime: `${new Date(this.value1).getFullYear()}-12-31 23:59:59`
+                }
+              }
+              return {}
+            })()
           })
         })
       }