From e5c785e7b79671ec0169364c617d89bee3e552ec Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Sat, 3 Feb 2024 11:37:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=B6=E6=9E=81=E8=B7=9F=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/flows/edit.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/views/flows/edit.vue b/src/views/flows/edit.vue index c6beb54..3109532 100644 --- a/src/views/flows/edit.vue +++ b/src/views/flows/edit.vue @@ -11,7 +11,7 @@ - @@ -20,8 +20,8 @@ - + @@ -194,7 +194,7 @@ const formData = reactive({ id: "", name: "", check_type: "", - type: "", + flow_type: "", flow_cate: "", remark: "", flow_list: [ @@ -212,13 +212,13 @@ const formData = reactive({ const flowTypeList = reactive([]) const getFlowTypeList = async () => { - if (!formData.type) return + if (!formData.flow_type) return let res = await apiFlowTypeLists({ - type: formData.type, + type: formData.flow_type, status: 2 }) Object.assign(flowTypeList, res.lists) - + console.log(flowTypeList, "getFlowTypeList") } @@ -256,7 +256,11 @@ const setFormData = async (data: Record) => { formData[key] = data[key]; } } + await getFlowTypeList() formData.check_type = Number(formData.check_type) + formData.flow_type = Number(formData.flow_type) + // formData.flow_cate = String(formData.flow_type) + console.log(formData) }; @@ -281,7 +285,6 @@ const submituser = (e) => { } else { formData.flow_list[selectIndex].flow_user = e.map(item => ({ id: item.id, name: item.name })) } - showDiolg.value = false