Browse Source

优化

master
陈裕财 4 years ago
parent
commit
d1277129fc
  1. 4
      src/views/xm/core/xmBranchState/XmBranchStateEdit.vue
  2. 6
      src/views/xm/core/xmBranchState/XmBranchStateMng.vue
  3. 4
      src/views/xm/core/xmBranchStateHis/XmBranchStateHisEdit.vue
  4. 6
      src/views/xm/core/xmBranchStateHis/XmBranchStateHisMng.vue
  5. 4
      src/views/xm/core/xmGroup/XmGroupEdit.vue
  6. 16
      src/views/xm/core/xmGroup/XmGroupMng.vue
  7. 4
      src/views/xm/core/xmGroupUser/XmGroupUserEdit.vue
  8. 6
      src/views/xm/core/xmGroupUser/XmGroupUserMng.vue
  9. 4
      src/views/xm/core/xmIterationState/XmIterationStateEdit.vue
  10. 6
      src/views/xm/core/xmIterationState/XmIterationStateMng.vue
  11. 4
      src/views/xm/core/xmIterationStateHis/XmIterationStateHisEdit.vue
  12. 6
      src/views/xm/core/xmIterationStateHis/XmIterationStateHisMng.vue
  13. 4
      src/views/xm/core/xmProductState/XmProductStateEdit.vue
  14. 6
      src/views/xm/core/xmProductState/XmProductStateMng.vue
  15. 4
      src/views/xm/core/xmProductStateHis/XmProductStateHisEdit.vue
  16. 6
      src/views/xm/core/xmProductStateHis/XmProductStateHisMng.vue
  17. 4
      src/views/xm/core/xmProjectState/XmProjectStateEdit.vue
  18. 6
      src/views/xm/core/xmProjectState/XmProjectStateMng.vue
  19. 4
      src/views/xm/core/xmProjectStateHis/XmProjectStateHisEdit.vue
  20. 6
      src/views/xm/core/xmProjectStateHis/XmProjectStateHisMng.vue
  21. 2
      src/views/xm/core/xmTaskSbill/SelectTaskWorkload.vue
  22. 2
      src/views/xm/core/xmTaskSbill/SelectXmProject.vue
  23. 4
      src/views/xm/core/xmTaskSbill/XmTaskSbillEdit.vue
  24. 14
      src/views/xm/core/xmTaskSbill/XmTaskSbillMng.vue
  25. 2
      src/views/xm/core/xmTaskWorkload/XmTaskSbillSelect.vue
  26. 4
      src/views/xm/core/xmTaskWorkload/XmTaskWorkloadEdit.vue
  27. 6
      src/views/xm/core/xmTaskWorkload/XmTaskWorkloadList.vue
  28. 6
      src/views/xm/core/xmTaskWorkload/XmTaskWorkloadMng.vue

4
src/views/xm/core/xmBranchState/XmBranchStateEdit.vue

@ -271,11 +271,11 @@
this.currOpType="edit";
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

6
src/views/xm/core/xmBranchState/XmBranchStateMng.vue

@ -210,7 +210,7 @@
this.pageInfo.count=false;
this.xmBranchStates = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -252,7 +252,7 @@
this.pageInfo.count=true;
this.getXmBranchStates();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -275,7 +275,7 @@
this.pageInfo.count=true;
this.getXmBranchStates();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

4
src/views/xm/core/xmBranchStateHis/XmBranchStateHisEdit.vue

@ -271,11 +271,11 @@
this.currOpType="edit";
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

6
src/views/xm/core/xmBranchStateHis/XmBranchStateHisMng.vue

@ -210,7 +210,7 @@
this.pageInfo.count=false;
this.xmBranchStateHiss = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -252,7 +252,7 @@
this.pageInfo.count=true;
this.getXmBranchStateHiss();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -275,7 +275,7 @@
this.pageInfo.count=true;
this.getXmBranchStateHiss();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

4
src/views/xm/core/xmGroup/XmGroupEdit.vue

@ -124,11 +124,11 @@
this.currOpType="edit";
this.$emit('submit',this.editForm);// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

16
src/views/xm/core/xmGroup/XmGroupMng.vue

