feat: BPM-报表

This commit is contained in:
LesanOuO
2025-01-25 13:29:00 +08:00
parent 7db5ac81ae
commit 52c393a04b
3 changed files with 204 additions and 0 deletions

View File

@ -192,6 +192,13 @@
<el-dropdown-item command="handleDefinitionList" v-if="hasPermiPdQuery">
历史
</el-dropdown-item>
<el-dropdown-item
command="handleReport"
v-if="checkPermi(['bpm:model:report']) && scope.row.processDefinition"
:disabled="!isManagerUser(scope.row)"
>
报表
</el-dropdown-item>
<el-dropdown-item
command="handleChangeState"
v-if="hasPermiUpdate && scope.row.processDefinition"
@ -301,6 +308,7 @@ const { t } = useI18n() // 国际化
const { push } = useRouter() // 路由
const userStore = useUserStoreWithOut() // 用户信息缓存
const isDark = computed(() => useAppStore().getIsDark) // 是否黑暗模式
const router = useRouter() // 路由
const isModelSorting = ref(false) // 是否正处于排序状态
const originalData = ref<ModelInfo[]>([]) // 原始数据
@ -349,6 +357,15 @@ const handleModelCommand = (command: string, row: any) => {
case 'handleClean':
handleClean(row)
break
case 'handleReport':
router.push({
name: 'BpmProcessInstanceReport',
query: {
processDefinitionId: row.processDefinition.id,
processDefinitionKey: row.key
}
})
break
default:
break
}