修正左树右表没有刷新树表
This commit is contained in:
@@ -112,7 +112,7 @@ $("#inputForm").validate({
|
|||||||
if(data.result == Global.TRUE){
|
if(data.result == Global.TRUE){
|
||||||
js.closeCurrentTabPage(function(contentWindow){
|
js.closeCurrentTabPage(function(contentWindow){
|
||||||
<% if(table.isTreeEntity){ %>
|
<% if(table.isTreeEntity){ %>
|
||||||
contentWindow.$('#dataGrid').dataGrid('refreshTreeChildren',
|
(contentWindow.win||contentWindow).$('#dataGrid').dataGrid('refreshTreeChildren',
|
||||||
$('#parentCode').val(), '\${${className}.id}');
|
$('#parentCode').val(), '\${${className}.id}');
|
||||||
<% }else{ %>
|
<% }else{ %>
|
||||||
contentWindow.page();
|
contentWindow.page();
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ $("#inputForm").validate({
|
|||||||
if(data.result == Global.TRUE){
|
if(data.result == Global.TRUE){
|
||||||
js.closeCurrentTabPage(function(contentWindow){
|
js.closeCurrentTabPage(function(contentWindow){
|
||||||
<% if(table.isTreeEntity){ %>
|
<% if(table.isTreeEntity){ %>
|
||||||
contentWindow.$('#dataGrid').dataGrid('refreshTreeChildren',
|
(contentWindow.win||contentWindow).$('#dataGrid').dataGrid('refreshTreeChildren',
|
||||||
$('#parentCode').val(), '\${${className}.id}');
|
$('#parentCode').val(), '\${${className}.id}');
|
||||||
<% }else{ %>
|
<% }else{ %>
|
||||||
contentWindow.page();
|
contentWindow.page();
|
||||||
|
|||||||
@@ -103,8 +103,8 @@ $("#inputForm").validate({
|
|||||||
js.showMessage(data.message);
|
js.showMessage(data.message);
|
||||||
if(data.result == Global.TRUE){
|
if(data.result == Global.TRUE){
|
||||||
js.closeCurrentTabPage(function(contentWindow){
|
js.closeCurrentTabPage(function(contentWindow){
|
||||||
contentWindow.$('#dataGrid').dataGrid('refreshTreeChildren',
|
(contentWindow.win||contentWindow).$('#dataGrid').dataGrid('refreshTreeChildren',
|
||||||
$('#parentCode').val(), '${area.id}');
|
$('#parentCode').val(), '${company.id}');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json");
|
||||||
|
|||||||
@@ -68,4 +68,8 @@ $('#btnCollapse').click(function(){
|
|||||||
$('#btnRefresh').click(function(){
|
$('#btnRefresh').click(function(){
|
||||||
loadTree();
|
loadTree();
|
||||||
});
|
});
|
||||||
|
// 调用子页分页函数
|
||||||
|
function page(){
|
||||||
|
win.page();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ $("#inputForm").validate({
|
|||||||
js.showMessage(data.message);
|
js.showMessage(data.message);
|
||||||
if(data.result == Global.TRUE){
|
if(data.result == Global.TRUE){
|
||||||
js.closeCurrentTabPage(function(contentWindow){
|
js.closeCurrentTabPage(function(contentWindow){
|
||||||
contentWindow.$('#dataGrid').dataGrid('refreshTreeChildren',
|
(contentWindow.win||contentWindow).$('#dataGrid').dataGrid('refreshTreeChildren',
|
||||||
$('#parentCode').val(), '${company.id}');
|
$('#parentCode').val(), '${company.id}');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,4 +69,8 @@ $('#btnCollapse').click(function(){
|
|||||||
$('#btnRefresh').click(function(){
|
$('#btnRefresh').click(function(){
|
||||||
loadTree();
|
loadTree();
|
||||||
});
|
});
|
||||||
|
// 调用子页分页函数
|
||||||
|
function page(){
|
||||||
|
win.page();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -69,4 +69,8 @@ $('#btnCollapse').click(function(){
|
|||||||
$('#btnRefresh').click(function(){
|
$('#btnRefresh').click(function(){
|
||||||
loadTree();
|
loadTree();
|
||||||
});
|
});
|
||||||
|
// 调用子页分页函数
|
||||||
|
function page(){
|
||||||
|
win.page();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user