fix: bug#19994
This commit is contained in:
parent
6f169b327a
commit
2777cca778
|
@ -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}`)
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue