123456789101112131415161718192021222324252627282930313233343536373839404142 |
- @{
- 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';
- var title = '@ViewBag.newtitle';
- var height = '@ViewBag.Height';
- var width = '@ViewBag.Width';
- if (height == null || height == "")
- {
- height = 530;
- }
- if (width == null || width == "")
- {
- width = 860;
- }
- if (url != '' && (windowID == '' || windowID == 'none')) {
- location.href = encodeURL(url);
- }
- else {
- if (windowID == '' || windowID == 'none') {
- top.$('#sysWindow').window('close');
- } else {
- top.$('#' + windowID).window('close');
- }
- var redirectTo = encodeURL(url);
- $.popupTopWindow(title, redirectTo, width, height, null, null);
- }
- });
- $(".panel-tool-close").css("display", "none");
- })
- </script>
- }
|