From 1e8a379ed07d8ee1acb7fb45301c9c92a6abc840 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 30 Jan 2023 22:10:41 +0800 Subject: [PATCH] =?UTF-8?q?vue3=20=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=81=E7=A8=8B=E8=AF=A6=E6=83=85=E7=9A=84?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin-vue3/src/types/auto-components.d.ts | 3 +++ .../src/views/bpm/processInstance/detail.vue | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/yudao-ui-admin-vue3/src/types/auto-components.d.ts b/yudao-ui-admin-vue3/src/types/auto-components.d.ts index 81b2d6ab9..b8419b5b6 100644 --- a/yudao-ui-admin-vue3/src/types/auto-components.d.ts +++ b/yudao-ui-admin-vue3/src/types/auto-components.d.ts @@ -24,6 +24,7 @@ declare module '@vue/runtime-core' { ElBadge: typeof import('element-plus/es')['ElBadge'] ElButton: typeof import('element-plus/es')['ElButton'] ElCard: typeof import('element-plus/es')['ElCard'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCol: typeof import('element-plus/es')['ElCol'] ElCollapseTransition: typeof import('element-plus/es')['ElCollapseTransition'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] @@ -61,6 +62,8 @@ declare module '@vue/runtime-core' { ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] ElTag: typeof import('element-plus/es')['ElTag'] + ElTimeline: typeof import('element-plus/es')['ElTimeline'] + ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElTree: typeof import('element-plus/es')['ElTree'] ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect'] diff --git a/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue b/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue index 890cddb24..d0d256128 100644 --- a/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue +++ b/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue @@ -209,9 +209,9 @@ const { proxy } = getCurrentInstance() // ========== 审批信息 ========== const id = query.id as unknown as number const processInstanceLoading = ref(false) // 流程实例的加载中 -const processInstance = ref() // 流程实例 -const runningTasks = ref() // 运行中的任务 -const auditForms = ref() // 审批任务的表单 +const processInstance = ref({}) // 流程实例 +const runningTasks = ref([]) // 运行中的任务 +const auditForms = ref([]) // 审批任务的表单 const auditRule = reactive({ reason: [{ required: true, message: '审批建议不能为空', trigger: 'blur' }] }) @@ -257,7 +257,7 @@ const detailForm = ref({ // ========== 审批记录 ========== const tasksLoad = ref(true) -const tasks = ref() +const tasks = ref([]) const getTimelineItemIcon = (item) => { if (item.result === 1) { @@ -301,7 +301,7 @@ const updateAssigneeRules = ref({ assigneeUserId: [{ required: true, message: '新审批人不能为空', trigger: 'change' }] }) const updateAssigneeFormRef = ref() -const userOptions = ref() +const userOptions = ref([]) // 处理转派审批人 const handleUpdateAssignee = (task) => {