This commit is contained in:
2025-08-15 10:58:12 +08:00
parent c7b4af704d
commit ff2f36e88c
6 changed files with 395 additions and 383 deletions

View File

@ -217,6 +217,7 @@ const handleUpdate = async (row?: ConfigVO) => {
const _id = row?.id || ids.value[0];
const res = await getConfig(_id);
Object.assign(form.value, res.data);
form.value.deptId = res.data.projectId ? res.data.projectId : '';
dialog.visible = true;
dialog.title = '修改消息配置';
};
@ -226,6 +227,8 @@ const submitForm = () => {
configFormRef.value?.validate(async (valid: boolean) => {
if (valid) {
// buttonLoading.value = true;
console.log(form.value);
if (form.value.id) {
form.value.userId = form.value.userId ? form.value.userId?.join(',') : '';
await updateConfig(form.value).finally(() => (buttonLoading.value = false));