From c7b33db117fd2893d7d1c93bf5d46e87d33e44d0 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 16 十二月 2024 16:08:51 +0800
Subject: [PATCH] 初审结果查询

---
 src/views/standard/tijiancom/index.vue |   46 +++++++++++++++++++---------------------------
 1 files changed, 19 insertions(+), 27 deletions(-)

diff --git a/src/views/standard/tijiancom/index.vue b/src/views/standard/tijiancom/index.vue
index 3e63cb7..94bd810 100644
--- a/src/views/standard/tijiancom/index.vue
+++ b/src/views/standard/tijiancom/index.vue
@@ -1,25 +1,10 @@
 <template>
   <div>
-    <el-form
-      :model="queryParams"
-      ref="tableList"
-      :inline="true"
-      label-width="76px"
-      style="margin: 10px 10px"
-    >
+    <el-form :model="queryParams" ref="tableList" :inline="true" label-width="76px" style="margin: 10px 10px">
       <el-form-item label="缁熻鍖洪棿" prop="date">
-        <el-date-picker
-          v-model="value1"
-          type="datetimerange"
-          align="right"
-          start-placeholder="寮�濮嬫棩鏈�"
-          :picker-options="pickerOptions"
-          end-placeholder="缁撴潫鏃ユ湡"
-          :default-time="['00:00:00', '23:00:00']"
-          format="yyyy-MM-dd HH:mm"
-          value-format="yyyy-MM-dd HH:mm"
-          @change="dateChangebirthday1"
-        >
+        <el-date-picker v-model="value1" type="datetimerange" align="right" start-placeholder="寮�濮嬫棩鏈�"
+          :picker-options="pickerOptions" end-placeholder="缁撴潫鏃ユ湡" :default-time="['00:00:00', '23:00:00']"
+          format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" @change="dateChangebirthday1">
         </el-date-picker>
       </el-form-item>
       <el-form-item>
@@ -32,8 +17,8 @@
     </div>
   </div>
 </template>
-    
-        
+
+
 <script>
 import { GetChartByDate } from "@/api/count/chart";
 const echarts = require("echarts/lib/echarts");
@@ -101,11 +86,21 @@
           moment(res.data).format("YYYY-MM-DD 00:00:00"),
           moment(res.data).format("YYYY-MM-DD 23:59:00"),
         ];
+        this.getList()
       });
     },
     getList() {
-      this.queryParams.startDate = this.startTime[0];
-      this.queryParams.endDate = this.startTime[1];
+      if (this.value1) {
+        this.queryParams.startDate = this.value1[0];
+        this.queryParams.endDate = this.value1[1];
+      }else  if (this.value1==null) {
+        this.queryParams.startDate = null;
+        this.queryParams.endDate = null;
+      }else {
+        this.queryParams.startDate = this.startTime[0];
+        this.queryParams.endDate = this.startTime[1];
+      }
+
       let myChart = this.$echarts.init(document.getElementById("main"));
       //浣犺繘鍏ラ〉闈㈠厛鎶婂浘琛ㄦ覆鏌撲簡  鐒跺悗鎵嶈幏鍙栫殑鏁版嵁鎶�
       myChart.setOption({
@@ -184,7 +179,4 @@
   height: 580px;
   background-color: #fff;
 }
-</style>
-    
-    
-        
\ No newline at end of file
+</style>
\ No newline at end of file

--
Gitblit v1.8.0