|
@@ -868,7 +868,16 @@ export default {
|
|
handleInputConfirm() {
|
|
handleInputConfirm() {
|
|
let label = this.label;
|
|
let label = this.label;
|
|
if (label) {
|
|
if (label) {
|
|
- this.companyList1.label.push(label)
|
|
|
|
|
|
+ if(this.companyList1.label.length>5){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '最多添加六个标签!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ this.companyList1.label.push(label)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.inputVisible = false
|
|
this.inputVisible = false
|
|
this.label = ''
|
|
this.label = ''
|