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