Layui 按钮点击 打开新的tab页


                    <div class="layui-form-item">
                        <label class="layui-form-label">
                        </label>
                        <button  class="layui-btn" lay-filter="add" lay-submit="">
                            查询
                        </button>
                    </div>
            //监听提交
            form.on('submit(add)',
                function(data) {
                    var href = '{:url(\'evaluateData\')}'+'?year='+ data.field.year;
                    var l = parent === self ? layui : top.layui;
                    l.index.openTabsPage(href, "查询结果");
                    // xadmin.open('查询结果','{:url('evaluateData')}'+'?tid='+ data.field.tid+'&year='+ data.field.year);
                    return false;
                });


最新回复 (0)
发新帖