Merge branch 'sprint/170_mayue_43892' into 'sprint/170'

* Finish task #43892.

See merge request easycorp/zentaopms!410
This commit is contained in:
李玉春
2021-11-11 06:49:40 +00:00
4 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ $lang->datatable->platform = '平台';
$lang->datatable->moduleSetting = '模块设置';
$lang->datatable->listSetting = '列表设置';
$lang->datatable->showModule = '列表页是否显示模块名';
$lang->datatable->showBranch = '列表页是否显示分支名';
$lang->datatable->showBranch = '列表页是否显示%s名';
$lang->datatable->showAllModule = '是否显示完整产品模块';
$lang->datatable->showModuleList[] = '不显示';
$lang->datatable->showModuleList['base'] = '只显示一级模块';
+6
View File
@@ -211,6 +211,12 @@ class product extends control
$product = $this->product->getById($productID);
if($product->type != 'normal')
{
$this->app->loadLang('datatable');
$this->lang->datatable->showBranch = sprintf($this->lang->datatable->showBranch, $this->lang->product->branchName[$product->type]);
}
/* Get stories. */
if($this->app->rawModule == 'projectstory')
{
+2
View File
@@ -1,5 +1,7 @@
$(function()
{
if(productType == 'normal') $('.table-form>tbody>tr').next().addClass('hidden');
if(typeof(rawModule) == 'undefined') rawModule = 'product';
if(rawModule != 'projectstory')
{
+1
View File
@@ -23,6 +23,7 @@ body {margin-bottom: 25px;}
<?php js::set('projectID', $projectID);?>
<?php js::set('branch', $branch);?>
<?php js::set('rawModule', $this->app->rawModule);?>
<?php js::set('productType', $product->type);?>
<?php
$unfoldStories = isset($config->product->browse->unfoldStories) ? json_decode($config->product->browse->unfoldStories, true) : array();
$unfoldStories = zget($unfoldStories, $productID, array());