【代码评审】Bpm:数据报表

pull/686/head
YunaiV 2025-01-26 14:13:04 +08:00
parent 79a53412d6
commit bd48210d7f
3 changed files with 21 additions and 4 deletions

View File

@ -307,6 +307,18 @@ const remainingRouter: AppRouteRecordRaw[] = [
activityId: route.query.activityId
})
},
{
path: 'process-instance/report',
component: () => import('@/views/bpm/processInstance/report/index.vue'),
name: 'BpmProcessInstanceReport',
meta: {
noCache: true,
hidden: true,
canTo: true,
title: '数据报表',
activeMenu: '/bpm/manager/model'
}
},
{
path: 'oa/leave/create',
component: () => import('@/views/bpm/oa/leave/create.vue'),

View File

@ -194,7 +194,10 @@
</el-dropdown-item>
<el-dropdown-item
command="handleReport"
v-if="checkPermi(['bpm:model:report']) && scope.row.processDefinition"
v-if="
checkPermi(['bpm:process-instance:manager-query']) &&
scope.row.processDefinition
"
:disabled="!isManagerUser(scope.row)"
>
报表

View File

@ -171,9 +171,10 @@ const userList = ref<any[]>([]) // 用户列表
const getList = async () => {
loading.value = true
try {
let queryParamsClone = { ...queryParams }
queryParamsClone.formFieldsParams = JSON.stringify(queryParamsClone.formFieldsParams)
const data = await ProcessInstanceApi.getProcessInstanceManagerPage(queryParamsClone)
const data = await ProcessInstanceApi.getProcessInstanceManagerPage({
...queryParams,
formFieldsParams: JSON.stringify(queryParams.formFieldsParams)
})
list.value = data.list
total.value = data.total
} finally {
@ -205,6 +206,7 @@ const handleQuery = () => {
}
/** 重置按钮操作 */
// TODO @lesan search
const resetQuery = () => {
queryFormRef.value.resetFields()
queryFormRef.value.formFieldsParams = {}