Commit 253b48823219feb26218d7d6bdb5d847d0df4986
1 parent
64b9032a
修改弹出报错框没有报错信息
Showing
1 changed file
with
21 additions
and
21 deletions
src/main/resources/static/huaheng/js/huahengUI.js
... | ... | @@ -165,7 +165,7 @@ var table = { |
165 | 165 | if (res.code == 200) { |
166 | 166 | return {rows: res.data, total: res.total}; |
167 | 167 | } else { |
168 | - $.modal.alertWarning(res.msg); | |
168 | + $.modal.alertWarning(res.message); | |
169 | 169 | return {rows: [], total: 0}; |
170 | 170 | } |
171 | 171 | }, |
... | ... | @@ -335,9 +335,9 @@ var table = { |
335 | 335 | $.modal.loading("正在导出数据,请稍后..."); |
336 | 336 | $.post(table.options.exportUrl, $("#" + currentId).serializeArray(), function (result) { |
337 | 337 | if (result.code == web_status.SUCCESS) { |
338 | - window.location.href = ctx + "common/download?fileName=" + result.msg + "&delete=" + true; | |
338 | + window.location.href = ctx + "common/download?fileName=" + result.message + "&delete=" + true; | |
339 | 339 | } else { |
340 | - $.modal.alertError(result.msg); | |
340 | + $.modal.alertError(result.message); | |
341 | 341 | } |
342 | 342 | $.modal.closeLoading(); |
343 | 343 | }); |
... | ... | @@ -346,11 +346,11 @@ var table = { |
346 | 346 | importTemplate: function () { |
347 | 347 | $.get($.table._option.importTemplateUrl, function (result) { |
348 | 348 | if (result.code == web_status.SUCCESS) { |
349 | - window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true; | |
349 | + window.location.href = ctx + "common/download?fileName=" + encodeURI(result.message) + "&delete=" + true; | |
350 | 350 | } else if (result.code == web_status.WARNING) { |
351 | - $.modal.alertWarning(result.msg) | |
351 | + $.modal.alertWarning(result.message) | |
352 | 352 | } else { |
353 | - $.modal.alertError(result.msg); | |
353 | + $.modal.alertError(result.message); | |
354 | 354 | } |
355 | 355 | }); |
356 | 356 | }, |
... | ... | @@ -390,16 +390,16 @@ var table = { |
390 | 390 | success: function (result) { |
391 | 391 | if (result.code == web_status.SUCCESS) { |
392 | 392 | $.modal.closeAll(); |
393 | - $.modal.alertSuccess(result.msg); | |
393 | + $.modal.alertSuccess(result.message); | |
394 | 394 | $.table.refresh(); |
395 | 395 | } else if (result.code == web_status.WARNING) { |
396 | 396 | layer.close(index); |
397 | 397 | $.modal.enable(); |
398 | - $.modal.alertWarning(result.msg) | |
398 | + $.modal.alertWarning(result.message) | |
399 | 399 | } else { |
400 | 400 | layer.close(index); |
401 | 401 | $.modal.enable(); |
402 | - $.modal.alertError(result.msg); | |
402 | + $.modal.alertError(result.message); | |
403 | 403 | } |
404 | 404 | } |
405 | 405 | }); |
... | ... | @@ -648,7 +648,7 @@ var table = { |
648 | 648 | table.options.responseHandler(res); |
649 | 649 | } |
650 | 650 | if (res.code != undefined && res.code != 0) { |
651 | - $.modal.alertWarning(res.msg); | |
651 | + $.modal.alertWarning(res.message); | |
652 | 652 | return []; |
653 | 653 | } else { |
654 | 654 | return res; |
... | ... | @@ -950,10 +950,10 @@ var table = { |
950 | 950 | data: data, |
951 | 951 | success: function (result) { |
952 | 952 | if (result.code == web_status.SUCCESS) { |
953 | - $.modal.msgSuccess(result.msg); | |
953 | + $.modal.msgSuccess(result.message); | |
954 | 954 | callback(); |
955 | 955 | } else { |
956 | - $.modal.alertError(result.msg); | |
956 | + $.modal.alertError(result.message); | |
957 | 957 | } |
958 | 958 | $.modal.closeLoading(); |
959 | 959 | } |
... | ... | @@ -1131,11 +1131,11 @@ var table = { |
1131 | 1131 | callback(result); |
1132 | 1132 | } |
1133 | 1133 | if (result.code == web_status.SUCCESS) { |
1134 | - $.modal.alertSuccess(result.msg) | |
1134 | + $.modal.alertSuccess(result.message) | |
1135 | 1135 | } else if (result.code == web_status.WARNING) { |
1136 | - $.modal.alertWarning(result.msg) | |
1136 | + $.modal.alertWarning(result.message) | |
1137 | 1137 | } else { |
1138 | - $.modal.alertError(result.msg); | |
1138 | + $.modal.alertError(result.message); | |
1139 | 1139 | } |
1140 | 1140 | $.modal.closeLoading(); |
1141 | 1141 | } |
... | ... | @@ -1165,10 +1165,10 @@ var table = { |
1165 | 1165 | // 保存结果弹出msg刷新table表格 |
1166 | 1166 | ajaxSuccess: function (result) { |
1167 | 1167 | if (result.code == web_status.SUCCESS) { |
1168 | - $.modal.msgSuccess(result.msg); | |
1168 | + $.modal.msgSuccess(result.message); | |
1169 | 1169 | $.table.refresh(); |
1170 | 1170 | } else { |
1171 | - $.modal.alertError(result.msg); | |
1171 | + $.modal.alertError(result.message); | |
1172 | 1172 | } |
1173 | 1173 | $.modal.closeLoading(); |
1174 | 1174 | }, |
... | ... | @@ -1177,7 +1177,7 @@ var table = { |
1177 | 1177 | if (result.code == web_status.SUCCESS) { |
1178 | 1178 | $.modal.msgReload("保存成功,正在刷新数据请稍后……", modal_status.SUCCESS); |
1179 | 1179 | } else { |
1180 | - $.modal.alertError(result.msg); | |
1180 | + $.modal.alertError(result.message); | |
1181 | 1181 | } |
1182 | 1182 | $.modal.closeLoading(); |
1183 | 1183 | }, |
... | ... | @@ -1188,7 +1188,7 @@ var table = { |
1188 | 1188 | var currentId = $('.page-tabs-content', topWindow).find('.active').attr('data-panel'); |
1189 | 1189 | var $contentWindow = $('.RuoYi_iframe[data-id="' + currentId + '"]', topWindow)[0].contentWindow; |
1190 | 1190 | $.modal.close(); |
1191 | - $contentWindow.$.modal.msgSuccess(result.msg); | |
1191 | + $contentWindow.$.modal.msgSuccess(result.message); | |
1192 | 1192 | $contentWindow.$(".layui-layer-padding").removeAttr("style"); |
1193 | 1193 | if ($contentWindow.table.options.type == table_type.bootstrapTable) { |
1194 | 1194 | $contentWindow.$.table.refresh(); |
... | ... | @@ -1197,9 +1197,9 @@ var table = { |
1197 | 1197 | } |
1198 | 1198 | $.modal.closeTab(); |
1199 | 1199 | } else if (result.code == web_status.WARNING) { |
1200 | - $.modal.alertWarning(result.msg) | |
1200 | + $.modal.alertWarning(result.message) | |
1201 | 1201 | } else { |
1202 | - $.modal.alertError(result.msg); | |
1202 | + $.modal.alertError(result.message); | |
1203 | 1203 | } |
1204 | 1204 | $.modal.closeLoading(); |
1205 | 1205 | } |
... | ... |