From c70f5e1d471ddf002ef0ebd5f4c6a5ed1c865d0d Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 21 十月 2026 17:47:58 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/follow/index.vue | 97 +++++++++++++++++++++++++++++++++---------------
1 files changed, 66 insertions(+), 31 deletions(-)
diff --git a/src/views/patient/follow/index.vue b/src/views/patient/follow/index.vue
index 37918ba..d29ceff 100644
--- a/src/views/patient/follow/index.vue
+++ b/src/views/patient/follow/index.vue
@@ -11,8 +11,7 @@
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="璇疯緭鍏ュ鍚�"
@@ -20,6 +19,27 @@
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"
+ />
+ </el-form-item>
+ <el-form-item label="寤烘。鏃ユ湡">
+ <el-date-picker
+ v-model="dateRange"
+ style="width: 240px"
+ value-format="yyyy-MM-dd HH:mm:ss"
+ type="datetimerange"
+ range-separator="-"
+ start-placeholder="寮�濮嬫椂闂�"
+ end-placeholder="缁撴潫鏃堕棿"
+ :default-time="['00:00:00', '23:59:59']"
+ ></el-date-picker>
</el-form-item>
<!-- <el-form-item label="鎮h�呰寖鍥�" prop="tagId">
@@ -37,9 +57,7 @@
</el-select>
</el-form-item> -->
-
<el-row>
-
<el-form-item>
<el-button
type="primary"
@@ -58,7 +76,6 @@
</el-row>
</el-form>
-
<el-table
v-loading="loading"
:data="userList"
@@ -74,12 +91,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>
@@ -130,6 +153,12 @@
:show-overflow-tooltip="true"
/>
<el-table-column
+ label="杩囨护鍖荤敓"
+ align="center"
+ key="filterDrname"
+ prop="filterDrname"
+ />
+ <el-table-column
label="鎮h�呮爣绛�"
align="center"
key="tagList"
@@ -159,12 +188,12 @@
<el-table-column
label="寤烘。鏃ユ湡"
align="center"
- key="createTime"
- prop="createTime"
+ key="createTimeStart"
+ prop="createTimeStart"
width="160"
>
<template slot-scope="scope">
- <span>{{ formatTime(scope.row.createTime) }}</span>
+ <span>{{ formatTime(scope.row.createTimeStart) }}</span>
</template>
</el-table-column>
@@ -185,7 +214,6 @@
query: { id: scope.row.id },
})
"
-
><span class="button-textsc"
><i class="el-icon-zoom-in"></i>鏌ョ湅</span
></el-button
@@ -194,7 +222,6 @@
size="medium"
type="text"
@click="handleDelete(scope.row)"
-
><span class="button-textxga"
><i class="el-icon-edit"></i>鍙栨秷杩囨护</span
></el-button
@@ -212,8 +239,6 @@
/>
</el-col>
</el-row>
-
-
</div>
</template>
@@ -221,7 +246,7 @@
import { delUser } from "@/api/system/user";
import {
- messagelistpatient,
+ patarchivelist,
alterpatient,
addfiltration,
particularpatient,
@@ -295,7 +320,7 @@
propss: { multiple: true },
optionstag: [], //鏍囩鍒楄〃
Patientrange: [
- {
+ {
value: 0,
label: "鎵�灞炴偅鑰�",
},
@@ -349,6 +374,8 @@
status: undefined,
tagIds: undefined,
telcode: undefined,
+ createTimeStart: undefined,
+ createTimeEnd: undefined,
},
// 琛ㄥ崟鏍¢獙
rules: {},
@@ -369,8 +396,7 @@
/** 鏌ヨ鎮h�呭垪琛� */
getList() {
this.loading = true;
-
- messagelistpatient(this.queryParams).then((response) => {
+ patarchivelist(this.queryParams).then((response) => {
console.log(response);
this.userList = response.rows;
this.total = response.total;
@@ -434,14 +460,20 @@
/** 鎼滅储鎸夐挳鎿嶄綔 */
handleQuery() {
this.queryParams.pageNum = 1;
+ this.queryParams.createTimeStart = this.dateRange[0];
+ this.queryParams.createTimeEnd = this.dateRange[1];
this.getList();
},
/** 閲嶇疆鎸夐挳鎿嶄綔 */
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) {
@@ -488,16 +520,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(() => {});
@@ -604,7 +636,10 @@
height: 100px;
}
}
+.button-textxga {
+ color: #de7897;
+}
.button-textsc {
- color: #28cfe6;
+ color: #3664D9;
}
</style>
--
Gitblit v1.9.3