first commit
This commit is contained in:
57
WebRoot/jsp/user/unit4selectlimited.jsp
Normal file
57
WebRoot/jsp/user/unit4selectlimited.jsp
Normal file
@ -0,0 +1,57 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<script type="text/javascript">
|
||||
var selectMenu = function () {
|
||||
|
||||
alert('${param.hiddenId}' + '${param.textId}');
|
||||
}
|
||||
$(function () {
|
||||
$.fn.update = function (value) {
|
||||
$(this).each(function () {
|
||||
if (value != this.value) {
|
||||
this.value = value;
|
||||
this.onchange();
|
||||
}
|
||||
});
|
||||
};
|
||||
//$.post(ext.contextPath + '/user/getUnitForTree_Dept.do', { ng: '', type: '${param.type}' }, function (data) {
|
||||
$.post(ext.contextPath + '/user/getUnitForTree_Dept_All.do', { ng: '', type: '${param.type}' }, function (data) {
|
||||
//console.info(data)
|
||||
if (data.length > 0) {
|
||||
$('#unit_select_tree').treeview({
|
||||
data: data,
|
||||
});
|
||||
$('#unit_select_tree').on('nodeSelected', function (event, data) {
|
||||
$('#${param.formId} #${param.hiddenId}').val(data.id).change();
|
||||
$('#${param.formId} #${param.textId}').val(data.text);
|
||||
closeModal("unit4SelectModal_Limited");
|
||||
//20190820 不清空权限下拉
|
||||
// if ($('#_roles').length > 0) {
|
||||
// $('#_roles').empty();
|
||||
// loadRole();
|
||||
// }
|
||||
});
|
||||
}
|
||||
}, 'json');
|
||||
|
||||
});
|
||||
</script>
|
||||
<div class="modal fade" id="unit4SelectModal_Limited">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">选择菜单</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="unit_select_tree" style="height:430px;overflow:auto;width:100%"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||||
<!-- <button type="button" class="btn btn-primary" onclick="selectMenu()">保存</button> -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user