|
@ -65,16 +65,16 @@ |
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:user:add"> |
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:user:add"> |
|
|
<i class="fa fa-plus"></i> 新增 |
|
|
<i class="fa fa-plus"></i> 新增 |
|
|
</a> |
|
|
</a> |
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.editTab()" shiro:hasPermission="system:user:edit"> |
|
|
<a class="btn btn-success single disabled" onclick="$.operate.editTab()" shiro:hasPermission="system:user:edit"> |
|
|
<i class="fa fa-edit"></i> 修改 |
|
|
<i class="fa fa-edit"></i> 修改 |
|
|
</a> |
|
|
</a> |
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove"> |
|
|
<a class="btn btn-success multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove"> |
|
|
<i class="fa fa-remove"></i> 删除 |
|
|
<i class="fa fa-remove"></i> 删除 |
|
|
</a> |
|
|
</a> |
|
|
<a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="system:user:import"> |
|
|
<a class="btn btn-success" onclick="$.table.importExcel()" shiro:hasPermission="system:user:import"> |
|
|
<i class="fa fa-upload"></i> 导入 |
|
|
<i class="fa fa-upload"></i> 导入 |
|
|
</a> |
|
|
</a> |
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:user:export"> |
|
|
<a class="btn btn-success" onclick="$.table.exportExcel()" shiro:hasPermission="system:user:export"> |
|
|
<i class="fa fa-download"></i> 导出 |
|
|
<i class="fa fa-download"></i> 导出 |
|
|
</a> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
@ -172,13 +172,14 @@ |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
formatter: function(value, row, index) { |
|
|
formatter: function(value, row, index) { |
|
|
var actions = []; |
|
|
var actions = []; |
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.userId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|
|
actions.push('<a class=" ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.userId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.userId + '\')"><i class="fa fa-remove"></i>删除</a> '); |
|
|
actions.push('<a class=" ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.userId + '\')"><i class="fa fa-remove"></i>删除</a> '); |
|
|
var more = []; |
|
|
var more = []; |
|
|
more.push("<a class='btn btn-default btn-xs " + resetPwdFlag + "' href='javascript:void(0)' onclick='resetPwd(" + row.userId + ")'><i class='fa fa-key'></i>重置密码</a> "); |
|
|
more.push("<a class=' " + resetPwdFlag + "' href='javascript:void(0)' onclick='resetPwd(" + row.userId + ")'><i class='fa fa-key'></i>重置密码</a> "); |
|
|
more.push("<a class='btn btn-default btn-xs " + editFlag + "' href='javascript:void(0)' onclick='authRole(" + row.userId + ")'><i class='fa fa-check-square-o'></i>分配角色</a>"); |
|
|
more.push("<a class=' " + editFlag + "' href='javascript:void(0)' onclick='authRole(" + row.userId + ")'><i class='fa fa-check-square-o'></i>分配角色</a>"); |
|
|
actions.push('<a tabindex="0" class="btn btn-info btn-xs" role="button" data-container="body" data-placement="left" data-toggle="popover" data-html="true" data-trigger="hover" data-content="' + more.join('') + '"><i class="fa fa-chevron-circle-right"></i>更多操作</a>'); |
|
|
actions.push('<a tabindex="0" role="button" data-container="body" data-placement="left" data-toggle="popover" data-html="true" data-trigger="hover" data-content="' + more.join('') + '"><i class="fa fa-chevron-circle-right"></i>更多操作</a>'); |
|
|
return actions.join(''); |
|
|
var actionLinks = actions.join(''); |
|
|
|
|
|
return $.table.dropdownToggle(actionLinks); |
|
|
} |
|
|
} |
|
|
}] |
|
|
}] |
|
|
}; |
|
|
}; |
|
|