Browse Source

Merge branch '塔里木分支' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 塔里木分支

新疆影视学院高职
zhangli 2 years ago
parent
commit
1ee50b8a09
2 changed files with 13 additions and 1 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js
  2. +12
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ExcelExportForm.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js View File

@@ -165,7 +165,7 @@
if (res.data.pwd == true) { if (res.data.pwd == true) {
window.location.href = "/Home/Index?pwd=true"; window.location.href = "/Home/Index?pwd=true";
} else if (res.data.pwdtip == true) { } else if (res.data.pwdtip == true) {
window.location.href = "/Home/Index?pwdtip=true";
window.location.href = "/Home/Index?pwd=true";
} }
else else
window.location.href = "/Home/Index"; window.location.href = "/Home/Index";


+ 12
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ExcelExportForm.js View File

@@ -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;
} }


Loading…
Cancel
Save