|
@@ -77,11 +77,18 @@ const saveAndNextStep = async () => {
|
|
console.log(isRes)
|
|
console.log(isRes)
|
|
}
|
|
}
|
|
|
|
|
|
-//保存数据
|
|
|
|
|
|
+//ref
|
|
const infoRef = ref(null)
|
|
const infoRef = ref(null)
|
|
|
|
+
|
|
|
|
+//保存数据
|
|
const submitLoading = ref(false)
|
|
const submitLoading = ref(false)
|
|
const saveDataApi = async () => {
|
|
const saveDataApi = async () => {
|
|
- console.log('saveDataApi', basicForm.value)
|
|
|
|
|
|
+ if (tabsKey.value === '1') {
|
|
|
|
+ const isRes = await infoRef.value.isForm()
|
|
|
|
+ if (!isRes) return false
|
|
|
|
+ console.log('saveDataApi', basicForm.value)
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
//关闭抽屉
|
|
//关闭抽屉
|