diff --git a/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue b/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue index bbecf13a..3613ba0a 100644 --- a/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue +++ b/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue @@ -191,10 +191,13 @@ if(this.filters.testCasedb && this.filters.testCasedb.id){ params.casedbId=this.filters.testCasedb.id } - getXmTestPlanCaseExecStatusDist(params).then(res=>{ - this.xmTestPlanCaseExecStatusDists=res.data.data - }) - + if(params.productId || params.projectId || params.planId || params.casedbId){ + getXmTestPlanCaseExecStatusDist(params).then(res=>{ + this.xmTestPlanCaseExecStatusDists=res.data.data + }) + }else{ + this.$message.error("请选择查询条件,产品、项目、测试计划最少选择一个") + } }, onProductSelected(product){ this.filters.product=product diff --git a/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue b/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue index 5d6d6f93..b042b455 100644 --- a/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue +++ b/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue @@ -201,10 +201,16 @@ if(this.filters.testCasedb && this.filters.testCasedb.id){ params.casedbId=this.filters.testCasedb.id } - getXmTestPlanCaseUserDist(params).then(res=>{ - this.xmTestPlanCaseUserDists=res.data.data - }) + + if(params.productId || params.projectId || params.planId || params.casedbId){ + getXmTestPlanCaseUserDist(params).then(res=>{ + this.xmTestPlanCaseUserDists=res.data.data + }) + }else{ + this.$message.error("请选择查询条件,产品、项目、测试计划最少选择一个") + } + }, onProductSelected(product){ this.filters.product=product