|
@@ -92,6 +92,9 @@
|
|
|
<a onclick="exportPers();" class="aero aerotemp layui-btn layui-btn-primary layui-btn-mini">
|
|
|
<span>${tc:i18n("organization.button.export.person.label")}</span>
|
|
|
</a>
|
|
|
+ <a onclick="updateImInfo();" class="aero aerotemp layui-btn layui-btn-primary layui-btn-mini">
|
|
|
+ <span>同步IM信息</span>
|
|
|
+ </a>
|
|
|
</c:if>
|
|
|
<!--</a> <a id="checkingPerson" href="javascript:;" class="aero" onfocus="this.blur()"> <span> 待审核成员 </span></a>
|
|
|
-->
|
|
@@ -146,7 +149,7 @@
|
|
|
<input id="doType" name="doType" value="" /> <input id="startDate" name="startDate" value="" /> <input id="endDate" name="endDate" value="" /> <input
|
|
|
id="pname" name="pname" value="" /> <input id="userName" name="uname" value="" /> <input id="depId" name="depId" value="" /> <input id="postName" name="postName" value="" />
|
|
|
<input id="phoneSerialNumber" name="phoneSerialNumber" value="" />
|
|
|
-
|
|
|
+
|
|
|
</form>
|
|
|
<iframe id="download4Export" name="download4Export" src="" style="display: none;"></iframe>
|
|
|
</body>
|
|
@@ -180,7 +183,7 @@ var treeSetting = {
|
|
|
},
|
|
|
callback: {
|
|
|
onAsyncSuccess: function(event, treeId, treeNode, msg) {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
onClick: function(event, treeId, treeNode, clickFlag) {
|
|
|
if(treeNode){
|
|
@@ -292,6 +295,27 @@ function exportPers() {
|
|
|
|
|
|
}
|
|
|
|
|
|
+function updateImInfo(){
|
|
|
+ let progressBar = $.startProc({
|
|
|
+ msg:"正在执行同步,请耐心等待...",
|
|
|
+ time:30
|
|
|
+ });
|
|
|
+ $.ajax({
|
|
|
+ type: "post",
|
|
|
+ url: TC.config.baseUrl+"/workpro/sync",
|
|
|
+ dataType: "json",
|
|
|
+ success: function (data) {
|
|
|
+ if(data.state === 'success'){
|
|
|
+ $.alert("信息同步成功!");
|
|
|
+ }else {
|
|
|
+ $.alert("信息同步失败,请重试");
|
|
|
+ }
|
|
|
+ progressBar.close()
|
|
|
+ },
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
function submitImport(){
|
|
|
if (document.getElementById('importFile').value=='') {
|
|
|
alert('选择一个上传文件!');
|
|
@@ -326,7 +350,7 @@ $(function() {
|
|
|
});
|
|
|
$("#createPerson").click(function(){
|
|
|
var url = '/org/persons/detail/create';
|
|
|
- var nodes = ztreeObj.getSelectedNodes();
|
|
|
+ var nodes = ztreeObj.getSelectedNodes();
|
|
|
if (!nodes || nodes.length <= 0) {
|
|
|
TC.topWin.addTab('newPerson',$.i18n("organization.person.new.label"),url);
|
|
|
} else {
|