对部分数据校验进行修改

This commit is contained in:
Cool 2024-04-29 16:52:54 +08:00
parent 78d271d832
commit f96f5bf6ab
1 changed files with 17 additions and 10 deletions

View File

@ -312,14 +312,20 @@ export default {
this.query(query, college, [this.oneentrydate]);
},
async majorQuery() {
if (this.lastCollegeMajor.length == 0 || this.lastCollegeMajor == null) {
message.error('请选择专业');
return;
}
if (this.majorentrydate.length == 0) {
message.error('请选择年级');
return;
}
if (this.collegeMajor.length == 0||this.collegeMajor==null) {
message.error('请选择学院');
return;
}
if (this.lastCollegeMajor.length == 0 || this.lastCollegeMajor == null) {
message.error('请选择专业');
return;
}
this.tab3loading = true;
let res = null;
try {
@ -337,14 +343,15 @@ export default {
}
},
collegeQuery() {
if (this.collegetab2.length == 0) {
message.error('请选择学院');
return;
}
if (this.collegeentrydate.length == 0) {
message.error('请选择年级');
return;
}
if (this.collegetab2.length == 0) {
message.error('请选择学院');
return;
}
this.tab2loading = true;
let query = 'tab2';
this.query(query, this.collegetab2, this.collegeentrydate);
@ -390,7 +397,7 @@ export default {
}),
};
});
this.collegeMajor = ['东语学院', '日语'];
// this.collegeMajor = [''];
console.log(this.collegeMajor, 'collegeMajor');
console.log(this.collegeMajorOptions, 'collegeMajorOptions1');
},
@ -987,7 +994,7 @@ export default {
this.entrydateOptions = getEntrydate.entrydates;
this.oneentrydate = this.entrydateOptions[0].value;
// this.collegeentrydate = [this.entrydateOptions[0].value];
this.majorentrydate = [this.entrydateOptions[0].value];
// this.majorentrydate = [this.entrydateOptions[0].value];
// this.entrydate.push (this.entrydateOptions[0].value);
},
//