diff --git a/dsBase/WebRoot/html/pages/unit/unitList.html b/dsBase/WebRoot/html/pages/unit/unitList.html
index f26c74c8..383cd25f 100644
--- a/dsBase/WebRoot/html/pages/unit/unitList.html
+++ b/dsBase/WebRoot/html/pages/unit/unitList.html
@@ -82,6 +82,9 @@
+
+ 一键同步
+
导出职务与分管工作
@@ -351,6 +354,20 @@
window.exportExcel = function () {
window.location.href = "/dsBase/base/getPrincipalshipThirdPartyForExcel";
}
+ window.sync = function () {
+ $.ajax({
+ type: "POST",
+ async: false,
+ url: '/dsBase/dataAuthority/syncResource',
+ dataType: "json",
+ success: function (res) {
+ if(res.success){
+ layer.msg(res.message, {icon: 1, time: 2000, shade: 0.1});
+ }
+
+ }
+ });
+ }
})