表单提交组件之间的校验
This commit is contained in:
@ -254,13 +254,14 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submitForm() {
|
||||
const flag = false;
|
||||
let flag = false;
|
||||
this.$refs["form"].validate((valid) => {
|
||||
const cityForm = this.$refs.cityForm.submitForm();
|
||||
const fieldForm = this.$refs.fieldForm.submitForm();
|
||||
const keywordsForm = this.$refs.keywordsForm.submitForm();
|
||||
const researchsForm = this.$refs.researchsForm.submitForm();
|
||||
if (cityForm && fieldForm && keywordsForm && researchsForm) {
|
||||
console.log(true);
|
||||
flag = !flag;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user