layui.use(['form', 'layer'], function () { var form = layui.form(); var layer = layui.layer; form.on('select(lay-filter)', function (data) { //触发内容 }); }); lay-filter为下拉框lay-filter属性
1.1:下拉框条件:后台取得ViewBag传给前台 MonitorController: public ActionResult BigData(): //下拉框筛选条件 var result = MonitorBLL.GetSoilPlantCountByCode(loginSoil); var r = (object)result.data; ViewBag.soilplantcount = r; // loginSoil是登录用户 public static ResponseModel G