diff --git a/app/Forms/ProductForm.php b/app/Forms/ProductForm.php index cd7482d..0275ae2 100755 --- a/app/Forms/ProductForm.php +++ b/app/Forms/ProductForm.php @@ -52,7 +52,7 @@ class ProductForm extends Form 'label' => false ] ]); - $this->add("factor_item_ids", Field::SELECT, ["label" => "统计价格因素", "rules" => "required", "attr" => ["multiple" => true, "data-plugin" => "select2"]]); + $this->add("factor_item_ids[]", Field::SELECT, ["label" => "统计价格因素", "rules" => "required", "attr" => ["multiple" => true, "data-plugin" => "select2"]]); $this->add('buttons', 'buttongroup', ["splitted" => true, "buttons" => [ ["label" => "保存", "attr" => ["class" => "btn btn-primary mr-1", "type" => "submit"]], ["label" => "返回", "attr" => ["class" => "btn btn-light btn-back", "type" => "button"]]