diff --git a/db/update17.1.sql b/db/update17.1.sql index d6d4ddd603..0345811791 100644 --- a/db/update17.1.sql +++ b/db/update17.1.sql @@ -5,4 +5,5 @@ CREATE TABLE `zt_riskissue` ( UNIQUE KEY `risk_issue` (`risk`,`issue`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; +ALTER TABLE `zt_kanban` ADD `showWIP` enum('0','1') NOT NULL DEFAULT '1' AFTER `displayCards`; ALTER TABLE `zt_kanban` ADD `alignment` varchar(10) NOT NULL DEFAULT 'center' AFTER `object`; \ No newline at end of file diff --git a/lib/feishuapi/feishuapi.class.php b/lib/feishuapi/feishuapi.class.php index 2cfb53db53..d98a80fd76 100644 --- a/lib/feishuapi/feishuapi.class.php +++ b/lib/feishuapi/feishuapi.class.php @@ -158,7 +158,7 @@ class feishuapi $index = 0; while(true) { - $response = $this->queryAPI($this->apiUrl . "contact/v3/departments?parent_department_id={$departmentID}" . ($pageToken ? "&page_token={$pageToken}" : '') . "&fetch_child=true&page_size=50", '', array(CURLOPT_CUSTOMREQUEST => "GET")); + $response = $this->queryAPI($this->apiUrl . "contact/v3/departments?parent_department_id={$departmentID}" . ($pageToken ? "&page_token={$pageToken}" : '') . "&fetch_child=false&page_size=50", '', array(CURLOPT_CUSTOMREQUEST => "GET")); if(isset($response->data->items)) { foreach($response->data->items as $key => $dept) diff --git a/module/block/view/welcome.html.php b/module/block/view/welcome.html.php index 10ba85b7d3..db16fab972 100644 --- a/module/block/view/welcome.html.php +++ b/module/block/view/welcome.html.php @@ -24,7 +24,7 @@ .block-welcome.block-sm .col-right .tiles {border-left: none; padding-left: 0} .block-welcome.block-sm .tile-title {font-size: 12px; margin: 0 -10px;} .block-welcome .progress-group{margin-top: 42px;} -.block-welcome .progress{margin-top: 10px; width: 85%} +.block-welcome .progress{margin-top: 10px; width: 85%;} .block-welcome .user-welcome{margin-top: 28px !important;} .block-welcome .col-right{border-left: 1px solid #e5e8ec;} .block-welcome.block-sm .col-right {border: none;} @@ -32,6 +32,7 @@ .block-welcome .done-progress{display: inline-block; color: #5B606E; font-weight: 500;} .block-welcome .welcome-label{background: #ffebee; border: none;} .block-welcome.block-sm .left-today {margin-left: 0px;} +.block-welcome .progress-num{display: flex; justify-content: space-between; width: 85%;}
@@ -41,10 +42,12 @@

block->welcomeList[$welcomeType], $app->user->realname)?>

- - block->assignToMe;?> +
+
+ block->assignToMe;?> +
block->done . " $progress" . '%';?>
- +
diff --git a/module/doc/model.php b/module/doc/model.php index 23a850d051..e9251f2343 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2792,7 +2792,7 @@ EOT; { $libs = $this->getLibsByObject('custom', 0, '', $appendLib); $this->app->rawMethod = 'custom'; - if($libID == 0) $libID = key($libs); + if($libID == 0 and !empty($libs)) $libID = reset($libs)->id; $this->lang->modulePageNav = $this->select($type, $objects, $objectID, $libs, $libID); $object = new stdclass(); @@ -2814,7 +2814,7 @@ EOT; $table = $this->config->objectTables[$type]; $libs = $this->getLibsByObject($type, $objectID, '', $appendLib); - if($libID == 0) $libID = reset($libs)->id; + if($libID == 0 and !empty($libs)) $libID = reset($libs)->id; $this->lang->modulePageNav = $this->select($type, $objects, $objectID, $libs, $libID); if($this->app->tab == 'doc') $this->app->rawMethod = $type; diff --git a/module/install/css/step5.css b/module/install/css/step5.css index 77c4b08ec7..3c386f8331 100644 --- a/module/install/css/step5.css +++ b/module/install/css/step5.css @@ -1,4 +1,4 @@ -.c-company {width: 80px !important;} +.c-company {width: 85px !important;} .c-company-value {width: 300px !important;} .mw-table {max-width: 650px !important;} diff --git a/module/install/view/step5.html.php b/module/install/view/step5.html.php index 3747b57c69..e482b9c959 100644 --- a/module/install/view/step5.html.php +++ b/module/install/view/step5.html.php @@ -61,7 +61,7 @@ install->password;?> - + install->placeholder->password;?> diff --git a/module/kanban/js/view.js b/module/kanban/js/view.js index fd1f9d5dd5..d9c5ea1b64 100644 --- a/module/kanban/js/view.js +++ b/module/kanban/js/view.js @@ -1356,6 +1356,7 @@ function initKanban($kanban) onRenderLaneName: renderLaneName, onRenderHeaderCol: renderHeaderCol, onRenderCount: renderCount, + showCount: kanban.showWIP == '1' ? true : false, sortable: handleSortCards, virtualize: true, virtualRenderOptions: {container: $(window).add($('#kanbanContainer'))}, diff --git a/module/kanban/lang/en.php b/module/kanban/lang/en.php index 405c712c01..eccd5dd51c 100644 --- a/module/kanban/lang/en.php +++ b/module/kanban/lang/en.php @@ -221,6 +221,9 @@ $lang->kanban->importObjectList['builds'] = 'Build'; $lang->kanban->importObjectList['executions'] = 'Execution'; $lang->kanban->importObjectList['cards'] = 'Other Kanban Cards'; +$lang->kanban->showWIPList[1] = 'Show'; +$lang->kanban->showWIPList[0] = 'Hide'; + $lang->kanban->defaultColumn = array(); $lang->kanban->defaultColumn['wait'] = 'wait'; $lang->kanban->defaultColumn['doing'] = 'doing'; diff --git a/module/kanban/lang/zh-cn.php b/module/kanban/lang/zh-cn.php index 8bfc5ece90..1b8dec9df7 100644 --- a/module/kanban/lang/zh-cn.php +++ b/module/kanban/lang/zh-cn.php @@ -202,6 +202,7 @@ $lang->kanban->fullScreen = '全屏'; $lang->kanban->setting = '设置'; $lang->kanban->my = '我的看板'; $lang->kanban->other = '其他'; +$lang->kanban->showWIP = '显示在制品限制'; $lang->kanban->error = new stdclass(); $lang->kanban->error->mustBeInt = '在制品数量必须是正整数。'; @@ -221,6 +222,9 @@ $lang->kanban->importObjectList['builds'] = '版本'; $lang->kanban->importObjectList['executions'] = $lang->execution->common; $lang->kanban->importObjectList['cards'] = '其他看板卡片'; +$lang->kanban->showWIPList[1] = '显示'; +$lang->kanban->showWIPList[0] = '不显示'; + $lang->kanban->defaultColumn = array(); $lang->kanban->defaultColumn['wait'] = '未开始'; $lang->kanban->defaultColumn['doing'] = '进行中'; diff --git a/module/kanban/view/create.html.php b/module/kanban/view/create.html.php index a64cc9f33e..39d945692c 100644 --- a/module/kanban/view/create.html.php +++ b/module/kanban/view/create.html.php @@ -26,6 +26,11 @@ + + kanban->WIPCount;?> + kanban->showWIPList, 1);?> + + kanban->space;?> diff --git a/module/kanban/view/edit.html.php b/module/kanban/view/edit.html.php index 42e08000eb..def34303d4 100644 --- a/module/kanban/view/edit.html.php +++ b/module/kanban/view/edit.html.php @@ -24,6 +24,11 @@ kanban->space;?> space, "class='form-control chosen'");?> + + kanban->WIPCount;?> + kanban->showWIPList, $kanban->showWIP);?> + + kanban->name;?> name, "class='form-control'");?>