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/drafts.vue b/src/views/taskplatform/taskmanagement/drafts.vue index bcec78991..d3d50248b 100644 --- a/src/views/taskplatform/taskmanagement/drafts.vue +++ b/src/views/taskplatform/taskmanagement/drafts.vue @@ -3,42 +3,50 @@ @ 时间: 2023-11-24 08:10:23 @ 备注: 草稿箱 --> - + + + + + + + + + + 搜索 + 重置 + + + + + + + + + {{ scope.row.creatorInfo.name }}({{ + scope.row.creatorInfo.number + }}) + + + + + + + 草稿 + + + 驳回 + + + 审批中 + + + 归档 + + + 删除 + + + + + + + + + + + + + + + + + + +>>>>>>> v3 - - - - - - - - + + + - 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(); + } +} @@ -168,10 +179,10 @@ onMounted(()=>{ :close-app-submit="closeAppSubmit" /> - 修改记录{{logistrue}}} + 历史记录 - - + + { - + {{ items }} @@ -201,11 +213,11 @@ onMounted(()=>{ - + - + { - + {{ items }} @@ -234,7 +247,7 @@ onMounted(()=>{ - + diff --git a/src/views/taskplatform/taskmanagement/lookFlowInfo.vue b/src/views/taskplatform/taskmanagement/lookFlowInfo.vue index afdb35357..21f751bac 100644 --- a/src/views/taskplatform/taskmanagement/lookFlowInfo.vue +++ b/src/views/taskplatform/taskmanagement/lookFlowInfo.vue @@ -59,6 +59,7 @@ const nodeKey = ref(''); const currentProgress = ref(1); const newLogAry = ref("") const oldLogAry = ref("") +const newDataLen = ref(0); //表单相关内容 const formState = reactive({ formData: { @@ -124,7 +125,7 @@ const gainFormData = () =>{ newLogAry.value = data.data.newData oldLogAry.value = data.data.oldData logistrue.value = data.data.logistrue - + newDataLen.value = data.data.newDataLen }) @@ -232,8 +233,8 @@ const beforeSubmit = () =>{} /> 历史记录 - - + + {} - + {{ items }} @@ -263,11 +265,11 @@ const beforeSubmit = () =>{} - + - + {} - + {{ items }} @@ -296,7 +299,7 @@ const beforeSubmit = () =>{} - + diff --git a/src/views/taskplatform/taskmanagement/myrequest.vue b/src/views/taskplatform/taskmanagement/myrequest.vue index 2949e3ec5..320dc848a 100644 --- a/src/views/taskplatform/taskmanagement/myrequest.vue +++ b/src/views/taskplatform/taskmanagement/myrequest.vue @@ -172,7 +172,10 @@ const retractFlowInfo = (val:any) => { }) .catch(() => {}) } +<<<<<<< HEAD +======= +>>>>>>> v3 @@ -185,7 +188,7 @@ const retractFlowInfo = (val:any) => { v-model="selectMyInfo.title" placeholder="请输入任务标题" clearable - @keyup.enter="searchQuery" + @keyup.enter="getMyToDoList" />