From 72496b30e52dc942a8ca5cffbf3270a4c89b777b 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:41:45 +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 --- .../testPlan/testPlanCaseExecStatusDist.vue | 18 ++++++++++++++++-- .../xm/rpt/testPlan/testPlanCaseUserDist.vue | 17 +++++++++++++++-- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue b/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue index 3613ba0a..04e5d7dd 100644 --- a/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue +++ b/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue @@ -13,6 +13,7 @@ + {{xmProductCpd.id}}
{{ xmProductCpd.productName }}
@@ -26,6 +27,10 @@ {{ filters.testPlan.name }}选择计划
+ + + {{xmProject.id}}
{{ xmProject.name }}
+
查询 @@ -46,13 +51,14 @@ import { getXmTestPlanCaseExecStatusDist } from '@/api/xm/core/xmTestPlanCase'; - import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//新增界面 + import XmProjectSelect from '@/views/xm/core/components/XmProjectSelect';//项目 + import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//产品 import xmTestPlanSelect from '@/views/xm/core/xmTestPlan/XmTestPlanSelect';//计划选择器 export default { components: { - XmProductSelect,xmTestPlanSelect, + XmProjectSelect,XmProductSelect,xmTestPlanSelect, }, props:['xmProject','xmProduct','xmTestCasedb','xmTestPlan'], computed: { @@ -208,6 +214,14 @@ }, + onProjectSelected(project){ + this.filters.project=project + }, + + onProjectClear(){ + this.filters.project=null + + }, onXmTestPlanSelected(xmTestPlan){ this.filters.testPlan=xmTestPlan }, diff --git a/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue b/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue index b042b455..7dd7df2e 100644 --- a/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue +++ b/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue @@ -26,6 +26,11 @@ {{ filters.testPlan.name }}选择计划 + + + + {{xmProject.id}}
{{ xmProject.name }}
+
查询 @@ -45,14 +50,15 @@ import { mapGetters } from 'vuex' import { getXmTestPlanCaseUserDist } from '@/api/xm/core/xmTestPlanCase'; - + + import XmProjectSelect from '@/views/xm/core/components/XmProjectSelect';//项目 import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//新增界面 import xmTestPlanSelect from '@/views/xm/core/xmTestPlan/XmTestPlanSelect';//计划选择器 export default { components: { - XmProductSelect,xmTestPlanSelect, + XmProjectSelect,XmProductSelect,xmTestPlanSelect, }, props:['xmProject','xmProduct','xmTestCasedb','xmTestPlan'], computed: { @@ -219,8 +225,15 @@ onProductClear(){ this.filters.product=null + }, + onProjectSelected(project){ + this.filters.project=project }, + onProjectClear(){ + this.filters.project=null + + }, onXmTestPlanSelected(xmTestPlan){ this.filters.testPlan=xmTestPlan },