Browse Source

优化

master
陈裕财 4 years ago
parent
commit
0c48999292
  1. 4
      src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue
  2. 11
      src/views/xm/core/xmMenu/XmEpicFeaturesSelect.vue
  3. 2
      src/views/xm/core/xmMenu/XmMenuMng.vue
  4. 14
      src/views/xm/core/xmMenu/XmMenuSelect.vue
  5. 1
      src/views/xm/core/xmProject/XmProjectInfo.vue
  6. 20
      src/views/xm/core/xmTask/XmPhase.vue

4
src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue

@ -219,8 +219,6 @@
var tips=res.data.tips;
if(tips.isOk){
this.pageInfo.count=true;
this.$refs.menusSelect.reloadChildren([row]);
this.getXmIterationMenus();
}
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error' });
@ -244,7 +242,6 @@
this.load.del=false;
var tips=res.data.tips;
if( tips.isOk ){
this.$refs.menusSelect.reloadChildren(this.sels);
this.pageInfo.count=true;
this.getXmIterationMenus();
}
@ -270,7 +267,6 @@
var tips = res.data.tips
if(tips.isOk){
this.getXmIterationMenus()
this.$refs.menusSelect.reloadChildren(menus);
}
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error'});
})

11
src/views/xm/core/xmMenu/XmEpicFeaturesSelect.vue

@ -276,6 +276,9 @@
params.productId=this.filters.product.id
}
params=this.getParams(params);
if(!params.productId){
return;
}
let callback= (res)=>{
var tips=res.data.tips;
if(tips.isOk){
@ -302,13 +305,13 @@
this.filters.product=product
this.xmMenus=[]
this.getXmMenus()
this.$emit("prodcut-select",product)
this.$emit("product-select",product)
},
onProductClearSelect:function(){
this.filters.product=null
this.xmMenus=[]
this.getXmMenus()
this.$emit("prodcut-select",null)
this.$emit("product-select",null)
},
select(row){
this.$emit("select",row)
@ -325,6 +328,10 @@
return params;
},
rowClick: function(row, event, column){
this.editForm=row
this.$emit('row-click',row, event, column);// @row-click="rowClick"
},
},//end methods
components: {
XmProductSelect,

2
src/views/xm/core/xmMenu/XmMenuMng.vue

@ -854,7 +854,7 @@
this.editForm=row
this.editFormBak=Object.assign({},row)
this.$emit('row-click',row, event, column);// @row-click="rowClick"
},
},
handleExport() {
this.downloadLoading = true
const pageNum = this.pageInfo.pageNum;

14
src/views/xm/core/xmMenu/XmMenuSelect.vue

@ -2,11 +2,11 @@
<section>
<el-row>
<el-col :span="7">
<xm-epic-features class="padding-right" :xm-product="xmProduct" @row-click="onEpicFeaturesRowClick" :show-select="false"></xm-epic-features>
<xm-epic-features class="padding-right" :xm-product="xmProduct" @row-click="onEpicFeaturesRowClick" :show-select="false" @product-select="onProductSelected"></xm-epic-features>
</el-col>
<el-col :span="17" >
<el-row>
<xm-iteration-select style="display:inline;" v-if="!xmIteration" :auto-select="false" :link-project-id="selProject?selProject.id:null" @row-click="onIterationSelected" ref="xmIterationMng" :product-id="xmProduct?xmProduct.id:null" @clear="onIterationClearSelect"></xm-iteration-select>
<el-col :span="17" ref="table">
<el-row v-if="filters.product && filters.product.id">
<xm-iteration-select style="display:inline;" v-if="!xmIteration" :auto-select="false" :link-project-id="selProject?selProject.id:null" @row-click="onIterationSelected" ref="xmIterationMng" :product-id="filters.product?filters.product.id:null" @clear="onIterationClearSelect"></xm-iteration-select>
<el-select v-model="filters.taskFilterType" placeholder="已分配任务的需求?" clearable v-if="taskFilterType">
<el-option value="not-join-any-project" label="未分配过任务的需求"></el-option>
@ -138,8 +138,8 @@
<el-button style="float:right;" type="primary" v-if="multi" v-on:click="multiSelectedConfirm">确认</el-button>
</el-row>
<el-row>
<el-table ref="table" class="menu-table" :height="maxTableHeight" :data="xmMenusTreeData" row-key="menuId" :tree-props="{children: 'children'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-row v-if="filters.product && filters.product.id">
<el-table class="menu-table" :height="maxTableHeight" :data="xmMenusTreeData" row-key="menuId" :tree-props="{children: 'children'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column v-if="multi" type="selection" width="50"></el-table-column>
<el-table-column prop="menuName" label="需求名称" min-width="140" >
@ -162,7 +162,7 @@
<template v-if="!multi">
<el-table-column label="操作" width="100" fixed="right" >
<template slot-scope="scope">
<el-button :disabled=" checkScope!==scope.row.dclass" type="primary" @click="selectedMenu( scope.row,scope.$index)">选择</el-button>
<el-button type="primary" @click="selectedMenu( scope.row,scope.$index)">选择</el-button>
</template>
</el-table-column>
</template>

1
src/views/xm/core/xmProject/XmProjectInfo.vue

@ -33,6 +33,7 @@
<el-menu-item index="计划">
<span slot="title"><i class="el-icon-odometer"></i>计划</span>
</el-menu-item>
<el-menu-item index="任务">
<span slot="title"><i class="el-icon-s-operation"></i>任务</span>
</el-menu-item>

20
src/views/xm/core/xmTask/XmPhase.vue

@ -606,17 +606,10 @@ export default {
params.ntype="0"
}
if(this.ptype==='1' && !this.isTaskCenter){
if(!params.productId){
this.$notify.warning("请先选中产品")
return;
}
}else if(this.ptype==='0' && !this.isTaskCenter){
if(!params.projectId){
this.$notify.warning("请先选中项目")
return;
}
}
//params.ptype=this.ptype
getTask(params)
@ -802,24 +795,11 @@ export default {
this.editFormBak=Object.assign({},row)
this.$emit('row-click',row,);// @row-click="rowClick"
},
showDrawer: function (row) {
this.editFormVisible = true;
this.editForm = row;
this.editFormBak=Object.assign({},row)
// this.$emit('row-click',row,);// @row-click="rowClick"
},
selectVisible(row,visible){
if(visible==true){
this.rowClick(row);
}
},
showExecusers(row) {
this.editForm = row;
this.execUserVisible = true;
},
showSkill(row) {
this.editForm = row;
this.skillVisible = true;

Loading…
Cancel
Save