From 7d2dba2945bf807413e7fc809fc06acebe3721a8 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期二, 21 一月 2025 13:46:41 +0800 Subject: [PATCH] 1 --- src/views/team/disease/index.vue | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/views/team/disease/index.vue b/src/views/team/disease/index.vue index 4609cd3..de24260 100644 --- a/src/views/team/disease/index.vue +++ b/src/views/team/disease/index.vue @@ -97,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" @@ -105,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 @@ -331,7 +332,7 @@ }, created() { // this.getNowTime(); - this.getList(); + this.getcomp(); this.geticd(); this.getdate(); @@ -343,6 +344,7 @@ moment(res.data).format("YYYY-MM-DD 00:00:00"), moment(res.data).format("YYYY-MM-DD 23:59:00") ];; + this.getList(); }); }, // / 澶勭悊榛樿閫変腑褰撳墠鏃ユ湡 @@ -366,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; @@ -436,6 +444,7 @@ }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { + this.createTimeList=[] this.resetForm("queryForm"); this.handleQuery(); this.loading = true; -- Gitblit v1.8.0