From 5e1745487b290612c6282006822b431843a081af Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 15 五月 2025 14:49:36 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/patient/behospitalized.vue | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/views/patient/patient/behospitalized.vue b/src/views/patient/patient/behospitalized.vue index d5af2eb..d7700f7 100644 --- a/src/views/patient/patient/behospitalized.vue +++ b/src/views/patient/patient/behospitalized.vue @@ -618,9 +618,6 @@ }, }, created() { - this.getList(); - this.listDept(); - this.gettabList(); this.sourcetype[0].children = store.getters.belongDepts.map((dept) => { return { label: dept.deptName, @@ -633,6 +630,15 @@ value: dept.districtCode, }; }); + this.queryParams.leaveldeptcodes = store.getters.belongDepts.map( + (obj) => obj.deptCode + ); + this.queryParams.leavehospitaldistrictcodes = store.getters.belongWards.map( + (obj) => obj.districtCode + ); + this.getList(); + this.listDept(); + this.gettabList(); }, methods: { /** 鏌ヨ鎮h�呭垪琛� */ @@ -748,13 +754,12 @@ }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { - if (this.dateRange) { this.queryParams.startInHospTime = this.dateRange[0]; this.queryParams.endInHospTime = this.dateRange[1]; - }else{ - this.queryParams.startInHospTime = ''; - this.queryParams.endInHospTime = ''; + } else { + this.queryParams.startInHospTime = ""; + this.queryParams.endInHospTime = ""; } this.queryParams.pageNum = 1; this.getList(); @@ -772,7 +777,7 @@ leaveldeptcodes: [], leavehospitaldistrictcodes: [], }; - this.handleQuery(); + this.handleQuery(); }, // 澶氶�夋閫変腑鏁版嵁 handleSelectionChange(selection) { -- Gitblit v1.9.3