From 5019c316b252e5caab03313944fe0756707e920b Mon Sep 17 00:00:00 2001 From: lijing1 Date: Thu, 29 Jan 2026 12:15:51 +0800 Subject: [PATCH] update --- src/components/common/table/tableFormDia.vue | 3 +++ src/views/system/dynamicTable/components/detail.vue | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/common/table/tableFormDia.vue b/src/components/common/table/tableFormDia.vue index 82126482..b6e76806 100644 --- a/src/components/common/table/tableFormDia.vue +++ b/src/components/common/table/tableFormDia.vue @@ -304,6 +304,7 @@ const emit = defineEmits(['update:modelValue', 'update']); const diaVisible = ref(false); const previewVisible = ref(false); const formData = ref({}); +const tableId = ref(''); const tableData = ref([]); const vxeTableRef = ref(); const disabled = ref(!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), }; diff --git a/src/views/system/dynamicTable/components/detail.vue b/src/views/system/dynamicTable/components/detail.vue index 1c1cf15a..1b2be3b6 100644 --- a/src/views/system/dynamicTable/components/detail.vue +++ b/src/views/system/dynamicTable/components/detail.vue @@ -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, + }; } }); };