修正左树右表没有刷新树表

This commit is contained in:
jeesite
2021-12-18 16:01:15 +08:00
parent 8ab378dff1
commit 125d94a06c
7 changed files with 17 additions and 5 deletions

View File

@@ -112,7 +112,7 @@ $("#inputForm").validate({
if(data.result == Global.TRUE){
js.closeCurrentTabPage(function(contentWindow){
<% if(table.isTreeEntity){ %>
contentWindow.$('#dataGrid').dataGrid('refreshTreeChildren',
(contentWindow.win||contentWindow).$('#dataGrid').dataGrid('refreshTreeChildren',
$('#parentCode').val(), '\${${className}.id}');
<% }else{ %>
contentWindow.page();

View File

@@ -111,7 +111,7 @@ $("#inputForm").validate({
if(data.result == Global.TRUE){
js.closeCurrentTabPage(function(contentWindow){
<% if(table.isTreeEntity){ %>
contentWindow.$('#dataGrid').dataGrid('refreshTreeChildren',
(contentWindow.win||contentWindow).$('#dataGrid').dataGrid('refreshTreeChildren',
$('#parentCode').val(), '\${${className}.id}');
<% }else{ %>
contentWindow.page();

View File

@@ -103,8 +103,8 @@ $("#inputForm").validate({
js.showMessage(data.message);
if(data.result == Global.TRUE){
js.closeCurrentTabPage(function(contentWindow){
contentWindow.$('#dataGrid').dataGrid('refreshTreeChildren',
$('#parentCode').val(), '${area.id}');
(contentWindow.win||contentWindow).$('#dataGrid').dataGrid('refreshTreeChildren',
$('#parentCode').val(), '${company.id}');
});
}
}, "json");

View File

@@ -68,4 +68,8 @@ $('#btnCollapse').click(function(){
$('#btnRefresh').click(function(){
loadTree();
});
// 调用子页分页函数
function page(){
win.page();
}
</script>

View File

@@ -131,7 +131,7 @@ $("#inputForm").validate({
js.showMessage(data.message);
if(data.result == Global.TRUE){
js.closeCurrentTabPage(function(contentWindow){
contentWindow.$('#dataGrid').dataGrid('refreshTreeChildren',
(contentWindow.win||contentWindow).$('#dataGrid').dataGrid('refreshTreeChildren',
$('#parentCode').val(), '${company.id}');
});
}

View File

@@ -69,4 +69,8 @@ $('#btnCollapse').click(function(){
$('#btnRefresh').click(function(){
loadTree();
});
// 调用子页分页函数
function page(){
win.page();
}
</script>

View File

@@ -69,4 +69,8 @@ $('#btnCollapse').click(function(){
$('#btnRefresh').click(function(){
loadTree();
});
// 调用子页分页函数
function page(){
win.page();
}
</script>