Browse Source

优化

master
陈裕财 4 years ago
parent
commit
7282270a1c
  1. 16
      src/views/xm/core/xmMenu/XmEpicFeatures.vue
  2. 5
      src/views/xm/core/xmMenu/XmMenuAdd.vue
  3. 4
      src/views/xm/core/xmMenu/XmMenuMng.vue
  4. 2
      src/views/xm/core/xmMenu/XmMenuSelect.vue
  5. 2
      src/views/xm/core/xmPhase/XmPhaseForProduct.vue
  6. 2
      src/views/xm/core/xmPhase/XmPhaseMng.vue
  7. 2
      src/views/xm/core/xmTask/XmPhase.vue
  8. 8
      src/views/xm/core/xmTask/XmTaskMng.vue

16
src/views/xm/core/xmMenu/XmEpicFeatures.vue

@ -103,12 +103,12 @@
</el-row>
<!--编辑 XmMenu xm_project_menu界面-->
<el-dialog title="编辑需求" :visible.sync="editFormVisible" :with-header="false" width="80%" top="20px" center append-to-body :close-on-click-modal="false" >
<el-dialog :title="'编辑'+(editForm.dclass=='1'?'史诗':'特性')" :visible.sync="editFormVisible" width="80%" top="20px" append-to-body :close-on-click-modal="false" >
<xm-menu-edit :xm-menu="editForm" :sel-project="selProject" :visible="editFormVisible" @cancel="editFormVisible=false" @submit="afterEditSubmit" @add-sub-menu="onAddSubMenu" @edit-fields="onEditSomeFields"></xm-menu-edit>
</el-dialog>
<!--新增 XmMenu xm_project_menu界面-->
<el-dialog title="新增需求" :visible.sync="addFormVisible" :with-header="false" width="80%" top="20px" center append-to-body :close-on-click-modal="false">
<el-dialog :title="'新增'+(addForm.dclass=='1'?'史诗':'特性')" :visible.sync="addFormVisible" width="80%" top="20px" append-to-body :close-on-click-modal="false">
<xm-menu-add :parent-menu="parentMenu" :xm-menu="addForm" :visible="addFormVisible" @cancel="addFormVisible=false" @submit="afterAddSubmit"></xm-menu-add>
</el-dialog>
<el-drawer title="需求模板" :visible.sync="menuTemplateVisible" size="80%" append-to-body :close-on-click-modal="false">
@ -453,7 +453,8 @@
},
// XmMenu xm_project_menu
showAdd: function (dclass) {
this.addForm={...this.addFormInit}
debugger;
Object.assign(this.addForm,this.addFormInit)
if(this.filters.product && this.filters.product.id){
this.parentMenu=null;
this.addForm.productId=this.filters.product.id
@ -494,6 +495,7 @@
this.addForm.iterationName=this.filters.iteration.iterationName
this.addFormVisible = true;
}
this.addForm.dclass=(parseInt(row.dclass)+1)+"";
this.addFormVisible=true
},
showProdcutAdd:function(){
@ -507,7 +509,7 @@
if(this.parentMenu){
this.parentMenu.childrenCnt=this.parentMenu.childrenCnt?this.parentMenu.childrenCnt+1:1;
}
treeTool.reloadAllChildren(this.$refs.table,this.maps,[row,{...this.parentMenu}],'pmenuId',this.loadXmMenusLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,[row,{...this.parentMenu}],'pmenuId',this.loadXmMenusLazy)
this.parentMenu=null;
@ -580,7 +582,7 @@
if( tips.isOk ){
this.pageInfo.count=true;
this.getXmMenus();
treeTool.reloadAllChildren(this.$refs.table,this.maps,this.sels,'pmenuId',this.loadXmMenusLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,this.sels,'pmenuId',this.loadXmMenusLazy)
}
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
@ -699,7 +701,7 @@
if(tips.isOk){
this.getXmMenus()
if(this.parentMenu && this.parentMenu.menuId){
treeTool.reloadAllChildren(this.$refs.table,this.maps,this.parentMenu.menuId,'pmenuId',this.loadXmMenusLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,this.parentMenu.menuId,'pmenuId',this.loadXmMenusLazy)
}
}else{
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
@ -846,7 +848,7 @@
if(tips.isOk){
this.searchXmMenus();
var rows=[...this.sels,{menuId:'',pmenuId:menu.menuId}]
treeTool.reloadAllChildren(this.$refs.table,this.maps,rows,'pmenuId',this.loadXmMenusLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,rows,'pmenuId',this.loadXmMenusLazy)
}
this.$notify({position:'bottom-left',showClose:true,message:tips.msg,type:tips.isOk?'success':'error'})
})

5
src/views/xm/core/xmMenu/XmMenuAdd.vue

