|
@@ -17,9 +17,21 @@ var bootstrap = function ($, learun) { |
|
|
var columnModel; |
|
|
var columnModel; |
|
|
if (iframeIndex) { |
|
|
if (iframeIndex) { |
|
|
var currentWin = top.frames['layui-layer-iframe' + iframeIndex]; |
|
|
var currentWin = top.frames['layui-layer-iframe' + iframeIndex]; |
|
|
|
|
|
if (currentWin.$('#' + gridId).jfGrid()[0].dfop.rowdatas.length == 0) { |
|
|
|
|
|
learun.alert.warning("暂无数据!"); |
|
|
|
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引 |
|
|
|
|
|
parent.layer.close(index); //再执行关闭 |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
currentWin.$('#' + gridId).jfGridSet('reloadall'); |
|
|
currentWin.$('#' + gridId).jfGridSet('reloadall'); |
|
|
columnModel = currentWin.$('#' + gridId).jfGridGet('settingInfo').headData; |
|
|
columnModel = currentWin.$('#' + gridId).jfGridGet('settingInfo').headData; |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
if (learun.frameTab.currentIframe().$('#' + gridId).jfGrid()[0].dfop.rowdatas.length == 0) { |
|
|
|
|
|
learun.alert.warning("暂无数据!"); |
|
|
|
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引 |
|
|
|
|
|
parent.layer.close(index); //再执行关闭 |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
learun.frameTab.currentIframe().$('#' + gridId).jfGridSet('reloadall'); |
|
|
learun.frameTab.currentIframe().$('#' + gridId).jfGridSet('reloadall'); |
|
|
columnModel = learun.frameTab.currentIframe().$('#' + gridId).jfGridGet('settingInfo').headData; |
|
|
columnModel = learun.frameTab.currentIframe().$('#' + gridId).jfGridGet('settingInfo').headData; |
|
|
} |
|
|
} |
|
|