fix: bug#19994

This commit is contained in:
leiqiaochu 2023-11-10 14:34:42 +08:00
parent 6f169b327a
commit 2777cca778
2 changed files with 16 additions and 1 deletions

View File

@ -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}`)

View File

@ -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;
};