From ac6766c11f8a2b8de903b58c13a8f206fa01dccd Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期五, 15 三月 2024 17:56:32 +0800 Subject: [PATCH] qxtj --- src/views/team/reportresults/index.vue | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/views/team/reportresults/index.vue b/src/views/team/reportresults/index.vue index cb4b7af..030fe30 100644 --- a/src/views/team/reportresults/index.vue +++ b/src/views/team/reportresults/index.vue @@ -7,13 +7,14 @@ :inline="true" label-width="68px" > - <el-form-item label="鏃堕棿" prop="applicationTime"> + <el-form-item label="鏃堕棿" prop="createTimeList"> <el-date-picker clearable v-model="createTimeList" @change="dateChangebirthday1" - style="width: 240px" - value-format="yyyy-MM-dd" + :default-time="['00:00:00', '23:00:00']" + format="yyyy-MM-dd HH:mm:ss" + value-format="yyyy-MM-dd HH:mm:ss" type="daterange" range-separator="-" start-placeholder="寮�濮嬫棩鏈�" @@ -307,6 +308,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 VTreeTransfer from "../../system/tijian/TreeTransfer.vue"; import { projectGetList } from "@/api/system/tijian"; import { @@ -398,8 +401,9 @@ }; }, created() { + this.getdate(); this.getNowTime(); - this.getList(); + this.getcomp(); this.getData(); this.datekey = Date.now(); @@ -410,6 +414,15 @@ }, }, 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(); + }); + }, filterNode(value, data) { if (!value) return true; return data.proName.indexOf(value) !== -1; @@ -525,6 +538,7 @@ }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { + this.createTimeList = [] this.resetForm("queryForm"); this.handleQuery(); this.loading = true; @@ -612,6 +626,8 @@ // } .outside1 { width: 500px; + max-height: 500px; + overflow-y:auto; display: flex; margin-top: 8px; flex-direction: column; -- Gitblit v1.8.0