diff --git a/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue b/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue index 130ce88b..668719ae 100644 --- a/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue +++ b/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue @@ -34,7 +34,7 @@ - + diff --git a/src/views/xm/core/xmMenu/XmMenuAdd.vue b/src/views/xm/core/xmMenu/XmMenuAdd.vue index e24aca40..24b09182 100644 --- a/src/views/xm/core/xmMenu/XmMenuAdd.vue +++ b/src/views/xm/core/xmMenu/XmMenuAdd.vue @@ -1,37 +1,33 @@ @@ -349,14 +339,14 @@ - + - + - + - + @@ -519,7 +509,9 @@ addForm: { menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'' }, - + addFormInit: { + menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'' + }, editFormVisible: false,//编辑界面是否显示 //编辑xmMenu界面初始化数据 editForm: { @@ -721,12 +713,20 @@ }, //显示新增界面 XmMenu xm_project_menu showAdd: function (dclass) { + this.addForm={...this.addFormInit} if(this.filters.product && this.filters.product.id){ this.parentMenu=null; 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.parentMenu=null; + 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{ this.$refs.xmProductSelect1.productVisible=true; this.$notify({showClose: true, message: "请先选择一个产品", type: 'warning'}); @@ -735,6 +735,8 @@ //this.addForm=Object.assign({}, this.editForm); }, showSubAdd:function(row){ + + this.addForm={...this.addFormInit} this.editForm=row this.parentMenu=row this.expandRowKeysCpd.push(row.pmenuId); @@ -744,6 +746,12 @@ }else{ this.addForm.productName=null; } + 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.addFormVisible = true; + } this.addFormVisible=true }, showProdcutAdd:function(){ @@ -753,6 +761,12 @@ this.addFormVisible=false; this.pageInfo.count=true; //this.getXmMenus(); + if(!row.pmenuId){ + this.xmMenus.push(row); + } + 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) this.parentMenu=null; diff --git a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue index f3ace78b..d913a900 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue @@ -158,10 +158,10 @@ - - + +
-
+
diff --git a/src/views/xm/core/xmQuestion/XmQuestionMng.vue b/src/views/xm/core/xmQuestion/XmQuestionMng.vue index 126de020..3f5f24c8 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionMng.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionMng.vue @@ -994,14 +994,14 @@ return "" } if(row.handlerUsername){ - if(row.lremark){ - var lremark=row.lremark; - lremark=lremark.replace(/<\w?>/g,""); - lremark=lremark.replace(/<\/\w?>/g,""); - if(lremark.length<=10){ - msg='已指派给'+row.handlerUsername+','+lremark + if(row.remarks){ + var remarks=row.remarks; + remarks=remarks.replace(/<\w?>/g,""); + remarks=remarks.replace(/<\/\w?>/g,""); + if(remarks.length<=10){ + msg='已指派给'+row.handlerUsername+','+remarks }else{ - msg='已指派给'+row.handlerUsername+','+lremark.substr(0,10)+"..." + msg='已指派给'+row.handlerUsername+','+remarks.substr(0,10)+"..." } }else{