From 952ce5369317b40f6c6f2e11e70969d50108d240 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 09 七月 2025 10:56:22 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/patient/behospitalized.vue | 41 ++++++++++++++++++++++++++--------------- 1 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/views/patient/patient/behospitalized.vue b/src/views/patient/patient/behospitalized.vue index 44554d7..255b527 100644 --- a/src/views/patient/patient/behospitalized.vue +++ b/src/views/patient/patient/behospitalized.vue @@ -547,7 +547,7 @@ created() { this.getList(); - this.listDept(); + // this.listDept(); this.gettabList(); }, methods: { @@ -555,19 +555,19 @@ getList() { this.loading = true; if (this.queryParams.searchscope == 1) { - this.queryParams.leaveldeptcodes = store.getters.belongDepts.map( + this.queryParams.deptcodes = store.getters.belongDepts.map( (obj) => obj.deptCode ); - this.queryParams.leavehospitaldistrictcodes=null; + this.queryParams.hospitaldistrictcodes=null; } else if (this.queryParams.searchscope == 2) { - this.queryParams.leavehospitaldistrictcodes = + this.queryParams.hospitaldistrictcodes = store.getters.belongWards.map((obj) => obj.districtCode); - this.queryParams.leaveldeptcodes=null; + this.queryParams.deptcodes=null; } else { - this.queryParams.leaveldeptcodes = store.getters.belongDepts.map( + this.queryParams.deptcodes = store.getters.belongDepts.map( (obj) => obj.deptCode ); - this.queryParams.leavehospitaldistrictcodes = + this.queryParams.hospitaldistrictcodes = store.getters.belongWards.map((obj) => obj.districtCode); } listpatient(this.queryParams).then((response) => { @@ -577,12 +577,12 @@ this.loading = false; }); }, - listDept() { - listDept(this.queryParams).then((res) => { - this.deptList = res.data; - console.log(this.deptList, "this.deptList"); - }); - }, + // listDept() { + // listDept(this.queryParams).then((res) => { + // this.deptList = res.data; + // console.log(this.deptList, "this.deptList"); + // }); + // }, /** 鏌ヨ鏍囩鍒楄〃 */ gettabList() { const tagqueryParams = { @@ -647,8 +647,19 @@ /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { this.dateRange = []; - this.resetForm("queryForm"); - this.$refs.tree.setCurrentKey(null); + this.queryParams= { + pageNum: 1, + pageSize: 10, + cry: 0, + searchscope:2, + idcardno: undefined, + name: undefined, + status: undefined, + tagIds: undefined, + telcode: undefined, + }; + // this.resetForm("queryForm"); + // this.$refs.tree.setCurrentKey(null); this.handleQuery(); }, // 澶氶�夋閫変腑鏁版嵁 -- Gitblit v1.9.3