@ -125,6 +125,7 @@
]),
calcMenuLabel(){
debugger;
var params={label:'用户故事',icon:'el-icon-document',color:' rgb(79, 140, 255)'};
if(this.addForm.dclass==='1'){
params={label:'史诗',icon:'el-icon-s-promotion',color:'rgb(255, 153, 51)'};
@ -165,7 +166,7 @@
//
addForm: {
menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'0',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',seqNo:'1',mmUserid:'',mmUsername:'',ntype:'0',childrenCnt:0,sinceVersion:'',
proposerId:'',proposerName:'',dlvl:'0',dtype:'0',priority:'0',source:'1'
proposerId:'',proposerName:'',dlvl:'0',dtype:'0',priority:'0',source:'1',dclass:'3',
},
proposerSelectVisible:false,
mmUserSelectVisible:false,
@ -262,7 +263,7 @@
this.addForm.mmUserid=this.userInfo.userid
this.addForm.mmUsername=this.userInfo.username
this.addForm.remark="作为 ,我需要 ,以便我能够 。"
if(this.parentMenu){
if(this.parentMenu && this.parentMenu.menuId){
if(this.parentMenu.childrenCnt){
this.addForm.seqNo=this.parentMenu.seqNo+"."+(this.parentMenu.childrenCnt+1)
}else{

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

@ -339,12 +339,12 @@
</el-row>
<!--编辑 XmMenu xm_project_menu界面-->
<el-dialog title="编辑需求" :visible.sync="editFormVisible" :with-header="false" width="80%" top="20px" center append-to-body :close-on-click-modal="false" >
<el-dialog title="编辑故事" :visible.sync="editFormVisible" :with-header="false" width="80%" top="20px" append-to-body :close-on-click-modal="false" >
<xm-menu-edit :xm-menu="editForm" :sel-project="selProject" :visible="editFormVisible" @cancel="editFormVisible=false" @submit="afterEditSubmit" @add-sub-menu="onAddSubMenu" @edit-fields="onEditSomeFields"></xm-menu-edit>
</el-dialog>
<!--新增 XmMenu xm_project_menu界面-->
<el-dialog title="新增需求" :visible.sync="addFormVisible" :with-header="false" width="80%" top="20px" center append-to-body :close-on-click-modal="false">
<el-dialog title="新增故事" :visible.sync="addFormVisible" :with-header="false" width="80%" top="20px" append-to-body :close-on-click-modal="false">
<xm-menu-add :parent-menu="parentMenu" :xm-menu="addForm" :visible="addFormVisible" @cancel="addFormVisible=false" @submit="afterAddSubmit"></xm-menu-add>
</el-dialog>
<el-drawer title="需求模板" :visible.sync="menuTemplateVisible" size="80%" append-to-body :close-on-click-modal="false">

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

@ -419,7 +419,7 @@ import XmEpicFeatures from './XmEpicFeaturesSelect.vue';
},
reloadChildren(rows){
treeTool.reloadAllChildren(this.$refs.table,this.maps,rows,'pmenuId',this.loadMenusLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,rows,'pmenuId',this.loadMenusLazy)
},
// XmMenu xm_project_menu
getXmMenus() {

2
src/views/xm/core/xmPhase/XmPhaseForProduct.vue

@ -603,7 +603,7 @@ import XmTaskList from '../xmTask/XmTaskList.vue';
if( tips.isOk ){
this.pageInfo.count=true;
this.searchXmPhases()
treeTool.reloadAllChildren(this.$refs.table,this.maps,phases,'parentPhaseId',this.loadXmPhaseLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,phases,'parentPhaseId',this.loadXmPhaseLazy)
}
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error'});

2
src/views/xm/core/xmPhase/XmPhaseMng.vue

@ -638,7 +638,7 @@ import XmTaskList from '../xmTask/XmTaskList.vue';
if( tips.isOk ){
this.pageInfo.count=true;
this.searchXmPhases()
treeTool.reloadAllChildren(this.$refs.table,this.maps,phases,'parentPhaseId',this.loadXmPhaseLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,phases,'parentPhaseId',this.loadXmPhaseLazy)
}
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: tips.isOk?'success':'error'});

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

@ -1143,7 +1143,7 @@ export default {
this.searchXmTasks();
var rows=[...this.sels,{id:'xxxxx',parentTaskid:task.id}]
treeTool.reloadAllChildren(this.$refs.table,this.maps,rows,'parentTaskid',this.loadXmTaskLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,rows,'parentTaskid',this.loadXmTaskLazy)
}
this.$notify({
showClose: true,

8
src/views/xm/core/xmTask/XmTaskMng.vue

@ -1322,7 +1322,7 @@ export default {
var tips=res.data.tips;
if(tips.isOk){
this.getXmTasks();
treeTool.reloadAllChildren(this.$refs.table,this.maps,this.sels,'parentTaskid',this.loadXmTaskLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,this.sels,'parentTaskid',this.loadXmTaskLazy)
}
this.$notify({
showClose: true,
@ -1574,7 +1574,7 @@ export default {
if (tips.isOk) {
this.pageInfo.count = true;
this.searchXmTasks()
treeTool.reloadAllChildren(this.$refs.table,this.maps,this.sels,'parentTaskid',this.loadXmTaskLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,this.sels,'parentTaskid',this.loadXmTaskLazy)
}
this.$notify({
showClose: true,
@ -2386,7 +2386,7 @@ export default {
this.searchXmTasks();
var rows=[...this.sels,{id:'xxxxx',parentTaskid:task.id}]
treeTool.reloadAllChildren(this.$refs.table,this.maps,rows,'parentTaskid',this.loadXmTaskLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,rows,'parentTaskid',this.loadXmTaskLazy)
}
this.$notify({
showClose: true,
@ -2470,7 +2470,7 @@ export default {
onTaskWorkloadSubmit(){
this.taskWorkloadVisible=false;
this.searchXmTasks();
treeTool.reloadAllChildren(this.$refs.table,this.maps,[this.editForm],'parentTaskid',this.loadXmTaskLazy)
//treeTool.reloadAllChildren(this.$refs.table,this.maps,[this.editForm],'parentTaskid',this.loadXmTaskLazy)
},
showWorkload(row){
this.editForm=row

Loading…
Cancel
Save