fix: bug#20093
This commit is contained in:
parent
2777cca778
commit
35b574d7da
|
@ -9,7 +9,7 @@ export const changeStatus_api = (type: '_read' | '_unread', data: string[]): any
|
||||||
|
|
||||||
export const changeAllStatus = (type: '_read' | '_unread', data: string[]): any => server.post(`/notifications/${type}/provider`, 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 getWorkflowNotice = (data:any) => server.post('/process/runtime/processes/_query/no-paging',data)
|
||||||
|
|
||||||
// 查询告警记录详情
|
// 查询告警记录详情
|
||||||
export const getDetail = (id: string): any => server.get(`/alarm/record/${id}`)
|
export const getDetail = (id: string): any => server.get(`/alarm/record/${id}`)
|
||||||
|
|
|
@ -16,6 +16,43 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-else-if="['workflow-task-cc','workflow-task-todo','workflow-task-reject', 'workflow-process-finish', 'workflow-process-repealed'].includes(data?.topicProvider)">
|
||||||
|
<j-descriptions
|
||||||
|
:column="2"
|
||||||
|
:contentStyle="{
|
||||||
|
color: '#333333',
|
||||||
|
}"
|
||||||
|
:labelStyle="{
|
||||||
|
color: 'rgba(0, 0, 0, 0.6)',
|
||||||
|
width: '72px',
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<j-descriptions-item label="发起人">
|
||||||
|
<j-ellipsis>{{ _data?.creatorName }}</j-ellipsis>
|
||||||
|
</j-descriptions-item>
|
||||||
|
<j-descriptions-item label="发起时间">
|
||||||
|
<j-ellipsis>
|
||||||
|
{{ dayjs(_data?.createTime).format('YYYY-MM-DD HH:mm:ss') }}
|
||||||
|
</j-ellipsis>
|
||||||
|
</j-descriptions-item>
|
||||||
|
<j-descriptions-item label="流程分类">
|
||||||
|
<j-ellipsis>
|
||||||
|
{{ _data?.classifiedName }}
|
||||||
|
</j-ellipsis>
|
||||||
|
</j-descriptions-item>
|
||||||
|
<j-descriptions-item label="流程名称"><j-ellipsis>
|
||||||
|
{{ _data?.modelName }}
|
||||||
|
</j-ellipsis></j-descriptions-item>
|
||||||
|
<j-descriptions-item label="标题"><j-ellipsis>
|
||||||
|
{{ _data?.name }}
|
||||||
|
</j-ellipsis></j-descriptions-item>
|
||||||
|
<j-descriptions-item label="摘要">
|
||||||
|
<j-ellipsis>
|
||||||
|
{{ _data?.summary }}
|
||||||
|
</j-ellipsis>
|
||||||
|
</j-descriptions-item>
|
||||||
|
</j-descriptions>
|
||||||
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<j-descriptions
|
<j-descriptions
|
||||||
:column="2"
|
:column="2"
|
||||||
|
@ -75,7 +112,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { JsonViewer } from 'vue3-json-viewer';
|
import { JsonViewer } from 'vue3-json-viewer';
|
||||||
import 'vue3-json-viewer/dist/index.css';
|
import 'vue3-json-viewer/dist/index.css';
|
||||||
import { queryLevel as queryLevel_api } from '@/api/rule-engine/config';
|
import { queryLevel as queryLevel_api} from '@/api/rule-engine/config';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
const emits = defineEmits(['update:visible']);
|
const emits = defineEmits(['update:visible']);
|
||||||
|
|
|
@ -221,21 +221,24 @@ const queryParams = ref({});
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
|
|
||||||
const view = (row: any) => {
|
const view = (row: any) => {
|
||||||
// if(props.type === 'workflow-notification'){
|
if(props.type === 'workflow-notification'){
|
||||||
// const params = {
|
const params = {
|
||||||
// terms:[{
|
terms:[{
|
||||||
// type: "or",
|
type: "or",
|
||||||
// value: ['workflow-process-finish', 'workflow-process-repealed'].includes(row.topicProvider) ? row.dataId : JSON.parse(row.detailJson)?.processId,
|
value: ['workflow-process-finish', 'workflow-process-repealed'].includes(row.topicProvider) ? row.dataId : JSON.parse(row.detailJson)?.processId,
|
||||||
// termType: "eq",
|
termType: "eq",
|
||||||
// column: "id"
|
column: "id"
|
||||||
// }]
|
}]
|
||||||
// }
|
}
|
||||||
// getWorkflowNotice(params).then((res)=>{
|
getWorkflowNotice(params).then((res)=>{
|
||||||
// console.log(res)
|
viewItem.value = {'topicProvider':row.topicProvider,...res?.result?.[0]}
|
||||||
// })
|
viewVisible.value = true;
|
||||||
// }
|
})
|
||||||
viewItem.value = row;
|
}else{
|
||||||
viewVisible.value = true;
|
viewItem.value = row;
|
||||||
|
viewVisible.value = true;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const refresh = () => {
|
const refresh = () => {
|
||||||
tableRef.value && tableRef.value.reload();
|
tableRef.value && tableRef.value.reload();
|
||||||
|
|
Loading…
Reference in New Issue