12345678910111213141516171819202122232425262728293031323334 |
- @{
- ViewBag.Title = "系统提示";
- }
- @section scripts{
- <script type="text/javascript">
- function encodeURL(s) {
- return s.replace(/&/g, "&");
- }
- $(function () {
- $.messager.alert('系统提示', decodeURI('@ViewBag.msg'), 'info', function () {
- var windowID = '@ViewBag.WindowID';
- var url = '@ViewBag.url'
- if (url != '' && (windowID == '' || windowID == 'none')) {
- location.href = encodeURL(url);
- }
- else {
- if (windowID == '' || windowID == 'none') {
- top.$('#sysWindow').window('close');
- } else {
- top.$('#' + windowID).window('close');
- }
- var tab = top.$('#index_center_tabs').tabs('getSelected');
- var $iframe = tab.panel('body').find("iframe");
- if ($iframe[0].contentWindow.reload)
- $iframe[0].contentWindow.reload();
- }
- });
- $(".panel-tool-close").css("display", "none");
- })
- </script>
- }
|