5
0

2 Commitit 4b50c7250b ... 17bcdcc3a2

Tekijä SHA1 Viesti Päivämäärä
  zcuishan 17bcdcc3a2 Merge remote-tracking branch 'origin/dev' into dev 4 kuukautta sitten
  zcuishan a2002d3762 fix:修改动态表单弹窗增加是否编辑状态 4 kuukautta sitten
1 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  1. 8 1
      src/views/form/template/components/FormModal.vue

+ 8 - 1
src/views/form/template/components/FormModal.vue

@@ -5,11 +5,17 @@
     @register="registerModal"
     :title="getTitle"
     @ok="handleSubmit"
+    :is-update="state.isUpdate"
     @cancel="handleClose"
     :paddingRight="15"
     :bodyStyle="{ minHeight: '400px !important' }"
   >
-    <SimpleForm ref="formRef" :formProps="formProps" :formModel="state.formModel" />
+    <SimpleForm
+      ref="formRef"
+      :is-update="state.isUpdate"
+      :formProps="formProps"
+      :formModel="state.formModel"
+    />
   </BasicModal>
   <BasicDrawer
     v-else
@@ -167,6 +173,7 @@
   async function handleSubmit() {
     try {
       const values = await formRef.value?.validate();
+      console.log(values);
       //添加隐藏组件
       if (formProps.value.hiddenComponent?.length) {
         formProps.value.hiddenComponent.forEach((component) => {