企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ //js文件 {field: 'city.mergename', title: __('City Name'), searchList: function (column) { //重点 return Template('sourcetpl', {}); }}, ~~~ ~~~ //html 文件 // data-url="ajax/area" 是请求接口返回的数据 <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> ~~~ 效果 ![](https://img.kancloud.cn/42/ce/42ce6e4937bc4579174f7df8518c4373_337x72.png) ![](https://img.kancloud.cn/dd/3b/dd3b25888e2bb5668bff5276743502f7_256x431.png) ![](https://img.kancloud.cn/df/5b/df5b847114d7e25b61541bb3df8dab4d_333x76.png) ![](https://img.kancloud.cn/7b/ae/7bae27bc1f604bc31f812ae18a571b83_259x158.png) ![](https://img.kancloud.cn/26/88/268849e0c01956e41f90ace2cb49b933_1078x416.png)