From 33d7304c54512792f92da02d128a320ece09d131 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Thu, 12 Sep 2024 11:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B9=B2=E6=89=B0=E6=BA=90?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=B0=E8=B4=A6=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/undocumented/addForm.vue | 22 ++-- .../components/interferenceUserTable.vue | 114 +++++++++++++++++- 2 files changed, 123 insertions(+), 13 deletions(-) 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 })