Browse Source

优化

master
陈裕财 4 years ago
parent
commit
767b14546a
  1. 14
      src/views/xm/core/xmMenu/XmMenuEdit.vue
  2. 2
      src/views/xm/core/xmMenuWorkItem/XmSubBugList.vue
  3. 2
      src/views/xm/core/xmMenuWorkItem/XmSubMenuList.vue
  4. 2
      src/views/xm/core/xmMenuWorkItem/XmSubTaskList.vue

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

@ -241,17 +241,19 @@ import XmMenuExchangeMng from '../xmMenuExchange/XmMenuExchangeMng.vue';
props:['xmMenu','visible','parentMenu','product','dclass','selProject','reload'], props:['xmMenu','visible','parentMenu','product','dclass','selProject','reload'],
watch: { watch: {
'xmMenu':function( xmMenu ) { 'xmMenu':function( xmMenu ) {
this.editForm = xmMenu;
//this.editForm = {...xmMenu};
}, },
'visible':function(visible) { 'visible':function(visible) {
if(visible==true){ if(visible==true){
if(this.editForm.startTime && this.editForm.endTime){
this.dateRanger.push(this.editForm.startTime)
this.dateRanger.push(this.editForm.endTime)
}
if(this.reload==true){ if(this.reload==true){
this.searchXmMenus(); this.searchXmMenus();
}else{
this.editForm = {...this.xmMenu};
if(this.editForm.startTime && this.editForm.endTime){
this.dateRanger.push(this.editForm.startTime)
this.dateRanger.push(this.editForm.endTime)
}
} }
} }
}, },
@ -301,7 +303,7 @@ import XmMenuExchangeMng from '../xmMenuExchange/XmMenuExchangeMng.vue';
// //
editForm: { editForm: {
menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',seqNo:'1',mmUserid:'',mmUsername:'',ntype:'0',childrenCnt:0,sinceVersion:'', menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',seqNo:'1',mmUserid:'',mmUsername:'',ntype:'0',childrenCnt:0,sinceVersion:'',
proposerId:'',proposerName:'',dlvl:'',dtype:'',priority:'',source:'',calcType:'1',mactWorkload:0,mactAmount:0,mactRate:0,ctime:'',
proposerId:'',proposerName:'',dlvl:'',dtype:'',priority:'',source:'',calcType:'1',mactWorkload:0,mactAmount:0,mactRate:0,ctime:'',dclass:'1'
}, },
proposerSelectVisible:false, proposerSelectVisible:false,
mmUserSelectVisible:false, mmUserSelectVisible:false,

2
src/views/xm/core/xmMenuWorkItem/XmSubBugList.vue

@ -133,7 +133,7 @@ export default {
'parentXmMenu','linkProjectId' 'parentXmMenu','linkProjectId'
], ],
watch: { watch: {
'parentXmMenu.menuId':function(){
'parentXmMenu':function(){
this.initData(); this.initData();
}, },
'xmBugs':function(){ 'xmBugs':function(){

2
src/views/xm/core/xmMenuWorkItem/XmSubMenuList.vue

@ -137,7 +137,7 @@ export default {
'parentXmMenu','linkProjectId' 'parentXmMenu','linkProjectId'
], ],
watch: { watch: {
'parentXmMenu.menuId':function(){
'parentXmMenu':function(){
this.initData(); this.initData();
}, },
'xmMenus':function(){ 'xmMenus':function(){

2
src/views/xm/core/xmMenuWorkItem/XmSubTaskList.vue

@ -139,7 +139,7 @@ export default {
'parentXmMenu','linkProjectId' 'parentXmMenu','linkProjectId'
], ],
watch: { watch: {
'parentXmMenu.menuId':function(){
'parentXmMenu':function(){
this.initData(); this.initData();
}, },
'xmTasks':function(){ 'xmTasks':function(){

Loading…
Cancel
Save