From ff147137c80d41c74e2238245dfd35a0fc41eb85 Mon Sep 17 00:00:00 2001 From: gexinzhineng/gxzn27 <1348660141@qq.com> Date: Thu, 2 Feb 2023 09:44:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=A1=A8=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=E9=9A=90=E8=97=8F=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E6=8C=89=E9=92=AE=EF=BC=8C=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E5=A1=AB=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/bpm/processInstance/detail.vue | 14 +++++--------- .../src/views/bpm/processInstance/index.vue | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) 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 d6ca8faa6..255e1d0c6 100644 --- a/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue +++ b/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail.vue @@ -70,8 +70,8 @@ @@ -200,6 +200,7 @@ import * as TaskApi from '@/api/bpm/task' import * as ActivityApi from '@/api/bpm/activity' import { formatPast2 } from '@/utils/formatTime' import { setConfAndFields2 } from '@/utils/formCreate' +// import { OptionAttrs } from '@form-create/element-ui/types/config' import { ApiAttrs } from '@form-create/element-ui/types/config' import { useUserStore } from '@/store/modules/user' @@ -220,9 +221,6 @@ const auditRule = reactive({ // 处理审批通过和不通过的操作 const handleAudit = async (task, pass) => { - console.log(task, 'task') - console.log(pass, 'pass') - console.log(runningTasks.value, 'runningTasks.value') // 1.1 获得对应表单 const index = runningTasks.value.indexOf(task) const auditFormRef = proxy.$refs['form' + index][0] @@ -239,9 +237,6 @@ const handleAudit = async (task, pass) => { id: task.id, reason: auditForms.value[index].reason } - console.log(data, '是否通过') - console.log(pass, 'pass是否通过') - console.log(task, 'task') if (pass) { await TaskApi.approveTask(data) message.success('审批通过成功') @@ -409,8 +404,9 @@ const getDetail = () => { data.formVariables ) nextTick().then(() => { - fApi.value?.btn.show(false) - fApi.value?.resetBtn.show(false) + fApi.value?.fapi.btn.show(false) + fApi.value?.fapi.resetBtn.show(false) + fApi.value?.fapi.disabled(true) }) } diff --git a/yudao-ui-admin-vue3/src/views/bpm/processInstance/index.vue b/yudao-ui-admin-vue3/src/views/bpm/processInstance/index.vue index c648318e7..d2f817532 100644 --- a/yudao-ui-admin-vue3/src/views/bpm/processInstance/index.vue +++ b/yudao-ui-admin-vue3/src/views/bpm/processInstance/index.vue @@ -14,7 +14,7 @@