This commit is contained in:
2026-01-29 12:15:51 +08:00
parent 0c1765f61d
commit 5019c316b2
2 changed files with 8 additions and 1 deletions

View File

@@ -304,6 +304,7 @@ const emit = defineEmits(['update:modelValue', 'update']);
const diaVisible = ref(false);
const previewVisible = ref(false);
const formData = ref<any>({});
const tableId = ref<any>('');
const tableData = ref<any>([]);
const vxeTableRef = ref<any>();
const disabled = ref<any>(!hasPermission('system_dynamicTable_setting'));
@@ -326,6 +327,7 @@ const getHeadDataFun = () => {
if (res.code === 200) {
const formConfig = JSON.parse(res.data.formConfig || '[]');
tableData.value = formConfig;
tableId.value = res.data.id;
}
});
};
@@ -351,6 +353,7 @@ const updateFun = () => {
}
});
const params = {
id: tableId.value,
formName: props.name,
formConfig: JSON.stringify(build),
};

View File

@@ -74,7 +74,11 @@ const getDetailFun = () => {
};
getFormConfigureApi(params).then((res: any) => {
if (res.code === 200) {
formData.value = res.data;
formData.value = {
id: res.data.id,
formName: res.data.formName,
comment: res.data.comment,
};
}
});
};