From 7079c85c48050242def8a43eb9a8d37de0fc4655 Mon Sep 17 00:00:00 2001
From: Flow <958079825@qq.com>
Date: Tue, 17 Jun 2025 17:12:08 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=BB=E5=8F=96=E7=8A=B6?=
=?UTF-8?q?=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/doctornotice/index.ts | 5 +
.../vip/doctornotice/DoctornoticeForm.vue | 209 +++++-------------
src/views/vip/doctornotice/index.vue | 44 ++--
3 files changed, 86 insertions(+), 172 deletions(-)
diff --git a/src/api/doctornotice/index.ts b/src/api/doctornotice/index.ts
index a018a8f99..acd1578a5 100644
--- a/src/api/doctornotice/index.ts
+++ b/src/api/doctornotice/index.ts
@@ -53,4 +53,9 @@ export const DoctornoticeApi = {
exportDoctornotice: async (params) => {
return await request.download({ url: `/system/doctornotice/export-excel`, params })
},
+
+ // 根据用户ID查询更新读取状态
+ updateReadStatus: async (userid: number, readstatus: number) => {
+ return await request.get({ url: `/system/doctornotice/updateReadStatus?userid=` + userid + '&readstatus=' + readstatus })
+ },
}
diff --git a/src/views/vip/doctornotice/DoctornoticeForm.vue b/src/views/vip/doctornotice/DoctornoticeForm.vue
index 78f9fb203..0c15dd0aa 100644
--- a/src/views/vip/doctornotice/DoctornoticeForm.vue
+++ b/src/views/vip/doctornotice/DoctornoticeForm.vue
@@ -1,105 +1,46 @@
-
+
\ No newline at end of file
diff --git a/src/views/vip/doctornotice/index.vue b/src/views/vip/doctornotice/index.vue
index 3ee40d3c8..82e813fe2 100644
--- a/src/views/vip/doctornotice/index.vue
+++ b/src/views/vip/doctornotice/index.vue
@@ -10,17 +10,22 @@ v-model="queryParams.datatime" value-format="YYYY-MM-DD HH:mm:ss" type="daterang
-
+
+
+
-
+
+
+
-
+
+
@@ -46,21 +51,30 @@ type="success" plain @click="handleExport" :loading="exportLoading"
-
+
+
+ {{ scope.row.noticetype === 1 ? '异常提醒' : scope.row.noticetype === 2 ? '建议提醒' : '复查提醒' }}
+
+
-
-
+
+
+ {{ scope.row.noticelevel === 1 ? '普通' : scope.row.noticelevel === 2 ? '重要' : '紧急' }}
+
+
+
+
+
+ {{ scope.row.readstatus === 0 ? '未读' : '已读' }}
+
+
+
-
- 编辑
-
-
- 删除
+
+ 查看
@@ -144,8 +158,8 @@ const resetQuery = () => {
/** 添加/修改操作 */
const formRef = ref()
-const openForm = (type: string, id?: number) => {
- formRef.value.open(type, id)
+const openForm = (id: number) => {
+ formRef.value.open(id)
}
/** 删除按钮操作 */