From a857a5abd3525287221f813cea77bb78cd6c7e01 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Thu, 07 Sep 2023 15:32:52 +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