fix : 修复获取流程接口的提示框

This commit is contained in:
2024-06-02 16:54:46 +08:00
parent 9b45135a18
commit e0ffef25bd
5 changed files with 38 additions and 20 deletions

View File

@@ -232,11 +232,6 @@ const getDetailInfo = async () => {
const init = async () => {
processDiagramViewer.value = false
getAllocationProcess().then(res => {
ElNotification({
title: '提示',
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
let data = res.data
processInstanceData.value = data
@@ -249,6 +244,12 @@ const init = async () => {
nextTick(() => {
processDiagramViewer.value = true
})
}else {
ElNotification({
title: '提示',
message: res.msg,
type: 'error'
})
}
})
}

View File

@@ -77,7 +77,13 @@ const tableConfig = reactive({
label: '状态',
align: 'center',
showOverflowTooltip: false,
// currentRender: ({row, index}) => (<Tag dictType={'special_fund'} value={row.state}/>)
currentRender: ({row, index}) => {
if (row.state == undefined||row.state == 0) {
return '--'
} else {
return (<Tag dictType={'special_fund'} value={row.state}/>)
}
}
},
{
prop: 'oper',