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" - + + + - - + + + + + + @@ -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) } /** 删除按钮操作 */