【代码评审】Bpm:数据报表
parent
79a53412d6
commit
bd48210d7f
|
@ -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'),
|
||||
|
|
|
@ -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)"
|
||||
>
|
||||
报表
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in New Issue