|
|
|
@ -135,8 +135,8 @@ const genInfo = ref<InstanceType<typeof GenInfoForm>>();
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
/** 提交按钮 */
|
|
|
|
const submitForm = () => {
|
|
|
|
const submitForm = () => {
|
|
|
|
const basicForm = basicInfo.value.$refs.basicInfoForm;
|
|
|
|
const basicForm = basicInfo.value?.$refs.basicInfoForm;
|
|
|
|
const genForm = genInfo.value.$refs.genInfoForm;
|
|
|
|
const genForm = genInfo.value?.$refs.genInfoForm;
|
|
|
|
|
|
|
|
|
|
|
|
Promise.all([basicForm, genForm].map(getFormPromise)).then(async res => {
|
|
|
|
Promise.all([basicForm, genForm].map(getFormPromise)).then(async res => {
|
|
|
|
const validateResult = res.every(item => !!item);
|
|
|
|
const validateResult = res.every(item => !!item);
|
|
|
|
|