Browse Source

优化

master
陈裕财 4 years ago
parent
commit
132d5990c4
  1. 20
      src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue
  2. 6
      src/views/xm/core/xmProduct/XmProductForProjectComplex.vue
  3. 6
      src/views/xm/core/xmProject/XmProjectComplex.vue

20
src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue

@ -5,17 +5,16 @@
<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?20:24" v-show="xmIteration && xmIteration.id"> <el-col :span="iterationVisible==true?20:24" v-show="xmIteration && xmIteration.id">
<el-tabs type="border-card" :value="showPanel" @tab-click="tabClick">
<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>
<el-tabs type="border-card" :value="showPanel" @tab-click="tabClick">
<el-tab-pane lazy @click.stop="iterationVisible=!iterationVisible" name="iterations" disabled>
<el-button type="text" @click.stop="iterationVisible=false" v-show="iterationVisible==true" slot="label" ><i class="el-icon-d-arrow-left" ></i>隐藏</el-button>
<el-button type="text" @click.stop="iterationVisible=true" v-show="iterationVisible==false" slot="label" ><i class="el-icon-d-arrow-right"></i> 展开</el-button>
</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>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="产品、战略" name="products" v-if="!xmProduct"> <el-tab-pane label="产品、战略" name="products" v-if="!xmProduct">
<xm-product-mng v-if="xmIteration && showPanel=='products' && !xmProduct" :xm-iteration="xmIteration" :sel-project="selProject"></xm-product-mng>
<xm-product-mng v-if="xmIteration && showPanel=='products'" :xm-iteration="xmIteration" :sel-project="selProject"></xm-product-mng>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="项目" name="projects" v-if="!selProject"> <el-tab-pane label="项目" name="projects" v-if="!selProject">
<xm-project-for-link v-if="xmIteration && showPanel=='projects'" :xm-product="xmProduct" :xm-iteration="xmIteration" :sel-project="selProject"></xm-project-for-link> <xm-project-for-link v-if="xmIteration && showPanel=='projects'" :xm-product="xmProduct" :xm-iteration="xmIteration" :sel-project="selProject"></xm-project-for-link>
@ -144,9 +143,14 @@
if(this.xmIteration==null || !this.xmIteration.id){ if(this.xmIteration==null || !this.xmIteration.id){
this.iterationVisible=true; this.iterationVisible=true;
this.$notify({showClose: true, message:"请先选中左边迭代", type: 'warning' }); this.$notify({showClose: true, message:"请先选中左边迭代", type: 'warning' });
return;
}
if(tab.name=='iterations'){
this.iterationVisible=!this.iterationVisible;
return;
} }
return false;
this.showPanel=tab.name
this.showPanel=tab.name
}, },
doDelXmIterationProductLink(){ doDelXmIterationProductLink(){
this.$confirm('移出后,迭代试图将看不到该产品信息,确认将产品【'+this.xmProduct.productName+'】从迭代【'+this.xmIteration.iterationName+'】移出吗?', '提示', {}).then(() => { this.$confirm('移出后,迭代试图将看不到该产品信息,确认将产品【'+this.xmProduct.productName+'】从迭代【'+this.xmIteration.iterationName+'】移出吗?', '提示', {}).then(() => {

6
src/views/xm/core/xmProduct/XmProductForProjectComplex.vue

@ -6,9 +6,9 @@
</el-col> </el-col>
<el-col :span="productVisible==true?20:24" v-show="xmProduct && xmProduct.id"> <el-col :span="productVisible==true?20:24" v-show="xmProduct && xmProduct.id">
<el-tabs type="border-card" :value="showPanel" @tab-click="tabClick"> <el-tabs type="border-card" :value="showPanel" @tab-click="tabClick">
<el-tab-pane>
<span v-show="productVisible==true" slot="label" @click.stop="productVisible=false" ><i class="el-icon-d-arrow-left" ></i> 隐藏左边产品列表</span>
<span v-show="productVisible==false" slot="label" @click.stop="productVisible=true"><i class="el-icon-d-arrow-right" ></i> 展开左边产品列表</span>
<el-tab-pane disabled>
<el-button type="text" v-show="productVisible==true" slot="label" @click.stop="productVisible=false" ><i class="el-icon-d-arrow-left" ></i> 隐藏</el-button>
<el-button type="text" v-show="productVisible==false" slot="label" @click.stop="productVisible=true"><i class="el-icon-d-arrow-right" ></i> 展开</el-button>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="产品概览" name="productOverview"> <el-tab-pane label="产品概览" name="productOverview">
<xm-product-overview v-if="xmProduct && showPanel=='productOverview'" :xm-product="xmProduct" :sel-project="selProject"></xm-product-overview> <xm-product-overview v-if="xmProduct && showPanel=='productOverview'" :xm-product="xmProduct" :sel-project="selProject"></xm-product-overview>

6
src/views/xm/core/xmProject/XmProjectComplex.vue

@ -6,9 +6,9 @@
</el-col> </el-col>
<el-col :span="projectVisible==true?20:24" v-show="selProject && selProject.id"> <el-col :span="projectVisible==true?20:24" v-show="selProject && selProject.id">
<el-tabs type="border-card" :value="showPanel" @tab-click="tabClick"> <el-tabs type="border-card" :value="showPanel" @tab-click="tabClick">
<el-tab-pane>
<span v-show="projectVisible==true" slot="label" @click.stop="projectVisible=false"><i class="el-icon-d-arrow-left" ></i> 隐藏左边项目列表</span>
<span v-show="projectVisible==false" slot="label" @click.stop="projectVisible=true"><i class="el-icon-d-arrow-right" ></i> 展开左边项目列表</span>
<el-tab-pane disabled>
<el-button type="text" v-show="projectVisible==true" slot="label" @click.stop="projectVisible=false"><i class="el-icon-d-arrow-left" ></i> 隐藏</el-button>
<el-button type="text" v-show="projectVisible==false" slot="label" @click.stop="projectVisible=true"><i class="el-icon-d-arrow-right" ></i>展开</el-button>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="项目概览" name="projectOverview"> <el-tab-pane label="项目概览" name="projectOverview">
<xm-project-overview v-if="selProject && showPanel=='projectOverview'" :xm-product="xmProduct" :xm-iteration="xmIteration" :sel-project="selProject"></xm-project-overview> <xm-project-overview v-if="selProject && showPanel=='projectOverview'" :xm-product="xmProduct" :xm-iteration="xmIteration" :sel-project="selProject"></xm-project-overview>

Loading…
Cancel
Save