bjui相关的操作

2019-08-14  本文已影响0人  波波大人2018

模态框的操作

$(this).dialog('closeCurrent') 关闭当前弹窗;
$(this).dialog('refresh');刷新当前弹窗 
$(this).dialog('closeCurrent');

jsp ajax的操作

function resetPassword(uid) {
        $(this).bjuiajax('doAjax', {
            url : 'xxxx',
            data : {
                uid : uid
            },
            confirmMsg : '确认重置密码?',
            callback : function(data) {
                if (data.code == 0) {
                    $(this).dialog('refresh');
                    $(this).alertmsg('ok', data.message);
                } else {
                    $(this).alertmsg('error', data.message);
                }
            }
        });
    }

查找带回

<div class="bjui-pageContent">
    <c:if test="${empty user}"><input id="userList" type="hidden" value="0"></input></c:if>
    <table data-toggle="tablefixed" data-width="100%">
        <thead>
            <tr>
                <th data-order-field="id">UID</th>
                <th data-order-field="name">昵称</th>
                <th width="28"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th width="74">操作</th>
            </tr>
        </thead>
        <tbody>
            <c:forEach items="${user }" var="d">
                <tr>
                    <td class="con_01" style="width:20%">${d.uid }</td>
                    <td class="con_02" style="width:15%">${d.nick_name }</td>
                    <td><input type="checkbox" name="ids" data-toggle="icheck" value="{receiver:'${d.uid }'}"></td>
                    <td>
                        <a href="javascript:;" data-toggle="lookupback" data-args="{type:'${d.uid }'}"
                         class="btn btn-blue" title="选择本项" data-icon="check">选择</a>
                    </td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</div>
上一篇 下一篇

猜你喜欢

热点阅读