From f3f72565dcacbb464ed70515ed3526237fe36da1 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 30 六月 2025 15:29:31 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/follow/index.vue | 66 ++++++++++++++++++++------------ 1 files changed, 41 insertions(+), 25 deletions(-) diff --git a/src/views/patient/follow/index.vue b/src/views/patient/follow/index.vue index 3ce1f0e..06f2765 100644 --- a/src/views/patient/follow/index.vue +++ b/src/views/patient/follow/index.vue @@ -11,11 +11,19 @@ v-show="showSearch" label-width="98px" > - <el-form-item label="濮撳悕" - width="100" prop="name"> + <el-form-item label="鎮h�呭鍚�" width="100" prop="name"> <el-input v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" + clearable + style="width: 200px" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="杩囨护鍖荤敓" width="100" prop="filterDrname"> + <el-input + v-model="queryParams.filterDrname" + placeholder="璇疯緭鍏ュ尰鐢熷鍚�" clearable style="width: 200px" @keyup.enter.native="handleQuery" @@ -37,9 +45,7 @@ </el-select> </el-form-item> --> - <el-row> - <el-form-item> <el-button type="primary" @@ -58,7 +64,6 @@ </el-row> </el-form> - <el-table v-loading="loading" :data="userList" @@ -74,12 +79,18 @@ <el-table-column fixed label="濮撳悕" - width="100" + width="100" align="center" key="name" prop="name" /> - <el-table-column label="鎬у埆"width="100" align="center" key="sex" prop="sex"> + <el-table-column + label="鎬у埆" + width="100" + align="center" + key="sex" + prop="sex" + > <template slot-scope="scope"> <span>{{ scope.row.sex == 1 ? "鐢�" : "濂�" }}</span> </template> @@ -128,6 +139,12 @@ prop="placeOfResidence" width="180" :show-overflow-tooltip="true" + /> + <el-table-column + label="杩囨护鍖荤敓" + align="center" + key="filterDrname" + prop="filterDrname" /> <el-table-column label="鎮h�呮爣绛�" @@ -185,7 +202,6 @@ query: { id: scope.row.id }, }) " - ><span class="button-textsc" ><i class="el-icon-zoom-in"></i>鏌ョ湅</span ></el-button @@ -194,7 +210,6 @@ size="medium" type="text" @click="handleDelete(scope.row)" - ><span class="button-textxga" ><i class="el-icon-edit"></i>鍙栨秷杩囨护</span ></el-button @@ -212,8 +227,6 @@ /> </el-col> </el-row> - - </div> </template> @@ -295,7 +308,7 @@ propss: { multiple: true }, optionstag: [], //鏍囩鍒楄〃 Patientrange: [ - { + { value: 0, label: "鎵�灞炴偅鑰�", }, @@ -437,10 +450,13 @@ }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { - this.dateRange = []; - this.resetForm("queryForm"); - this.$refs.tree.setCurrentKey(null); - this.handleQuery(); + (this.queryParams = { + pageNum: 1, + pageSize: 10, + allhosp: "1", + notrequiredFlag: 1, + }), + this.handleQuery(); }, // 澶氶�夋閫変腑鏁版嵁 handleSelectionChange(selection) { @@ -487,16 +503,16 @@ const userIds = row.id || this.ids; this.$modal .confirm('鏄惁纭鍙栨秷鐢ㄦ埛缂栧彿涓�"' + userIds + '"鐨勬暟鎹」杩囨护锛�') - .then( ()=> { - row.notrequiredFlag=0 + .then(() => { + row.notrequiredFlag = 0; alterpatient(row) - .then((response) => { - console.log(response); - }) - .then(() => { - this.getList(); - this.$modal.msgSuccess("淇敼鎴愬姛"); - }); + .then((response) => { + console.log(response); + }) + .then(() => { + this.getList(); + this.$modal.msgSuccess("淇敼鎴愬姛"); + }); }) .catch(() => {}); -- Gitblit v1.9.3