@ -414,7 +414,7 @@ XmProductSelect,XmProjectSelect,
childrens=childrens.filter(i=>!this.xmGroups.some(k=>k.id==i.id))
this.xmGroups.push(...childrens)
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -476,7 +476,7 @@ XmProductSelect,XmProjectSelect,
this.pageInfo.count=false;
this.xmGroups = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -490,7 +490,7 @@ XmProductSelect,XmProjectSelect,
// XmGroup xm_group
showProjectGroupAdd: function () {
if(!this.filters.selProject || !this.filters.selProject.id){
this.$notify({ showClose:true, message: "请先选择项目", type: 'warning' });
this.$notify({position:'bottom-left',showClose:true, message: "请先选择项目", type: 'warning' });
return;
}
this.addForm={...this.addFormInit}
@ -511,7 +511,7 @@ XmProductSelect,XmProjectSelect,
// XmGroup xm_group
showProductGroupAdd: function () {
if(!this.xmProduct || !this.xmProduct.id){
this.$notify({ showClose:true, message: "请先选择产品", type: 'warning' });
this.$notify({position:'bottom-left',showClose:true, message: "请先选择产品", type: 'warning' });
return;
}
this.addForm={...this.addFormInit}
@ -573,7 +573,7 @@ XmProductSelect,XmProjectSelect,
this.pageInfo.count=true;
this.getXmGroups();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -592,7 +592,7 @@ XmProductSelect,XmProjectSelect,
this.pageInfo.count=true;
this.getXmGroups();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},
@ -688,7 +688,7 @@ XmProductSelect,XmProjectSelect,
if(tips.isOk){
this.searchXmGroups()
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
})
},
@ -745,7 +745,7 @@ XmProductSelect,XmProjectSelect,
this.pageInfo.count=true;
this.getXmGroups();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},

4
src/views/xm/core/xmGroupUser/XmGroupUserEdit.vue

@ -114,11 +114,11 @@
this.currOpType="edit";
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

6
src/views/xm/core/xmGroupUser/XmGroupUserMng.vue

@ -186,7 +186,7 @@
this.pageInfo.count=false;
this.xmGroupUsers = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -228,7 +228,7 @@
this.pageInfo.count=true;
this.getXmGroupUsers();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -246,7 +246,7 @@
this.pageInfo.count=true;
this.getXmGroupUsers();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

4
src/views/xm/core/xmIterationState/XmIterationStateEdit.vue

@ -175,11 +175,11 @@
this.currOpType="edit";
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

6
src/views/xm/core/xmIterationState/XmIterationStateMng.vue

@ -178,7 +178,7 @@
this.pageInfo.count=false;
this.xmIterationStates = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -220,7 +220,7 @@
this.pageInfo.count=true;
this.getXmIterationStates();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -243,7 +243,7 @@
this.pageInfo.count=true;
this.getXmIterationStates();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

4
src/views/xm/core/xmIterationStateHis/XmIterationStateHisEdit.vue

@ -175,11 +175,11 @@
this.currOpType="edit";
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

6
src/views/xm/core/xmIterationStateHis/XmIterationStateHisMng.vue

@ -178,7 +178,7 @@
this.pageInfo.count=false;
this.xmIterationStateHiss = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -220,7 +220,7 @@
this.pageInfo.count=true;
this.getXmIterationStateHiss();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -243,7 +243,7 @@
this.pageInfo.count=true;
this.getXmIterationStateHiss();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

4
src/views/xm/core/xmProductState/XmProductStateEdit.vue

@ -211,11 +211,11 @@
this.currOpType="edit";
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

6
src/views/xm/core/xmProductState/XmProductStateMng.vue

@ -190,7 +190,7 @@
this.pageInfo.count=false;
this.xmProductStates = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -232,7 +232,7 @@
this.pageInfo.count=true;
this.getXmProductStates();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -255,7 +255,7 @@
this.pageInfo.count=true;
this.getXmProductStates();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

4
src/views/xm/core/xmProductStateHis/XmProductStateHisEdit.vue

@ -211,11 +211,11 @@
this.currOpType="edit";
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

6
src/views/xm/core/xmProductStateHis/XmProductStateHisMng.vue

@ -190,7 +190,7 @@
this.pageInfo.count=false;
this.xmProductStateHiss = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -232,7 +232,7 @@
this.pageInfo.count=true;
this.getXmProductStateHiss();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -255,7 +255,7 @@
this.pageInfo.count=true;
this.getXmProductStateHiss();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

4
src/views/xm/core/xmProjectState/XmProjectStateEdit.vue

@ -271,11 +271,11 @@
this.currOpType="edit";
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

6
src/views/xm/core/xmProjectState/XmProjectStateMng.vue

@ -210,7 +210,7 @@
this.pageInfo.count=false;
this.xmProjectStates = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -252,7 +252,7 @@
this.pageInfo.count=true;
this.getXmProjectStates();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -275,7 +275,7 @@
this.pageInfo.count=true;
this.getXmProjectStates();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

