Browse Source

优化

master
陈裕财 3 years ago
parent
commit
1463c99d1b
  1. 4
      src/views/xm/core/xmTestCase/XmTestCaseEdit.vue
  2. 8
      src/views/xm/core/xmTestPlan/XmTestPlanEdit.vue

4
src/views/xm/core/xmTestCase/XmTestCaseEdit.vue

@ -181,6 +181,9 @@ import MdpSelectUserXm from '@/views/xm/core/components/MdpSelectUserXm';//修
editForm: { editForm: {
id:'',caseName:'',caseRemark:'',testStep:'',expectResult:'',menuId:'',menuName:'',ctime:'',ltime:'',luserid:'',lusername:'',cbranchId:'',moduleId:'',moduleName:'',caseStatus:'0',cuserid:'',cusername:'',productId:'',verNum:'1.0',casedbId:'',casedbName:'',cpriority:'0',funcId:'',funcName:'',preRemark:'',caseType:'0' id:'',caseName:'',caseRemark:'',testStep:'',expectResult:'',menuId:'',menuName:'',ctime:'',ltime:'',luserid:'',lusername:'',cbranchId:'',moduleId:'',moduleName:'',caseStatus:'0',cuserid:'',cusername:'',productId:'',verNum:'1.0',casedbId:'',casedbName:'',cpriority:'0',funcId:'',funcName:'',preRemark:'',caseType:'0'
}, },
editFormInit: {
id:'',caseName:'',caseRemark:'',testStep:'',expectResult:'',menuId:'',menuName:'',ctime:'',ltime:'',luserid:'',lusername:'',cbranchId:'',moduleId:'',moduleName:'',caseStatus:'0',cuserid:'',cusername:'',productId:'',verNum:'1.0',casedbId:'',casedbName:'',cpriority:'0',funcId:'',funcName:'',preRemark:'',caseType:'0'
},
maxTableHeight:300, maxTableHeight:300,
menuVisible:false, menuVisible:false,
menuFormVisible:false, menuFormVisible:false,
@ -227,6 +230,7 @@ import MdpSelectUserXm from '@/views/xm/core/components/MdpSelectUserXm';//修
}); });
}, },
initData: function(){ initData: function(){
this.editForm={...this.editFormInit}
this.currOpType=this.opType this.currOpType=this.opType
if(this.xmTestCase){ if(this.xmTestCase){
this.editForm = Object.assign({},this.xmTestCase); this.editForm = Object.assign({},this.xmTestCase);

8
src/views/xm/core/xmTestPlan/XmTestPlanEdit.vue

@ -105,6 +105,9 @@ import MdpSelectUserXm from '@/views/xm/core/components/MdpSelectUserXm';//修
editForm: { editForm: {
id:'',name:'',casedbId:'',casedbName:'',projectId:'',projectName:'',cuserid:'',cusername:'',ctime:'',stime:'',etime:'',status:'',tcode:'',totalCases:'',okCases:'',errCases:'',igCases:'',blCases:'',productId:'',productName:'',flowState:'' id:'',name:'',casedbId:'',casedbName:'',projectId:'',projectName:'',cuserid:'',cusername:'',ctime:'',stime:'',etime:'',status:'',tcode:'',totalCases:'',okCases:'',errCases:'',igCases:'',blCases:'',productId:'',productName:'',flowState:''
}, },
editFormInit: {
id:'',name:'',casedbId:'',casedbName:'',projectId:'',projectName:'',cuserid:'',cusername:'',ctime:'',stime:'',etime:'',status:'',tcode:'',totalCases:'',okCases:'',errCases:'',igCases:'',blCases:'',productId:'',productName:'',flowState:''
},
maxTableHeight:300, maxTableHeight:300,
}//end return }//end return
},//end data },//end data
@ -146,6 +149,7 @@ import MdpSelectUserXm from '@/views/xm/core/components/MdpSelectUserXm';//修
}); });
}, },
initData: function(){ initData: function(){
this.editForm={...this.editFormInit}
this.currOpType=this.opType this.currOpType=this.opType
if(this.xmTestPlan){ if(this.xmTestPlan){
this.editForm = Object.assign({},this.xmTestPlan); this.editForm = Object.assign({},this.xmTestPlan);
@ -153,8 +157,8 @@ import MdpSelectUserXm from '@/views/xm/core/components/MdpSelectUserXm';//修
if(this.opType=='edit'){ if(this.opType=='edit'){
}else{
}else{
if(this.$refs['xmProjectSelect']) this.$refs['xmProjectSelect'].clearSelect()
} }
this.editFormBak={...this.editForm} this.editFormBak={...this.editForm}
}, },

Loading…
Cancel
Save