fix: 添加邮箱抄送密发功能

This commit is contained in:
陆光LG
2025-08-18 12:45:26 +08:00
parent e34b931798
commit 40447d980c
5 changed files with 152 additions and 102 deletions

View File

@@ -515,7 +515,7 @@ const open = async (queryParams: any, type: string, id?: number) => {
dialogVisible.value = true
dialogTitle.value = t('action.' + type)
formType.value = type
resetForm()
// 修改时,设置数据
if (id) {
formLoading.value = true
@@ -554,6 +554,12 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
const submitForm = async () => {
formData.value.answerList = list.value
//默认权值为1
formData.value.answerList.forEach((item) => {
if (!item.scoreRate) {
item.scoreRate = '1' // 设置默认权值为1
}
})
formData.value.fileUploads = documentList.value
const values = Object.values(formData)
console.log(values)
@@ -600,7 +606,7 @@ const resetForm = () => {
image: '',
content: '',
contentIn: '',
scoreRate: ''
scoreRate: '1'
}
],
fileUploads: [