From 4886c1a2c10a2616f8c8a5dc3b4a3b0675571225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 26 Jan 2023 18:31:55 +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 --- .../xm/rpt/testPlan/testPlanCaseExecStatusDist.vue | 11 +++++++---- src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue | 12 +++++++++--- 2 files changed, 16 insertions(+), 7 deletions(-) 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