diff --git a/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue b/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue index a85bd829..0602ac9e 100644 --- a/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue +++ b/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue @@ -46,10 +46,7 @@ - + { confirmFormData.saveOrCheckflag = '1' if (title.value != '用户档案录入') confirmFormData.id = resendId.value if (!control.value) confirmFormData.dataType = 1 + if (controFlag.value) confirmFormData.dataType = 1 if (props.normalizedControl) { addEditor(confirmFormData).then(res => { ElMessage({ @@ -1454,6 +1453,7 @@ const confirmForm = (flag: boolean) => { } } confirmFormData.saveOrCheckflag = '2' + if (controFlag.value) confirmFormData.dataType = 1 if (title.value == '用户档案录入') { submitFormData(confirmFormData).then(res => { ElMessage({ @@ -1467,7 +1467,9 @@ const confirmForm = (flag: boolean) => { }) } else { confirmFormData.id = resendId.value - + if (controFlag.value) confirmFormData.dataType = 1 + console.log("🚀 ~ ruleFormRef.value.validate ~ controFlag.value:", controFlag.value) + console.log(123123) if (props.normalizedControl) { if (title.value == '编辑') { if (status.value != '') confirmFormData.status = status.value @@ -1493,6 +1495,7 @@ const confirmForm = (flag: boolean) => { }) } } else { + updateFormData(confirmFormData).then(res => { ElMessage({ message: '重新发起成功', @@ -1515,11 +1518,16 @@ const confirmForm = (flag: boolean) => { // 过滤用户 const filterUsers = (arr: any) => { - control.value = false + controFlag.value = true userStateList.value.map(item => (item.disabled = false)) userTypeList.value = userTypeList.value.filter(item => !arr.includes(item.value)) } -defineExpose({ open, filterUsers }) +const setcontroFlag = () => { + console.log(12333) + + controFlag.value = true +} +defineExpose({ open, filterUsers,setcontroFlag })