From e1d3920e54e52cedc9627f7c4295c701a00db690 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 5 Aug 2025 08:57:31 +0800 Subject: [PATCH] * [refac] adjust empty tip for report. --- module/doc/lang/de.php | 1 + module/doc/lang/en.php | 1 + module/doc/lang/fr.php | 1 + module/doc/lang/zh-cn.php | 1 + module/doc/ui/zentaolist.html.php | 3 ++- 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/module/doc/lang/de.php b/module/doc/lang/de.php index a49576740e..bbca0d10c7 100644 --- a/module/doc/lang/de.php +++ b/module/doc/lang/de.php @@ -109,6 +109,7 @@ $lang->docTemplate->content = 'Template Text'; $lang->docTemplate->templateDesc = 'Template Desc'; $lang->docTemplate->status = 'Template Status'; $lang->docTemplate->emptyTip = 'There is no system data that conform to this parameter and filtering conditions.'; +$lang->docTemplate->emptyDataTip = 'There is no system data that conform to this filtering conditions.'; $lang->docTemplate->previewTip = 'After configuring the parameters, this block will display the corresponding list data according to the filter configuration.'; $lang->docTemplate->confirmDeleteChapterWithSub = "After deleting a chapter, the lower level content of the chapter will be hidden. Are you sure you want to delete the chapter?"; $lang->docTemplate->confirmDeleteTemplateWithSub = "After deleting the template, the lower level content of the template will be hidden. Are you sure you want to delete this template?"; diff --git a/module/doc/lang/en.php b/module/doc/lang/en.php index 0c1e9c68ee..e34f7362a7 100644 --- a/module/doc/lang/en.php +++ b/module/doc/lang/en.php @@ -109,6 +109,7 @@ $lang->docTemplate->content = 'Template Text'; $lang->docTemplate->templateDesc = 'Template Desc'; $lang->docTemplate->status = 'Template Status'; $lang->docTemplate->emptyTip = 'There is no system data that conform to this parameter and filtering conditions.'; +$lang->docTemplate->emptyDataTip = 'There is no system data that conform to this filtering conditions.'; $lang->docTemplate->previewTip = 'After configuring the parameters, this block will display the corresponding list data according to the filter configuration.'; $lang->docTemplate->confirmDeleteChapterWithSub = "After deleting a chapter, the lower level content of the chapter will be hidden. Are you sure you want to delete the chapter?"; $lang->docTemplate->confirmDeleteTemplateWithSub = "After deleting the template, the lower level content of the template will be hidden. Are you sure you want to delete this template?"; diff --git a/module/doc/lang/fr.php b/module/doc/lang/fr.php index 6c41af605e..f58c40f056 100644 --- a/module/doc/lang/fr.php +++ b/module/doc/lang/fr.php @@ -109,6 +109,7 @@ $lang->docTemplate->content = 'Template Text'; $lang->docTemplate->templateDesc = 'Template Desc'; $lang->docTemplate->status = 'Template Status'; $lang->docTemplate->emptyTip = 'There is no system data that conform to this parameter and filtering conditions.'; +$lang->docTemplate->emptyDataTip = 'There is no system data that conform to this filtering conditions.'; $lang->docTemplate->previewTip = 'After configuring the parameters, this block will display the corresponding list data according to the filter configuration.'; $lang->docTemplate->confirmDeleteChapterWithSub = "After deleting a chapter, the lower level content of the chapter will be hidden. Are you sure you want to delete the chapter?"; $lang->docTemplate->confirmDeleteTemplateWithSub = "After deleting the template, the lower level content of the template will be hidden. Are you sure you want to delete this template?"; diff --git a/module/doc/lang/zh-cn.php b/module/doc/lang/zh-cn.php index 9ad5f35b40..5b62f125d0 100644 --- a/module/doc/lang/zh-cn.php +++ b/module/doc/lang/zh-cn.php @@ -109,6 +109,7 @@ $lang->docTemplate->content = '模板内容'; $lang->docTemplate->templateDesc = '模板描述'; $lang->docTemplate->status = '模板状态'; $lang->docTemplate->emptyTip = '此参数与筛选条件下,暂无符合条件系统数据。'; +$lang->docTemplate->emptyDataTip = '此筛选条件下,暂无符合条件系统数据。'; $lang->docTemplate->previewTip = '配置参数后,此区块会根据筛选器的配置展示相应的列表数据。'; $lang->docTemplate->confirmDeleteChapterWithSub = "删除章节后,章节下层级内容将一并隐藏,确定要删除该章节吗?"; $lang->docTemplate->confirmDeleteTemplateWithSub = "删除文档模板后,文档模板下层级内容将一并隐藏,确定要删除该文档模板吗?"; diff --git a/module/doc/ui/zentaolist.html.php b/module/doc/ui/zentaolist.html.php index a440f6da6d..0b3648b145 100644 --- a/module/doc/ui/zentaolist.html.php +++ b/module/doc/ui/zentaolist.html.php @@ -50,8 +50,9 @@ if($isTemplate || $fromTemplate) if(($type == 'productCase' || $type == 'projectCase') && !empty($caseStage)) $blockTitle = $blockTitle . $lang->testcase->stageList[$caseStage]; } -$emptyTip = $fromReport ? $lang->docTemplate->emptyTip : $lang->doc->previewTip; +$emptyTip = $lang->doc->previewTip; if(!$isTemplate && $fromTemplate) $emptyTip = $isSetted ? $lang->docTemplate->emptyTip : $lang->docTemplate->previewTip; +if($fromReport) $emptyTip = $lang->docTemplate->emptyDataTip; $pagerSetting = usePager(); unset($pagerSetting['linkCreator']);