From bad2bc143be3f8ddb93a1c9f984127b3ccf43e8f Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 31 三月 2025 17:47:14 +0800
Subject: [PATCH] 11

---
 src/views/team/disease/index.vue |   36 +++++++++++++++++++++++++++++-------
 1 files changed, 29 insertions(+), 7 deletions(-)

diff --git a/src/views/team/disease/index.vue b/src/views/team/disease/index.vue
index dafb05a..de24260 100644
--- a/src/views/team/disease/index.vue
+++ b/src/views/team/disease/index.vue
@@ -12,8 +12,9 @@
           clearable
           v-model="createTimeList"
           @change="dateChangebirthday1"
-          style="width: 240px"
-          value-format="yyyy-MM-dd"
+           :default-time="['00:00:00', '23:59:00']"
+          format="yyyy-MM-dd HH:mm"
+          value-format="yyyy-MM-dd HH:mm"
           type="daterange"
           range-separator="-"
           start-placeholder="寮�濮嬫棩鏈�"
@@ -96,6 +97,7 @@
           icon="el-icon-search"
           size="mini"
           @click="handleQuery"
+          style="margin: 0 15px;"
           >鏌ヨ</el-button
         >
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
@@ -104,7 +106,7 @@
       </el-form-item>
     </el-form>
 
-    <el-row :gutter="10" class="mb8">
+    <el-row :gutter="10" class="mb8" style="margin-left: 8px;">
       <el-col :span="1.5">
         <el-button type="primary" size="mini" @click="tongji"
           >缁熻鐥呯</el-button
@@ -179,6 +181,7 @@
         <el-table
           border
           :data="tableData1"
+          max-height="500"
           style="width: 100%; margin-right: 10px"
           @selection-change="handleSelectionChange"
         >
@@ -190,7 +193,7 @@
           >
           </el-table-column>
         </el-table>
-        <el-table border :data="tableData2" style="width: 100%">
+        <el-table border :data="tableData2"   max-height="500" style="width: 100%">
           <el-table-column type="selection" width="40" align="center" />
           <el-table-column prop="bingzhong" label="宸查�夌梾绉嶅悕绉�" align="center">
           </el-table-column>
@@ -250,6 +253,8 @@
 require("echarts/lib/component/tooltip");
 require("echarts/lib/component/legend");
 require("echarts/lib/chart/pie");
+import { getNewDateList } from "@/api/hosp/order";
+import moment from "moment";
 import {
   getPeopleList,
   getDeptAndDwDeptByComp,
@@ -326,12 +331,22 @@
     };
   },
   created() {
-    this.getNowTime();
-    this.getList();
+    // this.getNowTime();
+   
     this.getcomp();
     this.geticd();
+    this.getdate();
   },
   methods: {
+    getdate() {
+      getNewDateList().then((res) => {
+        this.createTimeList = [
+            moment(res.data).format("YYYY-MM-DD 00:00:00"),
+            moment(res.data).format("YYYY-MM-DD 23:59:00")
+          ];;
+          this.getList();
+      });
+    },
     // / 澶勭悊榛樿閫変腑褰撳墠鏃ユ湡
     getNowTime() {
       var curDate = new Date().getTime();
@@ -353,8 +368,14 @@
     },
     // 鍥㈡鐥呯椤甸潰鏌ヨ浜哄憳鍒楄〃
     getList() {
-      this.queryParams.beginTime = this.createTimeList[0];
+      if(this.createTimeList){
+        this.queryParams.beginTime = this.createTimeList[0];
       this.queryParams.endTime = this.createTimeList[1];
+      }else if(this.createTimeList == null){
+        this.queryParams.beginTime = null;
+      this.queryParams.endTime = null;
+      }
+      
       getPeopleList(this.queryParams).then((res) => {
         this.tableData = res.data.voList;
         this.total = res.data.total;
@@ -423,6 +444,7 @@
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
+      this.createTimeList=[]
       this.resetForm("queryForm");
       this.handleQuery();
       this.loading = true;

--
Gitblit v1.8.0