diff --git a/src/views/xm/core/xmTestCase/XmTestCaseMng.vue b/src/views/xm/core/xmTestCase/XmTestCaseMng.vue index 6b89ac85..57c6f936 100644 --- a/src/views/xm/core/xmTestCase/XmTestCaseMng.vue +++ b/src/views/xm/core/xmTestCase/XmTestCaseMng.vue @@ -2,7 +2,7 @@
- + @@ -90,6 +90,17 @@ export default { props:['visible','xmTestCasedb','scene','xmMenu','xmProduct'], computed: { ...mapGetters(['userInfo']), + xmProductCpd(){ + if(this.xmProduct&& this.xmProduct.id){ + return this.xmProduct + } + if(this.xmTestCasedb && this.xmTestCasedb.id){ + return {id:this.xmTestCasedb.productId,productName:this.xmTestCasedb.productName} + } + if(this.xmMenu && this.xmMenu.id){ + return {id:this.xmMenu.productId,productName:this.xmMenu.productName} + } + } }, watch:{