feat(bpm): 添加抄送任务流程查看功能
- 在抄送任务列表中增加“流程”按钮,跳转至流程实例详情页 - 调整流程编号字段显示逻辑,默认展示并支持搜索 -优化抄送时间字段格式化方式,并调整搜索类型为时间范围选择 - 禁用规则类型下拉框编辑状态,并默认选中固定值30- 设置任务名称、ID及流程实例名称回填逻辑
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
@size-change="sizeChange"
|
||||
@current-change="currentChange"
|
||||
>
|
||||
|
||||
<template #menu="{ row }">
|
||||
<el-button link type="primary" @click="handleAudit(row)">流程</el-button>
|
||||
</template>
|
||||
</avue-crud>
|
||||
</ContentWrap>
|
||||
</template>
|
||||
@@ -58,7 +60,6 @@ const tableOption = reactive({
|
||||
},
|
||||
processInstanceId: {
|
||||
label: '流程编号',
|
||||
display: false,
|
||||
search: true,
|
||||
},
|
||||
processInstanceName: {
|
||||
@@ -78,14 +79,20 @@ const tableOption = reactive({
|
||||
label: '抄送时间',
|
||||
type: 'datetime',
|
||||
width: 180,
|
||||
search: true,
|
||||
searchType: 'daterange',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
startPlaceholder: '开始时间',
|
||||
endPlaceholder: '结束时间',
|
||||
formatter: (row: any, value: any, rowv: any, column: any) => {
|
||||
return dateFormatter(row, column, value)
|
||||
}
|
||||
},
|
||||
searchCreateTime: {
|
||||
label: '抄送时间',
|
||||
display: false,
|
||||
hide: true,
|
||||
search: true,
|
||||
searchType: 'datetimerange',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
startPlaceholder: '开始时间',
|
||||
endPlaceholder: '结束时间',
|
||||
searchRange: true,
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -151,6 +158,15 @@ const currentChange = (currentPage) => {
|
||||
getTableData()
|
||||
}
|
||||
|
||||
const handleAudit = (row: any) => {
|
||||
push({
|
||||
name: 'BpmProcessInstanceDetail',
|
||||
query: {
|
||||
id: row.processInstanceId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/** 初始化 **/
|
||||
onMounted(async () => {
|
||||
await getTableData()
|
||||
|
||||
Reference in New Issue
Block a user