|
@@ -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) => {
|