From 476569c60192a7ff3b2c291e7eb72f1c2c6b9aaa Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 27 九月 2024 18:13:03 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/patient/index.vue | 43 +++++++++++++++++++++++-------------------- 1 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue index 2e9b795..44a9947 100644 --- a/src/views/patient/patient/index.vue +++ b/src/views/patient/patient/index.vue @@ -22,7 +22,7 @@ <!-- 鍙充晶鏁版嵁 --> <div class="leftvlue"> - <div> + <!-- <div> <el-row :gutter="10"> <el-col :span="2.5" v-for="(item, index) in cardlist" :key="index"> <el-card @@ -45,7 +45,7 @@ </el-card> </el-col> </el-row> - </div> + </div> --> <div class="leftvlue-bg"> <el-row :gutter="20"> <!--鐢ㄦ埛鏁版嵁--> @@ -109,10 +109,10 @@ @keyup.enter.native="handleQuery" /> </el-form-item> - <el-form-item label="鎮h�呮潵婧�" prop="tagId"> + <el-form-item label="鎮h�呰寖鍥�" prop="tagId"> <el-select v-model="queryParams.searchscope" - placeholder="璇烽�夋嫨鎮h�呮潵婧�" + placeholder="璇烽�夋嫨鎮h�呰寖鍥�" > <el-option v-for="item in source" @@ -215,6 +215,7 @@ <el-table v-loading="loading" :data="userList" + height="660" @selection-change="handleSelectionChange" > <el-table-column type="selection" width="50" align="center" /> @@ -956,6 +957,7 @@ pageNum: 1, allhosp: "1", pageSize: 10, + searchscope:2, idcardno: undefined, name: undefined, status: undefined, @@ -1016,6 +1018,22 @@ methods: { /** 鏌ヨ鎮h�呭垪琛� */ getList() { + if (this.queryParams.searchscope == 1) { + this.queryParams.leaveldeptcodes = store.getters.belongDepts.map( + (obj) => obj.deptCode + ); + this.queryParams.leavehospitaldistrictcodes=null; + } else if (this.queryParams.searchscope == 2) { + this.queryParams.leavehospitaldistrictcodes = + store.getters.belongWards.map((obj) => obj.districtCode); + this.queryParams.leaveldeptcodes=null; + } else { + this.queryParams.leaveldeptcodes = store.getters.belongDepts.map( + (obj) => obj.deptCode + ); + this.queryParams.leavehospitaldistrictcodes = + store.getters.belongWards.map((obj) => obj.districtCode); + } this.loading = true; messagelistpatient(this.queryParams).then((response) => { this.userList = response.rows; @@ -1078,22 +1096,7 @@ }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { - if (this.queryParams.searchscope == 1) { - this.queryParams.leaveldeptcodes = store.getters.belongDepts.map( - (obj) => obj.deptCode - ); - this.queryParams.leavehospitaldistrictcodes=null; - } else if (this.queryParams.searchscope == 2) { - this.queryParams.leavehospitaldistrictcodes = - store.getters.belongWards.map((obj) => obj.districtCode); - this.queryParams.leaveldeptcodes=null; - } else { - this.queryParams.leaveldeptcodes = store.getters.belongDepts.map( - (obj) => obj.deptCode - ); - this.queryParams.leavehospitaldistrictcodes = - store.getters.belongWards.map((obj) => obj.districtCode); - } + this.queryParams.pageNum = 1; this.getList(); }, -- Gitblit v1.9.3