mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
最多选择三个专长
This commit is contained in:
@@ -459,8 +459,14 @@
|
|||||||
this.childData.forEach(it =>{
|
this.childData.forEach(it =>{
|
||||||
if(item == it.id){
|
if(item == it.id){
|
||||||
this.workname.push(it.name);
|
this.workname.push(it.name);
|
||||||
console.log(this.workname)
|
|
||||||
|
// this.workname.filter(function (item, index, arr) {
|
||||||
|
// return this.workname.indexOf(item, 0) === index;
|
||||||
|
// });
|
||||||
|
// console.log(this.workname,'ces')
|
||||||
}
|
}
|
||||||
|
console.log(this.workname,'lmj')
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -545,8 +551,12 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
teacherUpdata(){
|
teacherUpdata(){
|
||||||
if(this.checkboxtearGroup.length <3 && this.checkboxtearGroup.length>=1) {
|
if(this.checkboxtearGroup.length <1 && this.checkboxtearGroup.length>=1) {
|
||||||
this.$message.error('至少选择三个专长!')
|
this.$message.error('至少选择一个专长!')
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(this.checkboxtearGroup.length >3 && this.checkboxtearGroup.length>=1) {
|
||||||
|
this.$message.error('最多选择三个专长!')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(this.checkboxtearGroup);
|
console.log(this.checkboxtearGroup);
|
||||||
|
|||||||
Reference in New Issue
Block a user