From 83d28119e25b7b396fd2b0f1da1e95ed9728f437 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Fri, 08 Sep 2023 14:24:42 +0800
Subject: [PATCH] 更换

---
 src/views/qyp-project-order/draw.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/views/qyp-project-order/draw.vue b/src/views/qyp-project-order/draw.vue
index d5c1c3d..9e628e8 100644
--- a/src/views/qyp-project-order/draw.vue
+++ b/src/views/qyp-project-order/draw.vue
@@ -64,6 +64,13 @@
 import Etable from "@/components/table.vue";
 export default {
     components: { Etable },
+    props:{
+     orderId:""
+    },
+    created(){
+        this.searchData.orderId = this.orderId;
+        this.formInline.orderId = this.orderId;
+    },
     data() {
         return {
             columns:[
@@ -90,8 +97,8 @@
     },
     methods:{
         onSearch(){
-            this.formInline.creStartTime = this.createdTime[0]?this.createdTime[0]:null;
-            this.formInline.creEndTime = this.createdTime[1]?this.createdTime[1]:null;
+            this.formInline.creStartTime = this.createdTime&&this.createdTime[0]?this.createdTime[0]:null;
+            this.formInline.creEndTime = this.createdTime&&this.createdTime[1]?this.createdTime[1]:null;
             let objForm = JSON.parse(JSON.stringify(this.formInline));
             for (let key in objForm) {
                 if (objForm[key] === "all"||objForm[key] === null||objForm[key] === '') {

--
Gitblit v1.8.0