合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
``` //$('#c-specification') 为第二个select的id //product_id 为条件字段名 //$("#c-product_id") 为第一个select的id $("#c-specification_id").data("params", function () { return {custom: {product_id: $("#c-product_id").val()}}; }); add <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('产品')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-product_id" data-rule="required" data-source="product/search" class="form-control selectpage" name="row[product_id]" type="text" value=""> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('规格分类')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-specification_id" data-rule="required" data-source="specification_classification/search" class="form-control selectpage" name="row[specification_id]" type="text" value=""> </div> </div> edit <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('产品')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-product_id" data-rule="required" data-source="product/search" class="form-control selectpage" name="row[product_id]" type="text" value="{$row.product_id|htmlentities}"> </div> </div> <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('规格分类')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-specification_id" data-rule="required" data-source="specification_classification/search" class="form-control selectpage" name="row[specification_id]" type="text" value="{$row.specification_id|htmlentities}"> </div> </div> ```