From 58fb9f6905318db8ce07b2853c2cc66833722ffd Mon Sep 17 00:00:00 2001
From: lxd <1004405501@qq.com>
Date: Tue, 3 Sep 2024 15:25:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BD=B1=E5=83=8F=E5=92=8C=E8=B6=85=E5=A3=B0?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=B6=E8=97=8F=E5=8A=9F=E8=83=BD=E5=92=8C?=
=?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=94=B6=E8=97=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/tblist/patientexamlist/index.ts | 6 +++
src/views/dicomForm/dicomViewForm.vue | 2 +-
src/views/tblist/patientexamlist/index.vue | 47 ++++++++++++-----
.../patientexamlistultrasonic/index.vue | 51 +++++++++++++------
4 files changed, 77 insertions(+), 29 deletions(-)
diff --git a/src/api/tblist/patientexamlist/index.ts b/src/api/tblist/patientexamlist/index.ts
index dd785a83..717b5074 100644
--- a/src/api/tblist/patientexamlist/index.ts
+++ b/src/api/tblist/patientexamlist/index.ts
@@ -33,6 +33,7 @@ export interface PatientexamlistVO {
notes:string//备注
billDoctorDepartment:string// 开单科室 送检科室
StudyInsta:string
+ isFavourite:string //是否收藏
}
// PACS检查列表 API
@@ -100,4 +101,9 @@ export const PatientexamlistApi = {
GetDateYYZDYXCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/GetDateYYZDYXCount`})
},
+
+// 收藏功能
+CollectAndCancellation: async (id: String,type:string) => {
+ return await request.get({ url: `/tblist/patientexamlist/CollectAndCancellation?id=${id}&&type=${type}`})
+ },
}
diff --git a/src/views/dicomForm/dicomViewForm.vue b/src/views/dicomForm/dicomViewForm.vue
index 17e8b00d..8c14c1ad 100644
--- a/src/views/dicomForm/dicomViewForm.vue
+++ b/src/views/dicomForm/dicomViewForm.vue
@@ -539,7 +539,7 @@ const open = async (
// 延迟1秒后加载iframe
setTimeout(() => {
dataLoaded.value= true; // 确保iframe只在弹窗打开时加载
- }, 500);
+ }, 200);
} finally {
formLoading.value = false
}
diff --git a/src/views/tblist/patientexamlist/index.vue b/src/views/tblist/patientexamlist/index.vue
index 9b33b6f8..e472c657 100644
--- a/src/views/tblist/patientexamlist/index.vue
+++ b/src/views/tblist/patientexamlist/index.vue
@@ -141,6 +141,11 @@
style="background-color: rgb(28, 176, 117); font-size: 14; color: rgb(255, 255, 255)"
> 刷新
+ 查询收藏
@@ -265,14 +270,10 @@
>
申请
-
+
+
+
+
@@ -330,7 +331,8 @@ const queryParams = reactive({
reviewDoctor: undefined,
reviewDate: [],
thumbnailImgUrl: undefined,
- createTime: []
+ createTime: [],
+ isFavourite: ''
})
const queryFormRef = ref() // 搜索的表单
const exportLoading = ref(false) // 导出的加载中
@@ -413,6 +415,18 @@ const getList = async () => {
loading.value = false
}
}
+// 收藏功能
+const collect = async (id: string, isFavourite: string) => {
+ if (isFavourite == '0') {
+ await PatientexamlistApi.CollectAndCancellation(id,"1")
+ message.success('收藏成功')
+
+ } else if (isFavourite == '1') {
+ await PatientexamlistApi.CollectAndCancellation(id,"0")
+ message.success('取消成功')
+ }
+ examDate_radio_change()
+}
const dicomDataSync = async () => {
const data = await PatientexamlistApi.dicomDataSync()
@@ -440,12 +454,19 @@ const dicomDataRefresh = async () => {
const handleQuery = () => {
queryParams.pageNo = 1
queryParams.deviceType = 'CT'
- //获取到当前登陆用户的机构时 要进行赋值
- queryParams.orgId = ''
- queryParams.highLevelOrgId = ''
+ queryParams.isFavourite=''
getList()
}
+// 只查询收藏的数据
+const selectcollect=()=>
+{
+ queryFormRef.value.resetFields()
+ queryParams.pageNo = 1
+ queryParams.deviceType = 'CT'
+ queryParams.isFavourite='1'
+ getList()
+}
/** 重置按钮操作 */
const resetQuery = () => {
queryFormRef.value.resetFields()
@@ -531,6 +552,8 @@ onMounted(() => {
//老代码
//getList();
})
+
+