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();
})
+
+