* Finish task #46162.

This commit is contained in:
tianshujie
2021-12-20 16:24:19 +08:00
parent ac49c3f367
commit ec2e94440d
2 changed files with 30 additions and 6 deletions
+17 -5
View File
@@ -781,9 +781,9 @@ $(function()
initKanban($(this));
});
$('.icon-double-angle-up,.icon-double-angle-down').on('click', function()
$('.icon-chevron-double-up,.icon-chevron-double-down').on('click', function()
{
$(this).toggleClass('icon-double-angle-up icon-double-angle-down');
$(this).toggleClass('icon-chevron-double-up icon-chevron-double-down');
$(this).parents('.region').find('.kanban').toggle();
hideKanbanAction();
});
@@ -894,7 +894,13 @@ $(function()
{
if(sortType == 'region')
{
$('.icon-double-angle-up').attr('class', 'icon-double-angle-down');
showRegion = '';
$('.icon-chevron-double-up').each(function()
{
showRegion += $(this).attr('data-id') + ',';
$(this).attr('class', 'icon-chevron-double-down');
});
$('.region').find('.kanban').hide();
hideKanbanAction();
}
@@ -910,8 +916,14 @@ $(function()
if(sortType == 'region')
{
$('.icon-double-angle-down').attr('class', 'icon-double-angle-up');
$('.region').find('.kanban').show();
$('.region').each(function()
{
if(showRegion.includes($(this).attr('data-id')))
{
$(this).find('.icon-chevron-double-down').attr('class', 'icon-chevron-double-up');
$(this).find('.kanban').show();
}
})
}
if(sortType == 'board')
{
+13 -1
View File
@@ -1,3 +1,15 @@
<?php
/**
* The view file of kanban module of ZenTaoPMS.
*
* @copyright Copyright 2009-2021 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Guangming Sun<sungangming@easycorp.ltd>
* @package kanban
* @version $Id: view.html.php 935 2021-12-09 10:49:24Z $
* @link https://www.zentao.net
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kanban.html.php';?>
@@ -33,7 +45,7 @@ $canCreateLane = commonModel::hasPriv('kanban', 'createLane');
<div class="region-header dropdown">
<span class="strong"><?php echo $region->name;?></span>
<label class="label label-region"><?php echo $this->lang->kanbanlane->common . ' ' . $region->laneCount;?></label>
<i class="icon icon-double-angle-up"></i>
<span><i class="icon icon-chevron-double-up" data-id="<?php echo $region->id;?>"></i></span>
<?php if($canEditRegion || $canCreateLane || $canDeleteRegion):?>
<button class="btn btn-link action" type="button" data-toggle="dropdown"><i class="icon icon-ellipsis-v"></i></button>
<ul class="dropdown-menu pull-right">