消息
This commit is contained in:
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user