|
|
@ -4,12 +4,12 @@ |
|
|
<el-col :span="iterationVisible==true?3:0" > |
|
|
<el-col :span="iterationVisible==true?3:0" > |
|
|
<xm-iteration-select :sel-project="selProject" :product-id="xmProduct?xmProduct.id:null" @row-click="onIterationRowClick" @clear-select="onIterationClearSelect"></xm-iteration-select> |
|
|
<xm-iteration-select :sel-project="selProject" :product-id="xmProduct?xmProduct.id:null" @row-click="onIterationRowClick" @clear-select="onIterationClearSelect"></xm-iteration-select> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="iterationVisible==true?21:24" > |
|
|
|
|
|
|
|
|
<el-col :span="iterationVisible==true?21:24" v-show="xmIteration && xmIteration.id"> |
|
|
<el-tabs type="border-card" :value="showPanel" @tab-click="tabClick"> |
|
|
<el-tabs type="border-card" :value="showPanel" @tab-click="tabClick"> |
|
|
|
|
|
|
|
|
<el-tab-pane lazy @click.stop="iterationVisible=!iterationVisible"> |
|
|
<el-tab-pane lazy @click.stop="iterationVisible=!iterationVisible"> |
|
|
<span @click.stop="iterationVisible=false" v-show="iterationVisible==true" slot="label" ><i class="el-icon-d-arrow-left" ></i>隐藏左边</span> |
|
|
|
|
|
<span @click.stop="iterationVisible=true" v-show="iterationVisible==false" slot="label" ><i class="el-icon-d-arrow-right"></i> 展开左边</span> |
|
|
|
|
|
|
|
|
<span @click.stop="iterationVisible=false" v-show="iterationVisible==true" slot="label" ><i class="el-icon-d-arrow-left" ></i>隐藏左边迭代列表</span> |
|
|
|
|
|
<span @click.stop="iterationVisible=true" v-show="iterationVisible==false" slot="label" ><i class="el-icon-d-arrow-right"></i> 展开左边迭代列表</span> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="迭代概览" lazy name="iterationOverview"> |
|
|
<el-tab-pane label="迭代概览" lazy name="iterationOverview"> |
|
|
<xm-iteration-overview v-if="xmIteration && showPanel=='iterationOverview'" :xm-iteration="xmIteration" :sel-project="selProject"></xm-iteration-overview> |
|
|
<xm-iteration-overview v-if="xmIteration && showPanel=='iterationOverview'" :xm-iteration="xmIteration" :sel-project="selProject"></xm-iteration-overview> |
|
|
@ -138,9 +138,14 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onIterationClearSelect(){ |
|
|
onIterationClearSelect(){ |
|
|
this.iteration=null; |
|
|
|
|
|
|
|
|
this.xmIteration=null; |
|
|
}, |
|
|
}, |
|
|
tabClick(tab){ |
|
|
tabClick(tab){ |
|
|
|
|
|
if(this.xmIteration==null || !this.xmIteration.id){ |
|
|
|
|
|
this.iterationVisible=true; |
|
|
|
|
|
this.$notify({showClose: true, message:"请先选中左边迭代", type: 'warning', position: 'top-left' }); |
|
|
|
|
|
} |
|
|
|
|
|
return false; |
|
|
this.showPanel=tab.name |
|
|
this.showPanel=tab.name |
|
|
}, |
|
|
}, |
|
|
doDelXmIterationProductLink(){ |
|
|
doDelXmIterationProductLink(){ |
|
|
@ -167,6 +172,11 @@ |
|
|
XmProjectForLink, |
|
|
XmProjectForLink, |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
|
|
if(this.xmIteration==null || !this.xmIteration.id){ |
|
|
|
|
|
this.iterationVisible=true; |
|
|
|
|
|
this.$notify({showClose: true, message:"请先选中左边迭代", type: 'warning', position: 'top-left' }); |
|
|
|
|
|
} |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|