From 7061af996e28e702a270972acdea938c1dab684d Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Sat, 2 Dec 2023 16:43:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../taskplatform/taskmanagement/drafts.vue | 453 +++++++++--------- 1 file changed, 239 insertions(+), 214 deletions(-) diff --git a/src/views/taskplatform/taskmanagement/drafts.vue b/src/views/taskplatform/taskmanagement/drafts.vue index 488ba04f3..a43775511 100644 --- a/src/views/taskplatform/taskmanagement/drafts.vue +++ b/src/views/taskplatform/taskmanagement/drafts.vue @@ -3,237 +3,262 @@ @ 时间: 2023-11-24 08:10:23 @ 备注: 草稿箱 --> - - From 8ea8d87603287354b8904cfce4007f007ef56c35 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Mon, 4 Dec 2023 14:40:03 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BD=8E=E4=BB=A3=E7=A0=81=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E4=B8=80=E6=9C=9F=E9=A1=B9=E7=9B=AE=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E5=B0=81=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DesignForm/public/form/form.vue | 17 ++++++---- .../taskmanagement/editFlowData.vue | 33 +++++++++++++------ .../taskmanagement/lookFlowInfo.vue | 27 ++++++++------- .../taskplatform/taskmanagement/myrequest.vue | 3 +- 4 files changed, 50 insertions(+), 30 deletions(-) diff --git a/src/components/DesignForm/public/form/form.vue b/src/components/DesignForm/public/form/form.vue index 9e16f4aa3..34e156b6c 100644 --- a/src/components/DesignForm/public/form/form.vue +++ b/src/components/DesignForm/public/form/form.vue @@ -955,13 +955,13 @@ const sendDraftSubmit = (type: string, res: any) => { } //提交修改数据 const submitEdit = (type: string, res: any) => { - const sendDraftSubmit = props.formData.events?.sendDraftSubmit + const submitEdit = props.formData.events?.submitEdit let notReturn - if (typeof sendDraftSubmit === 'function') { - notReturn = sendDraftSubmit(type, res) - // console.log("notReturn-1-123456->",props.sendDraftSubmit) - } else if (typeof props.sendDraftSubmit === 'function') { - notReturn = props.sendDraftSubmit(type, res) + if (typeof submitEdit === 'function') { + notReturn = submitEdit(type, res) + // console.log("notReturn-1-123456->",props.submitEdit) + } else if (typeof props.submitEdit === 'function') { + notReturn = props.submitEdit(type, res) // console.log("notReturn--123456->",props.anewSubmit) } loading.value = false @@ -969,6 +969,11 @@ const submitEdit = (type: string, res: any) => { // 有返回false时则不提示 return } + if (type === 'success') { + ElMessage.success(res.msg || '提交成功!') + } else if (type === 'fail') { + ElMessage.error(res.message || '提交失败!') + } } defineExpose({ diff --git a/src/views/taskplatform/taskmanagement/editFlowData.vue b/src/views/taskplatform/taskmanagement/editFlowData.vue index 5a8cf0021..f03bbf476 100644 --- a/src/views/taskplatform/taskmanagement/editFlowData.vue +++ b/src/views/taskplatform/taskmanagement/editFlowData.vue @@ -53,6 +53,7 @@ const nodeKey = ref(''); const currentProgress = ref(1); const newLogAry = ref("") const oldLogAry = ref("") +const newDataLen = ref(0); //表单相关内容 const formState = reactive({ formData: { @@ -116,6 +117,7 @@ const gainFormData = () =>{ newLogAry.value = data.data.newData oldLogAry.value = data.data.oldData logistrue.value = data.data.logistrue + newDataLen.value = data.data.newDataLen }) }) @@ -147,6 +149,15 @@ onMounted(()=>{ flowMap.value = JSON.parse(props.flowLogInfo.flowcont) gainFormData() }) +const runstep = ref(null) +//修改完毕 +const submitEdit = (type: string,val?:any) => { + // console("修改完毕----->",type,val) + if(type == "success"){ + runstep.value.gainRunFlowTask() + drawerBeforeClose(); + } +}