zhangyuewww hace 3 años
padre
commit
92d45db516
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      src/views/platformaudit/grainpulseenterprisereview.vue

+ 10 - 1
src/views/platformaudit/grainpulseenterprisereview.vue

@@ -868,7 +868,16 @@ export default {
     handleInputConfirm() {
       let label = this.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.label = ''