1. js
{field: 'area', title: __('省、市、區'), searchList: function (column) {
return Template('sourcetpl', {});
}
},
2. index.html
<script id="sourcetpl" type="text/html">
<div class="row">
<div class="col-xs-12">
<div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
<select class="province form-control" name="province_id" data-url="ajax/area" ></select>
<input type="hidden" class="operate" data-name="province_id" value="=" />
<select class="city form-control" name="city_id" data-url="ajax/area" data-query-name="province"></select>
<input type="hidden" class="operate" data-name="city_id" value="=" />
<select class="area form-control" name="area_id" data-url="ajax/area" data-query-name="city"></select>
<input type="hidden" class="operate" data-name="area_id" value="=" />
</div>
</div>
</div>
</script>