From f44838565c747304d2dbca054f876ed2bed223f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sun, 29 Jan 2023 17:55:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iteration/IterationWorkItemDayList.vue | 26 ++++++++++++--- src/views/xm/rpt/iteration/burnout.vue | 26 ++++++++++++--- .../xm/rpt/iteration/menuDayAccumulate.vue | 26 ++++++++++++--- src/views/xm/rpt/iteration/menuDayTrend.vue | 26 ++++++++++++--- .../rpt/iteration/questionDayAccumulate.vue | 26 ++++++++++++--- .../xm/rpt/iteration/questionDayTrend.vue | 26 ++++++++++++--- src/views/xm/rpt/product/menuAgeDist.vue | 27 ++++++++++++--- src/views/xm/rpt/product/menuAttDist.vue | 26 ++++++++++++--- .../xm/rpt/product/menuDayAccumulate.vue | 33 ++++++++++++------- src/views/xm/rpt/product/menuDayTrend.vue | 30 +++++++++++------ src/views/xm/rpt/product/menuSort.vue | 24 +++++++++++++- .../xm/rpt/product/productWorkItemDayList.vue | 30 +++++++++++------ src/views/xm/rpt/product/questionAgeDist.vue | 24 +++++++++++++- src/views/xm/rpt/product/questionAttDist.vue | 26 ++++++++++++--- .../xm/rpt/product/questionDayAccumulate.vue | 30 +++++++++++------ src/views/xm/rpt/product/questionDayTrend.vue | 30 +++++++++++------ .../xm/rpt/product/questionRetestDist.vue | 26 ++++++++++++--- src/views/xm/rpt/product/questionSort.vue | 26 ++++++++++++--- .../xm/rpt/project/projectWorkItemDayList.vue | 24 +++++++++++++- .../rpt/project/projectWorkloadSetDayList.vue | 24 +++++++++++++- .../project/projectWorkloadSetMonthList.vue | 24 +++++++++++++- src/views/xm/rpt/project/taskAgeDist.vue | 24 +++++++++++++- src/views/xm/rpt/project/taskAttDist.vue | 24 +++++++++++++- .../xm/rpt/project/taskDayAccumulate.vue | 24 +++++++++++++- src/views/xm/rpt/project/taskDayTrend.vue | 24 +++++++++++++- src/views/xm/rpt/project/taskSort.vue | 24 +++++++++++++- .../xm/rpt/testPlan/testCaseToPlanCalc.vue | 23 ++++++++++++- .../xm/rpt/testPlan/testDayTimesCalc.vue | 31 ++++++++++------- .../testPlan/testPlanCaseExecStatusDist.vue | 23 ++++++++++++- .../xm/rpt/testPlan/testPlanCaseUserDist.vue | 23 ++++++++++++- 30 files changed, 661 insertions(+), 119 deletions(-) diff --git a/src/views/xm/rpt/iteration/IterationWorkItemDayList.vue b/src/views/xm/rpt/iteration/IterationWorkItemDayList.vue index bc287601..ac130cbd 100644 --- a/src/views/xm/rpt/iteration/IterationWorkItemDayList.vue +++ b/src/views/xm/rpt/iteration/IterationWorkItemDayList.vue @@ -63,11 +63,29 @@ ] }, title(){ - if(this.xmIteration && this.xmIteration.id){ - return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'工作项每日趋势图' - }else{ - return "迭代工作项每日趋势图" + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+"迭代工作项每日趋势图" }, xmProductCpd(){ diff --git a/src/views/xm/rpt/iteration/burnout.vue b/src/views/xm/rpt/iteration/burnout.vue index 30be66ac..d95ce5e7 100644 --- a/src/views/xm/rpt/iteration/burnout.vue +++ b/src/views/xm/rpt/iteration/burnout.vue @@ -97,11 +97,29 @@ } }, title(){ - if(this.filters.iteration && this.filters.iteration.id){ - return (this.filters.iteration?'迭代【'+this.filters.iteration.iterationName+'】':'')+'燃尽图' - }else{ - return "迭代燃尽图" + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+"迭代燃尽图" }, xmProductCpd(){ diff --git a/src/views/xm/rpt/iteration/menuDayAccumulate.vue b/src/views/xm/rpt/iteration/menuDayAccumulate.vue index 783b3245..9d998878 100644 --- a/src/views/xm/rpt/iteration/menuDayAccumulate.vue +++ b/src/views/xm/rpt/iteration/menuDayAccumulate.vue @@ -90,11 +90,29 @@ } }, title(){ - if(this.xmIteration && this.xmIteration.id){ - return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'需求每日累积图' - }else { - return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'需求每日累积图' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+'需求每日累积图' }, xmProductCpd(){ diff --git a/src/views/xm/rpt/iteration/menuDayTrend.vue b/src/views/xm/rpt/iteration/menuDayTrend.vue index 7eb72e74..ba0d759c 100644 --- a/src/views/xm/rpt/iteration/menuDayTrend.vue +++ b/src/views/xm/rpt/iteration/menuDayTrend.vue @@ -92,11 +92,29 @@ } }, title(){ - if(this.xmIteration && this.xmIteration.id){ - return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'需求每日趋势图' - }else { - return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'需求每日趋势图' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+'需求每日趋势图' }, xmProductCpd(){ diff --git a/src/views/xm/rpt/iteration/questionDayAccumulate.vue b/src/views/xm/rpt/iteration/questionDayAccumulate.vue index 2bbabc4d..86d0cfd9 100644 --- a/src/views/xm/rpt/iteration/questionDayAccumulate.vue +++ b/src/views/xm/rpt/iteration/questionDayAccumulate.vue @@ -87,11 +87,29 @@ } }, title(){ - if(this.xmIteration && this.xmIteration.id){ - return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'缺陷每日累积图' - }else { - return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷每日累积图' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+'缺陷每日累积图' }, xmProductCpd(){ diff --git a/src/views/xm/rpt/iteration/questionDayTrend.vue b/src/views/xm/rpt/iteration/questionDayTrend.vue index 5bf0f978..7de82ac1 100644 --- a/src/views/xm/rpt/iteration/questionDayTrend.vue +++ b/src/views/xm/rpt/iteration/questionDayTrend.vue @@ -91,11 +91,29 @@ } }, title(){ - if(this.xmIteration && this.xmIteration.id){ - return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'缺陷每日趋势图' - }else { - return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷每日趋势图' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+'缺陷每日趋势图' }, xmProductCpd(){ diff --git a/src/views/xm/rpt/product/menuAgeDist.vue b/src/views/xm/rpt/product/menuAgeDist.vue index ec5c618f..5b660223 100644 --- a/src/views/xm/rpt/product/menuAgeDist.vue +++ b/src/views/xm/rpt/product/menuAgeDist.vue @@ -98,11 +98,30 @@ return '需求年龄数量分布' }, title(){ - if(this.xmIteration && this.xmIteration.id){ - return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'需求年龄数量分布' - }else { - return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'需求年龄数量分布' + + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+'需求年龄数量分布' }, xmProductCpd(){ diff --git a/src/views/xm/rpt/product/menuAttDist.vue b/src/views/xm/rpt/product/menuAttDist.vue index 8aaa9b59..866a0705 100644 --- a/src/views/xm/rpt/product/menuAttDist.vue +++ b/src/views/xm/rpt/product/menuAttDist.vue @@ -124,11 +124,29 @@ return this.dicts[itemId].map(i=>i.name) }, title(){ - if(this.xmIteration && this.xmIteration.id){ - return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'需求属性数量分布' - }else { - return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'需求属性数量分布' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+'需求属性数量分布' }, xmProductCpd(){ diff --git a/src/views/xm/rpt/product/menuDayAccumulate.vue b/src/views/xm/rpt/product/menuDayAccumulate.vue index 2ffbd763..a37e19b9 100644 --- a/src/views/xm/rpt/product/menuDayAccumulate.vue +++ b/src/views/xm/rpt/product/menuDayAccumulate.vue @@ -81,19 +81,29 @@ } }, title(){ - var productName=""; - if(this.filters.product && this.filters.product.id){ + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ if(this.filters.product.productName){ - productName=this.filters.product.productName - }else{ - productName=this.filters.product.id + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` } - } - if(productName){ - return `产品【${productName}】需求每日累积图` - }else{ - return "产品需求每日累积图" + } + return preName+"产品需求每日累积图" }, xmProductCpd(){ if(this.xmProduct && this.xmProduct.id){ @@ -162,7 +172,8 @@ this.myChart.setOption( { title: { - text: '需求累积图' + text: this.title, + left:"center" }, tooltip: { diff --git a/src/views/xm/rpt/product/menuDayTrend.vue b/src/views/xm/rpt/product/menuDayTrend.vue index b38a09bb..3e60f4f3 100644 --- a/src/views/xm/rpt/product/menuDayTrend.vue +++ b/src/views/xm/rpt/product/menuDayTrend.vue @@ -84,19 +84,29 @@ }, title(){ - var productName=""; - if(this.filters.product && this.filters.product.id){ + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ if(this.filters.product.productName){ - productName=this.filters.product.productName - }else{ - productName=this.filters.product.id + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` } - } - if(productName){ - return `产品【${productName}】需求每日趋势图` - }else{ - return "产品需求每日趋势图" + } + return preName+"产品需求每日趋势图" }, xmProductCpd(){ if(this.xmProduct && this.xmProduct.id){ diff --git a/src/views/xm/rpt/product/menuSort.vue b/src/views/xm/rpt/product/menuSort.vue index d622fdc3..33c64a84 100644 --- a/src/views/xm/rpt/product/menuSort.vue +++ b/src/views/xm/rpt/product/menuSort.vue @@ -89,7 +89,29 @@ } }, title(){ - return this.groupBys.find(i=>i.id==this.groupBy).name+'用户故事数量排行榜' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+this.groupBys.find(i=>i.id==this.groupBy).name+'用户故事数量排行榜' }, legendCpd(){ if(this.xmMenuSorts.length==0){ diff --git a/src/views/xm/rpt/product/productWorkItemDayList.vue b/src/views/xm/rpt/product/productWorkItemDayList.vue index dd1eb510..bb80cefe 100644 --- a/src/views/xm/rpt/product/productWorkItemDayList.vue +++ b/src/views/xm/rpt/product/productWorkItemDayList.vue @@ -56,19 +56,29 @@ ] }, title(){ - var productName=""; - if(this.filters.product && this.filters.product.id){ + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ if(this.filters.product.productName){ - productName=this.filters.product.productName - }else{ - productName=this.filters.product.id + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` } - } - if(productName){ - return `产品【${productName}】工作项每日分布图` - }else{ - return "产品工作项每日分布图" + } + return preName+"产品工作项每日分布图" }, xmProductCpd(){ if(this.xmProduct && this.xmProduct.id){ diff --git a/src/views/xm/rpt/product/questionAgeDist.vue b/src/views/xm/rpt/product/questionAgeDist.vue index f78f92d5..19ffa9ce 100644 --- a/src/views/xm/rpt/product/questionAgeDist.vue +++ b/src/views/xm/rpt/product/questionAgeDist.vue @@ -124,7 +124,29 @@ } }, title(){ - return '缺陷年龄数量分布' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+'缺陷年龄数量分布' }, legendCpd(){ return ['0-2天','3-5天','6-7天','8-15天','16-30天','30天以上'] diff --git a/src/views/xm/rpt/product/questionAttDist.vue b/src/views/xm/rpt/product/questionAttDist.vue index 75a761cd..dccebc41 100644 --- a/src/views/xm/rpt/product/questionAttDist.vue +++ b/src/views/xm/rpt/product/questionAttDist.vue @@ -165,11 +165,29 @@ return this.dicts[itemId].map(i=>i.name) }, title(){ - if(this.xmIteration && this.xmIteration.id){ - return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'缺陷属性数量分布' - }else { - return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷属性数量分布' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+'缺陷属性数量分布' }, xmProductCpd(){ diff --git a/src/views/xm/rpt/product/questionDayAccumulate.vue b/src/views/xm/rpt/product/questionDayAccumulate.vue index 3dcba3db..df425cda 100644 --- a/src/views/xm/rpt/product/questionDayAccumulate.vue +++ b/src/views/xm/rpt/product/questionDayAccumulate.vue @@ -82,19 +82,29 @@ }, title(){ - var productName=""; - if(this.filters.product && this.filters.product.id){ + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ if(this.filters.product.productName){ - productName=this.filters.product.productName - }else{ - productName=this.filters.product.id + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` } - } - if(productName){ - return `产品【${productName}】需求每日累积图` - }else{ - return "产品缺陷每日累积图" + } + return preName+"产品缺陷每日累积图" }, xmProductCpd(){ if(this.xmProduct && this.xmProduct.id){ diff --git a/src/views/xm/rpt/product/questionDayTrend.vue b/src/views/xm/rpt/product/questionDayTrend.vue index fb137776..75082092 100644 --- a/src/views/xm/rpt/product/questionDayTrend.vue +++ b/src/views/xm/rpt/product/questionDayTrend.vue @@ -85,19 +85,29 @@ title(){ - var productName=""; - if(this.filters.product && this.filters.product.id){ + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ if(this.filters.product.productName){ - productName=this.filters.product.productName - }else{ - productName=this.filters.product.id + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` } - } - if(productName){ - return `产品【${productName}】缺陷每日趋势图` - }else{ - return "产品缺陷每日趋势图" + } + return preName+"产品缺陷每日趋势图" }, xmProductCpd(){ if(this.xmProduct && this.xmProduct.id){ diff --git a/src/views/xm/rpt/product/questionRetestDist.vue b/src/views/xm/rpt/product/questionRetestDist.vue index cb4a5c08..c1805f12 100644 --- a/src/views/xm/rpt/product/questionRetestDist.vue +++ b/src/views/xm/rpt/product/questionRetestDist.vue @@ -147,11 +147,29 @@ return ["1次","2次","3次","4次","5次","5次以上"] }, title(){ - if(this.xmIteration && this.xmIteration.id){ - return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'缺陷回归分布' - }else { - return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷回归分布' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+'缺陷回归分布' }, xmProductCpd(){ diff --git a/src/views/xm/rpt/product/questionSort.vue b/src/views/xm/rpt/product/questionSort.vue index ebb31f7a..6dee4476 100644 --- a/src/views/xm/rpt/product/questionSort.vue +++ b/src/views/xm/rpt/product/questionSort.vue @@ -133,11 +133,29 @@ } }, title(){ - if(this.xmIteration && this.xmIteration.id){ - return (this.xmIteration?'迭代【'+this.xmIteration.iterationName+'】':'')+'缺陷数量排行榜' - }else { - return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷数量排行榜' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + } + return preName+'缺陷数量排行榜' }, xmProductCpd(){ diff --git a/src/views/xm/rpt/project/projectWorkItemDayList.vue b/src/views/xm/rpt/project/projectWorkItemDayList.vue index 2f4f679f..c84b8efe 100644 --- a/src/views/xm/rpt/project/projectWorkItemDayList.vue +++ b/src/views/xm/rpt/project/projectWorkItemDayList.vue @@ -56,7 +56,29 @@ ] }, title(){ - return "项目工作项每日分布" + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+"项目工作项每日分布" } }, diff --git a/src/views/xm/rpt/project/projectWorkloadSetDayList.vue b/src/views/xm/rpt/project/projectWorkloadSetDayList.vue index b006d3f1..c645ff7e 100644 --- a/src/views/xm/rpt/project/projectWorkloadSetDayList.vue +++ b/src/views/xm/rpt/project/projectWorkloadSetDayList.vue @@ -68,7 +68,29 @@ }, title(){ - return "项目工时每日分布" + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+"项目工时每日分布" } }, watch: { diff --git a/src/views/xm/rpt/project/projectWorkloadSetMonthList.vue b/src/views/xm/rpt/project/projectWorkloadSetMonthList.vue index 9c807880..23b9971e 100644 --- a/src/views/xm/rpt/project/projectWorkloadSetMonthList.vue +++ b/src/views/xm/rpt/project/projectWorkloadSetMonthList.vue @@ -67,7 +67,29 @@ }, title(){ - return "项目工时每月分布" + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+"项目工时每月分布" } }, diff --git a/src/views/xm/rpt/project/taskAgeDist.vue b/src/views/xm/rpt/project/taskAgeDist.vue index 4142ac35..8887b722 100644 --- a/src/views/xm/rpt/project/taskAgeDist.vue +++ b/src/views/xm/rpt/project/taskAgeDist.vue @@ -81,7 +81,29 @@ } }, title(){ - return '任务年龄数量分布' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+'任务年龄数量分布' }, legendCpd(){ return ['0-2天','3-5天','6-7天','8-15天','16-30天','30天以上'] diff --git a/src/views/xm/rpt/project/taskAttDist.vue b/src/views/xm/rpt/project/taskAttDist.vue index 5e74ac68..6d714584 100644 --- a/src/views/xm/rpt/project/taskAttDist.vue +++ b/src/views/xm/rpt/project/taskAttDist.vue @@ -98,7 +98,29 @@ } }, title(){ - return this.groupBys.find(i=>i.id==this.groupBy).name+'数量分布' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+this.groupBys.find(i=>i.id==this.groupBy).name+'数量分布' }, legendCpd(){ var itemId=""; diff --git a/src/views/xm/rpt/project/taskDayAccumulate.vue b/src/views/xm/rpt/project/taskDayAccumulate.vue index 230a2c54..021740c1 100644 --- a/src/views/xm/rpt/project/taskDayAccumulate.vue +++ b/src/views/xm/rpt/project/taskDayAccumulate.vue @@ -81,7 +81,29 @@ } }, title(){ - return "任务每日累积图" + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+"任务每日累积图" } }, watch: { diff --git a/src/views/xm/rpt/project/taskDayTrend.vue b/src/views/xm/rpt/project/taskDayTrend.vue index 351a148e..5c53a2f3 100644 --- a/src/views/xm/rpt/project/taskDayTrend.vue +++ b/src/views/xm/rpt/project/taskDayTrend.vue @@ -83,7 +83,29 @@ } }, title(){ - return "任务每日分布" + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+"任务每日分布" } }, watch: { diff --git a/src/views/xm/rpt/project/taskSort.vue b/src/views/xm/rpt/project/taskSort.vue index 28cea968..013f3279 100644 --- a/src/views/xm/rpt/project/taskSort.vue +++ b/src/views/xm/rpt/project/taskSort.vue @@ -81,7 +81,29 @@ } }, title(){ - return this.groupBys.find(i=>i.id==this.groupBy).name+'任务数量排行榜' + + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+this.groupBys.find(i=>i.id==this.groupBy).name+'任务数量排行榜' }, legendCpd(){ if(this.xmTaskSorts.length==0){ diff --git a/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue b/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue index 203a132e..7ad651c3 100644 --- a/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue +++ b/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue @@ -100,7 +100,28 @@ } }, title(){ - return '测试用例规划分析' + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+'测试用例规划分析' }, /**0-未测,1-通过,2-受阻,3-忽略,4-失败 */ legendCpd(){ diff --git a/src/views/xm/rpt/testPlan/testDayTimesCalc.vue b/src/views/xm/rpt/testPlan/testDayTimesCalc.vue index bad731c0..37508862 100644 --- a/src/views/xm/rpt/testPlan/testDayTimesCalc.vue +++ b/src/views/xm/rpt/testPlan/testDayTimesCalc.vue @@ -94,20 +94,29 @@ }, - title(){ - var productName=""; - if(this.filters.product && this.filters.product.id){ + title(){ + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ if(this.filters.product.productName){ - productName=this.filters.product.productName - }else{ - productName=this.filters.product.id + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` } - } - if(productName){ - return `产品【${productName}】测试用例每日执行次数统计` - }else{ - return "测试用例每日执行次数统计" + } + return preName+ "测试用例每日执行次数统计" }, xmProductCpd(){ if(this.xmProduct && this.xmProduct.id){ diff --git a/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue b/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue index a1c89499..f7f5e783 100644 --- a/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue +++ b/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue @@ -92,7 +92,28 @@ } }, title(){ - return '测试用例执行结果数量分布' + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+ '测试用例执行结果数量分布' }, /**0-未测,1-通过,2-受阻,3-忽略,4-失败 */ legendCpd(){ diff --git a/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue b/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue index e765f348..d77442ef 100644 --- a/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue +++ b/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue @@ -116,7 +116,28 @@ } }, title(){ - return '测试用例执行结果数量分布' + var preName="" + if(this.filters.testPlan && this.filters.testPlan.id){ + preName=`测试计划【${this.filters.testPlan.name}】` + }else if(this.filters.testCasedb && this.filters.testCasedb.id){ + preName=`测试库【${this.filters.testCasedb.name}】` + }else if(this.filters.iteration && this.filters.iteration.id){ + preName=`迭代【${this.filters.iteration.iterationName}】` + }else if(this.filters.project && this.filters.project.id){ + if(this.filters.project.name){ + preName=`项目【${this.filters.project.name}】` + }else{ + preName=`项目【${this.filters.project.id}】` + } + }else if(this.filters.product && this.filters.product.id){ + if(this.filters.product.productName){ + preName=`产品【${this.filters.product.productName}】` + }else{ + preName=`产品【${this.filters.product.id}】` + } + + } + return preName+ '测试用例执行结果数量分布' }, xmProductCpd(){ if(this.xmTestPlan && this.xmTestPlan.id){