From b4fe2c16274a91fee4fb26d91374f95fbe2dbcec Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 09 十一月 2026 15:28:21 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/follow/index.vue | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/src/views/patient/follow/index.vue b/src/views/patient/follow/index.vue
index d29ceff..2e403ef 100644
--- a/src/views/patient/follow/index.vue
+++ b/src/views/patient/follow/index.vue
@@ -388,11 +388,39 @@
},
},
created() {
+ // 褰撳墠鏈烘瀯涓轰附姘村競涓尰闄㈡椂锛屽缓妗f棩鏈熼粯璁ゆ渶杩戜竴涓湀
+ if (localStorage.getItem("orgname") == "涓芥按甯備腑鍖婚櫌") {
+ this.dateRange = this.getLastMonthRange();
+ this.queryParams.createTimeStart = this.dateRange[0];
+ this.queryParams.createTimeEnd = this.dateRange[1];
+ }
this.getList();
this.gettabList();
this.Filterreason = store.getters.Filterreason;
},
methods: {
+ /** 鑾峰彇鏈�杩戜竴涓湀鏃堕棿鑼冨洿 */
+ getLastMonthRange() {
+ const end = new Date();
+ const start = new Date();
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
+
+ const formatDate = (date) => {
+ const year = date.getFullYear();
+ const month = String(date.getMonth() + 1).padStart(2, "0");
+ const day = String(date.getDate()).padStart(2, "0");
+ return `${year}-${month}-${day} 00:00:00`;
+ };
+
+ const formatEndDate = (date) => {
+ const year = date.getFullYear();
+ const month = String(date.getMonth() + 1).padStart(2, "0");
+ const day = String(date.getDate()).padStart(2, "0");
+ return `${year}-${month}-${day} 23:59:59`;
+ };
+
+ return [formatDate(start), formatEndDate(end)];
+ },
/** 鏌ヨ鎮h�呭垪琛� */
getList() {
this.loading = true;
--
Gitblit v1.9.3