pgo-ui 1.0.74 → 1.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Radio-BMsJLVIa.js +4 -0
- package/dist/{index-C17iCr8Z.js → index-BgeiUi3s.js} +4122 -4122
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +23 -23
- package/package.json +2 -1
- package/src/components/pgo/DataTable copy.vue +258 -150
- package/src/components/pgo/forms/DynamicForm.vue +4 -2
- package/dist/Radio-D8uUtNff.js +0 -4
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
|
|
151
151
|
const valid = ref(false);
|
|
152
152
|
const formId = ref(null);
|
|
153
|
+
const relationId = ref(null);
|
|
153
154
|
const open = ref(true);
|
|
154
155
|
const formRef = ref(null);
|
|
155
156
|
const isSubmitting = ref(false);
|
|
@@ -644,7 +645,7 @@ const initializeFormData = () => {
|
|
|
644
645
|
|
|
645
646
|
// Add relationId for file upload components
|
|
646
647
|
if (field.inputType === 'file' || field.inputType === 'filefield') {
|
|
647
|
-
cleanProps.relationId =
|
|
648
|
+
cleanProps.relationId = relationId.value;
|
|
648
649
|
// cleanProps.onuploadSuccess = fetchData();
|
|
649
650
|
// cleanProps.onviewPdf = emit('view-pdf');
|
|
650
651
|
// cleanProps.fileList = FormDataList.value?.[ field.dataKey ?? field.key ];
|
|
@@ -811,8 +812,9 @@ const initializeFormData = () => {
|
|
|
811
812
|
response = await api.post(createLink, submitData)
|
|
812
813
|
|
|
813
814
|
// Transition to edit mode
|
|
814
|
-
formId.value = response?.data?.id || response?.id
|
|
815
|
+
formId.value = (response?.data?.uuid || response?.uuid) ?? (response?.data?.id || response?.id)
|
|
815
816
|
formData.id = formId.value
|
|
817
|
+
relationId.value = response?.data?.id || response?.id
|
|
816
818
|
formMode.value = 'edit' // ← trigger button swap
|
|
817
819
|
|
|
818
820
|
await fetchData() // load saved data back
|
package/dist/Radio-D8uUtNff.js
DELETED