|
|
|
@ -82,6 +82,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weadmin-body" style="overflow: hidden">
|
|
|
|
|
<div style="float:right">
|
|
|
|
|
<div class="layui-btn layui-btn-orange" onclick="sync();" type="button">
|
|
|
|
|
<span class="layui-icon layui-icon-senior"></span>一键同步
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-btn layui-btn-normal exportBtn" onclick="exportExcel();" type="button">
|
|
|
|
|
<span class="layui-icon layui-icon-export"></span>导出职务与分管工作
|
|
|
|
|
</div>
|
|
|
|
@ -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});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|