4
src/views/xm/core/xmProjectStateHis/XmProjectStateHisEdit.vue

@ -271,11 +271,11 @@
this.currOpType="edit";
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

6
src/views/xm/core/xmProjectStateHis/XmProjectStateHisMng.vue

@ -210,7 +210,7 @@
this.pageInfo.count=false;
this.xmProjectStateHiss = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -252,7 +252,7 @@
this.pageInfo.count=true;
this.getXmProjectStateHiss();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -275,7 +275,7 @@
this.pageInfo.count=true;
this.getXmProjectStateHiss();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

2
src/views/xm/core/xmTaskSbill/SelectTaskWorkload.vue

@ -167,7 +167,7 @@ export default {
this.pageInfo.count=false;
this.xmTaskWorkloads = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );

2
src/views/xm/core/xmTaskSbill/SelectXmProject.vue

@ -103,7 +103,7 @@ export default {
this.pageInfo.count=false;
this.xmProjects = res.data.data;
}else{
this.$notify({ showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose: true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );

4
src/views/xm/core/xmTaskSbill/XmTaskSbillEdit.vue

@ -181,7 +181,7 @@
if(tips.isOk){
this.$emit('submit');// @submit="afterEditSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
}else{
addXmTaskSbill(params).then((res) => {
@ -191,7 +191,7 @@
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
}
});

14
src/views/xm/core/xmTaskSbill/XmTaskSbillMng.vue

@ -313,7 +313,7 @@
this.pageInfo.count=false;
this.xmTaskSbills = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -355,7 +355,7 @@
this.pageInfo.count=true;
this.getXmTaskSbills();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -373,7 +373,7 @@
this.pageInfo.count=true;
this.getXmTaskSbills();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},
@ -386,11 +386,11 @@
/**begin 自定义函数请在下面加**/
addWorkload(row,index){
if(row.status!='0'){
this.$notify({ showClose:true, message: "只能修改待提交的数据", type: 'error'});
this.$notify({position:'bottom-left',showClose:true, message: "只能修改待提交的数据", type: 'error'});
return;
}
if(!(row.bizFlowState=='0' || row.bizFlowState=='3' || row.bizFlowState=='4')){
this.$notify({ showClose:true, message: "只能修改未发审、未通过、已取消的数据", type: 'error'});
this.$notify({position:'bottom-left',showClose:true, message: "只能修改未发审、未通过、已取消的数据", type: 'error'});
return;
}
this.thisBillRow = Object.assign({},row);
@ -413,7 +413,7 @@
if(tips.isOk){
this.getXmTaskSbills();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>{});
},
//
@ -428,7 +428,7 @@
let tips=res.data.tips;
if(tips.isOk){
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>{});
},
dateFormat(fmt, date) {

2
src/views/xm/core/xmTaskWorkload/XmTaskSbillSelect.vue

@ -205,7 +205,7 @@ export default {
this.pageInfo.count=false;
this.xmTaskSbills = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );

4
src/views/xm/core/xmTaskWorkload/XmTaskWorkloadEdit.vue

@ -143,11 +143,11 @@
this.currOpType="edit";
this.$emit('submit');// @submit="afterAddSubmit"
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err =>this.load.edit=false);
});
}else{
this.$notify({ showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: "表单验证不通过,请修改表单数据再提交", type: 'error' });
}
});
},

6
src/views/xm/core/xmTaskWorkload/XmTaskWorkloadList.vue

@ -183,7 +183,7 @@
this.pageInfo.count=false;
this.xmTaskWorkloads = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -228,7 +228,7 @@
this.getXmTaskWorkloads();
this.$emit('submit',this.editForm)
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -252,7 +252,7 @@
this.getXmTaskWorkloads();
this.$emit('submit')
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

6
src/views/xm/core/xmTaskWorkload/XmTaskWorkloadMng.vue

@ -310,7 +310,7 @@
this.pageInfo.count=false;
this.xmTaskWorkloads = res.data.data;
}else{
this.$notify({ showClose:true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: 'error' });
}
this.load.list = false;
}).catch( err => this.load.list = false );
@ -352,7 +352,7 @@
this.pageInfo.count=true;
this.getXmTaskWorkloads();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' });
}).catch( err => this.load.del=false );
});
},
@ -375,7 +375,7 @@
this.pageInfo.count=true;
this.getXmTaskWorkloads();
}
this.$notify({ showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
this.$notify({position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error'});
}).catch( err => this.load.del=false );
});
},

Loading…
Cancel
Save