diff --git a/bin/clean.bat b/bin/clean.bat new file mode 100644 index 00000000..4462a011 --- /dev/null +++ b/bin/clean.bat @@ -0,0 +1,14 @@ +@echo off +echo. +echo [信息] 清理生成路径。 +echo. +pause +echo. + +cd %~dp0 +cd.. + +call mvn clean + +cd bin +pause \ No newline at end of file diff --git a/package.bat b/bin/package.bat similarity index 92% rename from package.bat rename to bin/package.bat index 7879e80d..dc756fbd 100644 --- a/package.bat +++ b/bin/package.bat @@ -6,6 +6,7 @@ pause echo. cd %~dp0 +cd.. call mvn clean package -Dmaven.test.skip=true diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index b6846d12..f015f1a8 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -99,7 +99,6 @@ // 鍒锋柊琛ㄦ牸 refresh: function() { $("#bootstrap-table").bootstrapTable('refresh', { - url: $.table._option.url, silent: true }); }, @@ -135,7 +134,7 @@ $.table._option = options; _striped = $.common.isEmpty(options.striped) ? false : options.striped; _expandColumn = $.common.isEmpty(options.expandColumn) ? '1' : options.expandColumn; - var treeTable = $('#bootstrap-table').bootstrapTreeTable({ + var treeTable = $('#bootstrap-tree-table').bootstrapTreeTable({ code: options.code, // 鐢ㄤ簬璁剧疆鐖跺瓙鍏崇郴 parentCode: options.parentCode, // 鐢ㄤ簬璁剧疆鐖跺瓙鍏崇郴 type: 'get', // 璇锋眰鏂瑰紡锛*锛 @@ -528,7 +527,7 @@ dataType: "json", data: data, success: function(result) { - $.operate.saveSuccess(result); + $.operate.successCallback(result); } }; $.ajax(config) @@ -543,7 +542,7 @@ } $.modal.closeLoading(); }, - // 淇濆瓨缁撴灉鎻愮ずmsg + // 鎴愬姛缁撴灉鎻愮ずmsg锛堢埗绐椾綋鍏ㄥ眬鏇存柊锛 saveSuccess: function (result) { if (result.code == web_status.SUCCESS) { $.modal.msgReload("淇濆瓨鎴愬姛,姝e湪鍒锋柊鏁版嵁璇风◢鍚庘︹", modal_status.SUCCESS); @@ -551,6 +550,25 @@ $.modal.alertError(result.msg); } $.modal.closeLoading(); + }, + // 鎴愬姛鍥炶皟鎵ц浜嬩欢锛堢埗绐椾綋闈欓粯鏇存柊锛 + successCallback: function(result) { + if (result.code == web_status.SUCCESS) { + if (window.parent.$("#bootstrap-table").length > 0) { + $.modal.close(); + window.parent.$.modal.msgSuccess(result.msg); + window.parent.$.table.refresh(); + } else if (window.parent.$("#bootstrap-tree-table").length > 0) { + $.modal.close(); + window.parent.$.modal.msgSuccess(result.msg); + window.parent.$.treeTable.refresh(); + } else { + $.modal.msgReload("淇濆瓨鎴愬姛,姝e湪鍒锋柊鏁版嵁璇风◢鍚庘︹", modal_status.SUCCESS); + } + } else { + $.modal.alertError(result.msg); + } + $.modal.closeLoading(); } }, // 鏍¢獙灏佽澶勭悊 diff --git a/ruoyi-admin/src/main/resources/templates/system/dept/dept.html b/ruoyi-admin/src/main/resources/templates/system/dept/dept.html index b39bc992..70f09c6f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/dept/dept.html +++ b/ruoyi-admin/src/main/resources/templates/system/dept/dept.html @@ -40,7 +40,7 @@