|
@@ -155,7 +155,7 @@ export default {
|
|
|
concept: [
|
|
|
{ required: true, validator: checkFrequency, trigger: 'blur' },
|
|
|
{ validator: checkFrequency2, trigger: 'change' }
|
|
|
- ],
|
|
|
+ ]
|
|
|
// conditionName: [
|
|
|
// { required: true, message: '请输入条件明细', trigger: 'change' }
|
|
|
// ]
|
|
@@ -284,20 +284,30 @@ export default {
|
|
|
|
|
|
onSubmit() {
|
|
|
let goOn = true;
|
|
|
- this.$refs.subForm.$refs.form.validate(valid => {
|
|
|
- if (valid) {
|
|
|
- // console.log(this.$refs.subForm.$refs.form, '=========');
|
|
|
- } else {
|
|
|
- goOn = false;
|
|
|
- }
|
|
|
- });
|
|
|
- this.$refs.subForm.$refs.ruleForm.validate(valid => {
|
|
|
- if (valid) {
|
|
|
- // console.log(this.$refs.subForm.$refs.form, '=========');
|
|
|
- } else {
|
|
|
- goOn = false;
|
|
|
- }
|
|
|
- });
|
|
|
+ this.$refs.subForm.$refs.form1 &&
|
|
|
+ this.$refs.subForm.$refs.form1.validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ // console.log(this.$refs.subForm.$refs.form, '=========');
|
|
|
+ } else {
|
|
|
+ goOn = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$refs.subForm.$refs.form &&
|
|
|
+ this.$refs.subForm.$refs.form.validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ // console.log(this.$refs.subForm.$refs.form, '=========');
|
|
|
+ } else {
|
|
|
+ goOn = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$refs.subForm.$refs.ruleForm &&
|
|
|
+ this.$refs.subForm.$refs.ruleForm.validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ // console.log(this.$refs.subForm.$refs.form, '=========');
|
|
|
+ } else {
|
|
|
+ goOn = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
this.$refs.outForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
if (!goOn) return;
|