|
@@ -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,
|