Commit 1e8a379ed07d8ee1acb7fb45301c9c92a6abc840
1 parent
8ce0c808
vue3 工作流:修复流程详情的报错
Showing
2 changed files
with
8 additions
and
5 deletions
yudao-ui-admin-vue3/src/types/auto-components.d.ts
| ... | ... | @@ -24,6 +24,7 @@ declare module '@vue/runtime-core' { |
| 24 | 24 | ElBadge: typeof import('element-plus/es')['ElBadge'] |
| 25 | 25 | ElButton: typeof import('element-plus/es')['ElButton'] |
| 26 | 26 | ElCard: typeof import('element-plus/es')['ElCard'] |
| 27 | + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] | |
| 27 | 28 | ElCol: typeof import('element-plus/es')['ElCol'] |
| 28 | 29 | ElCollapseTransition: typeof import('element-plus/es')['ElCollapseTransition'] |
| 29 | 30 | ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] |
| ... | ... | @@ -61,6 +62,8 @@ declare module '@vue/runtime-core' { |
| 61 | 62 | ElTabPane: typeof import('element-plus/es')['ElTabPane'] |
| 62 | 63 | ElTabs: typeof import('element-plus/es')['ElTabs'] |
| 63 | 64 | ElTag: typeof import('element-plus/es')['ElTag'] |
| 65 | + ElTimeline: typeof import('element-plus/es')['ElTimeline'] | |
| 66 | + ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem'] | |
| 64 | 67 | ElTooltip: typeof import('element-plus/es')['ElTooltip'] |
| 65 | 68 | ElTree: typeof import('element-plus/es')['ElTree'] |
| 66 | 69 | ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect'] | ... | ... |
yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue
| ... | ... | @@ -209,9 +209,9 @@ const { proxy } = getCurrentInstance() |
| 209 | 209 | // ========== 审批信息 ========== |
| 210 | 210 | const id = query.id as unknown as number |
| 211 | 211 | const processInstanceLoading = ref(false) // 流程实例的加载中 |
| 212 | -const processInstance = ref() // 流程实例 | |
| 213 | -const runningTasks = ref() // 运行中的任务 | |
| 214 | -const auditForms = ref() // 审批任务的表单 | |
| 212 | +const processInstance = ref({}) // 流程实例 | |
| 213 | +const runningTasks = ref([]) // 运行中的任务 | |
| 214 | +const auditForms = ref([]) // 审批任务的表单 | |
| 215 | 215 | const auditRule = reactive({ |
| 216 | 216 | reason: [{ required: true, message: '审批建议不能为空', trigger: 'blur' }] |
| 217 | 217 | }) |
| ... | ... | @@ -257,7 +257,7 @@ const detailForm = ref({ |
| 257 | 257 | |
| 258 | 258 | // ========== 审批记录 ========== |
| 259 | 259 | const tasksLoad = ref(true) |
| 260 | -const tasks = ref() | |
| 260 | +const tasks = ref([]) | |
| 261 | 261 | |
| 262 | 262 | const getTimelineItemIcon = (item) => { |
| 263 | 263 | if (item.result === 1) { |
| ... | ... | @@ -301,7 +301,7 @@ const updateAssigneeRules = ref({ |
| 301 | 301 | assigneeUserId: [{ required: true, message: '新审批人不能为空', trigger: 'change' }] |
| 302 | 302 | }) |
| 303 | 303 | const updateAssigneeFormRef = ref() |
| 304 | -const userOptions = ref() | |
| 304 | +const userOptions = ref([]) | |
| 305 | 305 | |
| 306 | 306 | // 处理转派审批人 |
| 307 | 307 | const handleUpdateAssignee = (task) => { | ... | ... |