Browse Source

任务流程修改

duy 1 year ago
parent
commit
b7160d1e1e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/tasks/flow.vue

+ 3 - 3
src/views/tasks/flow.vue

@@ -101,7 +101,7 @@ const linkUserJoinString = ref(null)
 const changeId = ref('')
 const handleTableEdit = async (row) => {
     changeId.value = row.id
-    flowFormData.value = { id: '', fixedName: '', fixedBranchList: [] }
+  
     showEditModal.value = true
     const { error, code, data } = await tasksFlowApi.queryFixedFlowDetail({ id: row?.id })
     if (!error && code === 200) {
@@ -120,7 +120,7 @@ const handleTableEdit = async (row) => {
       
             console.log(users, 'users')
         }
-        flowFormData.value = { id: res.fixedFlowId, fixedName: res.fixedFlowName, fixedBranchList:res.fixedBranchVOList }
+        flowFormData.value = { id: row.id, fixedName: res.fixedFlowName, fixedBranchList:res.fixedBranchVOList }
         linkUserJoinString.value = users
     } else {
         flowFormData.value = { id: '', fixedName: '', fixedBranchList: [] }
@@ -177,7 +177,7 @@ const saveFormClick = async () => {
         }
     } else {
         sevaLoading.value = true
-        form.fixedFlowId = form.id
+        form.fixedFlowId = changeId.value
         delete form.id
         const { error, code, msg } = await tasksFlowApi.updateFixedFlowData({
             ...form,