diff --git a/src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue b/src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue index 3b6f8495..82439d13 100644 --- a/src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue +++ b/src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue @@ -8,7 +8,7 @@ + trigger="click"> {{xmIteration?xmIteration.iterationName:'选择迭代'}} diff --git a/src/views/xm/core/xmProduct/XmProductForProjectComplex.vue b/src/views/xm/core/xmProduct/XmProductForProjectComplex.vue index bd3588b5..348ec1f2 100644 --- a/src/views/xm/core/xmProduct/XmProductForProjectComplex.vue +++ b/src/views/xm/core/xmProduct/XmProductForProjectComplex.vue @@ -1,32 +1,36 @@ - - - - - + + - - 隐藏 - 展开 + + + + + {{xmProduct?xmProduct.productName:'选择产品'}} + + - + - + - + - + - + - + diff --git a/src/views/xm/core/xmProduct/XmProductSelect.vue b/src/views/xm/core/xmProduct/XmProductSelect.vue index f178761f..32bf7e63 100644 --- a/src/views/xm/core/xmProduct/XmProductSelect.vue +++ b/src/views/xm/core/xmProduct/XmProductSelect.vue @@ -99,7 +99,7 @@ export default { - props:['isSelectProduct','selProject','xmIteration'], + props:['isSelectProduct','selProject','xmIteration','autoSelect'], computed: { ...mapGetters([ 'userInfo','roles' @@ -244,6 +244,12 @@ this.pageInfo.total = res.data.total; this.pageInfo.count=false; this.xmProducts = res.data.data; + + if(this.autoSelect===true&&this.xmProducts.length>0){ + var row=this.xmProducts[0]; + this.$refs.table.setCurrentRow(row); + this.rowClick(row); + } }else{ this.$notify({showClose: true, message: tips.msg, type: 'error' }); } diff --git a/src/views/xm/core/xmProject/XmProjectComplex.vue b/src/views/xm/core/xmProject/XmProjectComplex.vue index c2689c17..3db5161e 100644 --- a/src/views/xm/core/xmProject/XmProjectComplex.vue +++ b/src/views/xm/core/xmProject/XmProjectComplex.vue @@ -8,7 +8,7 @@ + trigger="click"> {{selProject?selProject.name:'选择项目'}}