diff --git a/src/views/xm/core/xmMenu/XmMenuAdd.vue b/src/views/xm/core/xmMenu/XmMenuAdd.vue
index a38194a6..c7f9d323 100644
--- a/src/views/xm/core/xmMenu/XmMenuAdd.vue
+++ b/src/views/xm/core/xmMenu/XmMenuAdd.vue
@@ -13,7 +13,7 @@
- 归属产品:{{ addForm.productName}} 产品编号:{{ addForm.productId }}
+ 归属产品:{{ addForm.productName}} | 产品编号:{{ addForm.productId }} | 迭代名称:{{addForm.iterationName}} | 迭代编号:{{addForm.iterationId}}
@@ -159,7 +159,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',dclass:'3',
+ proposerId:'',proposerName:'',dlvl:'0',dtype:'0',priority:'0',source:'1',dclass:'3',productName:'',iterationName:''
},
proposerSelectVisible:false,
mmUserSelectVisible:false,
@@ -252,6 +252,7 @@
},
/**end 在上面加自定义方法**/
initData(){
+ debugger;
Object.assign(this.addForm, this.xmMenu);
this.addForm.mmUserid=this.userInfo.userid
this.addForm.mmUsername=this.userInfo.username
diff --git a/src/views/xm/core/xmMenu/XmMenuBox.vue b/src/views/xm/core/xmMenu/XmMenuBox.vue
index 30efbc9c..19a3a891 100644
--- a/src/views/xm/core/xmMenu/XmMenuBox.vue
+++ b/src/views/xm/core/xmMenu/XmMenuBox.vue
@@ -7,10 +7,10 @@
-->
-
+
-
+
@@ -39,12 +39,15 @@
watch: {
xmProduct:{
handler(){
- this.filters.xmProduct=this.xmProduct
+ this.filters.xmProduct={...this.xmProduct}
},
deep:true,
},
xmIteration:{
handler(){
+ if(this.xmProduct && this.xmProduct.id){
+ return;
+ }
this.filters.xmProduct={id:this.xmIteration.productId,productName:this.xmIteration.productName}
},
deep:true,
@@ -73,7 +76,12 @@
}
},//end method
mounted() {
- this.filters.xmProduct=this.xmProduct
+ this.filters.xmProduct={...this.xmProduct}
+ if(this.xmIteration && this.xmIteration.id){
+ if(!this.xmProduct || !this.xmProduct.id){
+ this.filters.xmProduct={id:this.xmIteration.productId,productName:this.xmIteration.productName}
+ }
+ }
}//end mounted
}
diff --git a/src/views/xm/core/xmMenu/XmMenuMng.vue b/src/views/xm/core/xmMenu/XmMenuMng.vue
index af1b14ac..f2fb269b 100644
--- a/src/views/xm/core/xmMenu/XmMenuMng.vue
+++ b/src/views/xm/core/xmMenu/XmMenuMng.vue
@@ -526,15 +526,15 @@
addFormVisible: false,//新增xmMenu界面是否显示
//新增xmMenu界面初始化数据
addForm: {
- menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'0',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'',proposerId:'',proposerName:'',dlvl:'0',dtype:'0',priority:'0',source:'1'
+ menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'0',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'',proposerId:'',proposerName:'',dlvl:'0',dtype:'0',priority:'0',source:'1',productName:'',iterationName:''
},
addFormInit: {
- menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'',proposerId:'',proposerName:'',dlvl:'0',dtype:'0',priority:'0',source:'1'
+ menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'',proposerId:'',proposerName:'',dlvl:'0',dtype:'0',priority:'0',source:'1',productName:'',iterationName:''
},
editFormVisible: false,//编辑界面是否显示
//编辑xmMenu界面初始化数据
editForm: {
- menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'',proposerId:'',proposerName:'',dlvl:'0',dtype:'0',priority:'0',source:'1'
+ menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'',proposerId:'',proposerName:'',dlvl:'0',dtype:'0',priority:'0',source:'1',productName:'',iterationName:''
},
menuTemplateVisible:false,
valueChangeRows:[],
@@ -758,23 +758,27 @@
this.editFormVisible = true;
},
//显示新增界面 XmMenu xm_project_menu
- showAdd: function (dclass) {
+ showAdd: function (dclass) {
this.addForm={...this.addFormInit}
if(this.filters.product && this.filters.product.id){
this.addForm.productId=this.filters.product.id
this.addForm.productName=this.filters.product.productName
- this.addForm.dclass=dclass
- this.addFormVisible = true;
- }else if(this.filters.iteration && this.filters.iteration.id){
- this.addForm.productId=this.filters.iteration.productId
+ this.addForm.dclass=dclass
+ }
+ if(this.filters.iteration && this.filters.iteration.id){
+
+ this.addForm.productId=this.filters.iteration.productId
this.addForm.iterationId=this.filters.iteration.id
this.addForm.iterationName=this.filters.iteration.iterationName
this.addForm.dclass=dclass
- this.addFormVisible = true;
- }else{
+
+ }
+ if(!this.addForm.productId){
this.$refs.xmProductSelect1.productVisible=true;
this.$refs.xmProductSelect1.searchXmProducts();
this.$notify({position:'bottom-left',showClose:true,message: "请先选择一个产品", type: 'warning'});
+ }else{
+ this.addFormVisible = true;
}
//this.addForm=Object.assign({}, this.editForm);
diff --git a/src/views/xm/core/xmTask/XmTaskAdd.vue b/src/views/xm/core/xmTask/XmTaskAdd.vue
index a69fc380..8b8d46b7 100644
--- a/src/views/xm/core/xmTask/XmTaskAdd.vue
+++ b/src/views/xm/core/xmTask/XmTaskAdd.vue
@@ -344,6 +344,7 @@
if(this.xmIteration && this.xmIteration.id){
if(!this.addForm.menuId){
this.$notify({position:'bottom-left',showClose:true,message:'在迭代视图中添加任务需要关联需求!请选择需求',type: 'error'})
+ this.activateTabPaneName="3"
this.menuVisible=true;
return;
}