* Finish task#57901.

This commit is contained in:
leiyong
2022-06-22 02:58:47 +00:00
parent 0feed34baa
commit a5df9de8ad
4 changed files with 18 additions and 7 deletions
+13 -6
View File
@@ -19,8 +19,9 @@
</div>
<?php if($webhookType == 'feishuuser'):?>
<div id="notice" class="alert alert-info">
<div class="content"><i class="icon-exclamation-sign"></i> <?php echo $lang->webhook->loadPrompt;?></div>
<div class="content"><i class="icon-exclamation-sign"></i> <?php echo $lang->webhook->friendlyTips;?></div>
</div>
<div id='loadPrompt' class="table-empty-tip"><p><span class="text-muted"><?php echo $lang->webhook->loadPrompt;?></span></p></div>
<?php endif;?>
<ul id='deptList' class="ztree"></ul>
<div class='actions'>
@@ -66,9 +67,10 @@ $(function()
},
callback:
{
beforeClick: beforeClick,
beforeAsync: beforeAsync,
onClick: ztreeOnAsyncSuccess
beforeClick: ztreeBeforeClick,
beforeAsync: ztreeBeforeAsync,
onClick: ztreeOnAsyncSuccess,
onAsyncSuccess: zTreeOnAsyncSuccess
}
};
@@ -82,7 +84,7 @@ $(function()
return childNodes;
}
function beforeClick(treeId, treeNode)
function ztreeBeforeClick(treeId, treeNode)
{
if(treeNode.isParent)
{
@@ -94,7 +96,7 @@ $(function()
}
}
function beforeAsync(treeId, treeNode)
function ztreeBeforeAsync(treeId, treeNode)
{
return true;
}
@@ -144,6 +146,11 @@ $(function()
});
}
function zTreeOnAsyncSuccess()
{
$("#loadPrompt").remove();
}
var ztreeObj = $.fn.zTree.init($("#deptList"), setting);
}
else