diff --git a/src/api/account/notificationRecord.ts b/src/api/account/notificationRecord.ts index 4d69c13f..6cf7d876 100644 --- a/src/api/account/notificationRecord.ts +++ b/src/api/account/notificationRecord.ts @@ -8,7 +8,8 @@ export const getList_api = (data: any): any => server.post(`/notifications/_quer export const changeStatus_api = (type: '_read' | '_unread', data: string[]): any => server.post(`/notifications/${type}`, data) export const changeAllStatus = (type: '_read' | '_unread', data: string[]): any => server.post(`/notifications/${type}/provider`, data) - +//查看工作流通知详情 +export const getWorkflowNotice = (data:any) => server.post('/process/runtime/processes/_query?history=true',data) // 查询告警记录详情 export const getDetail = (id: string): any => server.get(`/alarm/record/${id}`) diff --git a/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue b/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue index 060d15fe..2778f12c 100644 --- a/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue +++ b/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue @@ -86,6 +86,7 @@ import { getList_api, changeStatus_api, changeAllStatus, + getWorkflowNotice } from '@/api/account/notificationRecord'; import dayjs from 'dayjs'; import { useUserInfo } from '@/store/userInfo'; @@ -220,6 +221,19 @@ const queryParams = ref({}); const tableRef = ref(); const view = (row: any) => { + // if(props.type === 'workflow-notification'){ + // const params = { + // terms:[{ + // type: "or", + // value: ['workflow-process-finish', 'workflow-process-repealed'].includes(row.topicProvider) ? row.dataId : JSON.parse(row.detailJson)?.processId, + // termType: "eq", + // column: "id" + // }] + // } + // getWorkflowNotice(params).then((res)=>{ + // console.log(res) + // }) + // } viewItem.value = row; viewVisible.value = true; };