Explorar o código

最少添加一个解决方案

ccf %!s(int64=3) %!d(string=hai) anos
pai
achega
54c5f3951e
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      pages/otherpage/companyComplete/add/solution_list.vue

+ 8 - 1
pages/otherpage/companyComplete/add/solution_list.vue

@@ -81,7 +81,14 @@
       },
       async next()
       {
-        this.$emit("active_set",3);
+        if(this.service_provider_data.length==0)
+        {
+          this.$message.error("最少添加一个解决方案");
+        }
+        else
+        {
+          this.$emit("active_set",3);
+        }
       },
     },
   }