Browse Source

优化

master
陈裕财 4 years ago
parent
commit
440798ea50
  1. 5
      src/views/example/table/complexTable.vue
  2. 4
      src/views/example/table/inlineEditTable.vue
  3. 18
      src/views/login/BranchAdd.vue
  4. 4
      src/views/mdp/arc/archiveAttachment/AttachmentUpload.vue
  5. 2
      src/views/mdp/arc/category/CategoryTree.vue
  6. 28
      src/views/mdp/arc/tag/TagMng.vue
  7. 8
      src/views/mdp/form/formData/FormData.vue
  8. 2
      src/views/mdp/form/formData/FormDataAdd.vue
  9. 2
      src/views/mdp/form/formData/FormDataEdit.vue
  10. 20
      src/views/mdp/form/formData/FormDataMng.vue
  11. 36
      src/views/mdp/form/formData/FormDataMngForFlow.vue
  12. 4
      src/views/mdp/form/formData/FormDataMngForFlowForm.vue
  13. 36
      src/views/mdp/form/formData/FormDataMngForFlowTable.vue
  14. 4
      src/views/mdp/form/formData/FormDataSet.vue
  15. 6
      src/views/mdp/form/formDef/FormDefAdd.vue
  16. 20
      src/views/mdp/form/formDef/FormDefEdit.vue
  17. 2
      src/views/mdp/form/formDef/FormDefList.vue
  18. 6
      src/views/mdp/form/formDef/FormDefMng.vue
  19. 2
      src/views/mdp/form/formField/FormField.vue
  20. 6
      src/views/mdp/form/formQx/FormQxSet.vue
  21. 2
      src/views/mdp/form/formView/FormViewAdd.vue
  22. 2
      src/views/mdp/form/formView/FormViewEdit.vue
  23. 6
      src/views/mdp/form/formView/FormViewMng.vue
  24. 2
      src/views/mdp/meta/category/CategoryAdd.vue
  25. 2
      src/views/mdp/meta/category/CategoryEdit.vue
  26. 8
      src/views/mdp/meta/category/CategoryMng.vue
  27. 2
      src/views/mdp/meta/item/ItemAdd.vue
  28. 2
      src/views/mdp/meta/item/ItemEdit.vue
  29. 8
      src/views/mdp/meta/item/ItemMng.vue
  30. 2
      src/views/mdp/meta/itemOption/ItemOptionAdd.vue
  31. 2
      src/views/mdp/meta/itemOption/ItemOptionEdit.vue
  32. 10
      src/views/mdp/meta/itemOption/ItemOptionMng.vue
  33. 2
      src/views/mdp/meta/sysParam/ItemOptionAdd.vue
  34. 2
      src/views/mdp/meta/sysParam/ItemOptionEdit.vue
  35. 10
      src/views/mdp/meta/sysParam/SysParamMng.vue
  36. 24
      src/views/mdp/sms/SendSms.vue
  37. 4
      src/views/mdp/sys/branch/BranchSelect.vue
  38. 2
      src/views/mdp/sys/dept/DeptTree.vue
  39. 4
      src/views/mdp/sys/post/PostSelectCommon.vue
  40. 4
      src/views/mdp/sys/user/UpdateUserInfo.vue
  41. 10
      src/views/mdp/sys/user/UsersSelect.vue
  42. 2
      src/views/mdp/sys/userDept/UserDeptEdit.vue
  43. 2
      src/views/mdp/workflow/biz/bizModel/BizModelAdd.vue
  44. 2
      src/views/mdp/workflow/biz/bizModel/BizModelEdit.vue
  45. 6
      src/views/mdp/workflow/biz/bizModel/BizModelMng.vue
  46. 10
      src/views/mdp/workflow/de/model/ModelMng.vue
  47. 4
      src/views/mdp/workflow/hi/comment/commentStep.vue
  48. 6
      src/views/mdp/workflow/hi/procinst/ProcinstMng.vue
  49. 6
      src/views/mdp/workflow/re/deployment/DeploymentMng.vue
  50. 6
      src/views/mdp/workflow/re/procdef/ProcdefListForParames.vue
  51. 2
      src/views/mdp/workflow/re/procdef/ProcdefListForSimpleStart.vue
  52. 4
      src/views/mdp/workflow/re/procdef/ProcdefListForStart.vue
  53. 6
      src/views/mdp/workflow/re/procdef/ProcdefMng.vue
  54. 6
      src/views/mdp/workflow/re/procdef/ProcdefSuspend.vue
  55. 14
      src/views/mdp/workflow/re/procdefParames/ProcdefParamesSet.vue
  56. 6
      src/views/mdp/workflow/re/procdefParamesTemplate/ProcdefParamesTemplateMng.vue
  57. 26
      src/views/mdp/workflow/ru/execution/ExecutionMng.vue
  58. 26
      src/views/mdp/workflow/ru/execution/ExecutionMngForFormData.vue
  59. 4
      src/views/mdp/workflow/ru/procinstParames/ProcinstNodeInfoSet.vue
  60. 16
      src/views/mdp/workflow/ru/procinstParames/ProcinstParamesExecutionSet.vue
  61. 6
      src/views/mdp/workflow/ru/procinstParames/ProcinstParamesStartSet.vue
  62. 34
      src/views/mdp/workflow/ru/task/TaskMng.vue
  63. 4
      src/views/myWork/set/index.vue
  64. 2
      src/views/xm/core/components/XmIterationSelect.vue
  65. 2
      src/views/xm/core/components/XmProductSelect.vue
  66. 2
      src/views/xm/core/components/XmProjectSelect.vue
  67. 16
      src/views/xm/core/skill/skillMng.vue
  68. 2
      src/views/xm/core/xmAttachment/XmAttachmentAdd.vue
  69. 2
      src/views/xm/core/xmAttachment/XmAttachmentEdit.vue
  70. 6
      src/views/xm/core/xmAttachment/XmAttachmentMng.vue
  71. 2
      src/views/xm/core/xmBranchState/XmBranchStateAdd.vue
  72. 2
      src/views/xm/core/xmBranchTaskTypeState/XmBranchTaskTypeStateAdd.vue
  73. 2
      src/views/xm/core/xmBranchTaskTypeState/XmBranchTaskTypeStateEdit.vue
  74. 6
      src/views/xm/core/xmBranchTaskTypeState/XmBranchTaskTypeStateMng.vue
  75. 6
      src/views/xm/core/xmContract/XmContractMng.vue
  76. 2
      src/views/xm/core/xmEnvList/XmEnvListAdd.vue
  77. 2
      src/views/xm/core/xmEnvList/XmEnvListEdit.vue
  78. 6
      src/views/xm/core/xmEnvList/XmEnvListMng.vue
  79. 2
      src/views/xm/core/xmExchange/XmExchangeAdd.vue
  80. 2
      src/views/xm/core/xmExchange/XmExchangeEdit.vue
  81. 8
      src/views/xm/core/xmExchange/XmExchangeMng.vue
  82. 2
      src/views/xm/core/xmFile/XmFileAdd.vue
  83. 2
      src/views/xm/core/xmFile/XmFileEdit.vue
  84. 6
      src/views/xm/core/xmFile/XmFileMng.vue
  85. 4
      src/views/xm/core/xmGroup/XmGroupMng.vue
  86. 4
      src/views/xm/core/xmGroup/XmGroupSelect.vue
  87. 8
      src/views/xm/core/xmGroupState/XmGroupStateMng.vue
  88. 4
      src/views/xm/core/xmIteration/XmIterationAdd.vue
  89. 4
      src/views/xm/core/xmIteration/XmIterationEdit.vue
  90. 20
      src/views/xm/core/xmIteration/XmIterationMng.vue
  91. 4
      src/views/xm/core/xmIterationMenu/XmIterationMenuAdd.vue
  92. 4
      src/views/xm/core/xmIterationMenu/XmIterationMenuEdit.vue
  93. 12
      src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue
  94. 2
      src/views/xm/core/xmIterationState/XmIterationStateAdd.vue
  95. 6
      src/views/xm/core/xmIterationState/XmIterationStateShow.vue
  96. 8
      src/views/xm/core/xmMenu/XmMenuAdd.vue
  97. 6
      src/views/xm/core/xmMenu/XmMenuEdit.vue
  98. 16
      src/views/xm/core/xmMenu/XmMenuMng.vue
  99. 4
      src/views/xm/core/xmMenu/XmMenuMngBatch.vue
  100. 2
      src/views/xm/core/xmMenu/XmMenuRichDetail.vue

5
src/views/example/table/complexTable.vue

@ -237,10 +237,7 @@ export default {
this.getList() this.getList()
}, },
handleModifyStatus(row, status) { handleModifyStatus(row, status) {
this.$message({showClose: true,
message: '操作成功',
type: 'success'
})
this.$notify({position:'bottom-left',showClose: true,message: '操作成功',type: 'success'})
row.status = status row.status = status
}, },
resetTemp() { resetTemp() {

4
src/views/example/table/inlineEditTable.vue

@ -100,7 +100,7 @@ export default {
cancelEdit(row) { cancelEdit(row) {
row.title = row.originalTitle row.title = row.originalTitle
row.edit = false row.edit = false
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: 'The title has been restored to the original value', message: 'The title has been restored to the original value',
type: 'warning' type: 'warning'
}) })
@ -108,7 +108,7 @@ export default {
confirmEdit(row) { confirmEdit(row) {
row.edit = false row.edit = false
row.originalTitle = row.title row.originalTitle = row.title
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: 'The title has been edited', message: 'The title has been edited',
type: 'success' type: 'success'
}) })

18
src/views/login/BranchAdd.vue

@ -181,16 +181,16 @@
if(tips.isOk){ if(tips.isOk){
this.$emit('submit',res.data.data );// @submit="afterAddSubmit" this.$emit('submit',res.data.data );// @submit="afterAddSubmit"
} }
this.$message({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(() => this.load.add=false); }).catch(() => this.load.add=false);
}else{ }else{
this.$message({showClose: true, message: "该公司名已注册,不可以使用", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "该公司名已注册,不可以使用", type: 'error' });
return; return;
} }
} }
}) })
}else{ }else{
this.$message({showClose: true, message: "公司名必须6个字以上", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "公司名必须6个字以上", type: 'error' });
return; return;
} }
@ -219,7 +219,7 @@
}) })
}else{ }else{
this.load.list=false; this.load.list=false;
this.$message({showClose: true, message: "最少输入两个字", type: 'info' });
this.$notify({position:'bottom-left',showClose:true,message: "最少输入两个字", type: 'info' });
return; return;
} }
}, },
@ -231,11 +231,11 @@
addUserJoinBranchRequire(params).then(res=>{ addUserJoinBranchRequire(params).then(res=>{
var tips = res.data.tips; var tips = res.data.tips;
if(tips.isOk){ if(tips.isOk){
this.$message({showClose: true, message:tips.msg, type: 'success' });
this.$notify({position:'bottom-left',showClose:true,message:tips.msg, type: 'success' });
//this.$emit('submit',res.data.data );// @submit="afterAddSubmit" //this.$emit('submit',res.data.data );// @submit="afterAddSubmit"
return; return;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
}) })
@ -251,16 +251,16 @@
listBranchNoAuth(params).then(res=>{ listBranchNoAuth(params).then(res=>{
if(res.data.tips.isOk){ if(res.data.tips.isOk){
if(res.data.data.length<=0){ if(res.data.data.length<=0){
this.$message({showClose: true, message: "该公司名未注册,可以使用", type: 'success' });
this.$notify({position:'bottom-left',showClose:true,message: "该公司名未注册,可以使用", type: 'success' });
return; return;
}else{ }else{
this.$message({showClose: true, message: "该公司名已注册,不可以使用", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "该公司名已注册,不可以使用", type: 'error' });
return; return;
} }
} }
}) })
}else{ }else{
this.$message({showClose: true, message: "最少输入两个字", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "最少输入两个字", type: 'error' });
return; return;
} }
} }

4
src/views/mdp/arc/archiveAttachment/AttachmentUpload.vue

@ -249,12 +249,12 @@ export default {
handleBeforeUpload(file) { handleBeforeUpload(file) {
let files = this.fileList.filter(i => i.name == file.name); let files = this.fileList.filter(i => i.name == file.name);
if (files.length > 0) { if (files.length > 0) {
this.$message({showClose: true, message: "文件已经存在", type: "warning" });
this.$notify({position:'bottom-left',showClose:true,message: "文件已经存在", type: "warning" });
return false; return false;
} else { } else {
if (file.size > 1024 * 1024 * 4) { if (file.size > 1024 * 1024 * 4) {
//4M //4M
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: message:
"文件大小为" + "文件大小为" +
file.size / (1024 * 1024) + file.size / (1024 * 1024) +

2
src/views/mdp/arc/category/CategoryTree.vue

@ -288,7 +288,7 @@
this.treeData=res.data.data; this.treeData=res.data.data;
console.log("this.treeData----"+JSON.stringify(this.treeData)); console.log("this.treeData----"+JSON.stringify(this.treeData));
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error'});
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error'});
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {

28
src/views/mdp/arc/tag/TagMng.vue

@ -325,7 +325,7 @@
} }
this.convertTags = convert; this.convertTags = convert;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: 'error' type: 'error'
}); });
@ -378,7 +378,7 @@
this.pageInfo.count = true; this.pageInfo.count = true;
this.getTags(); this.getTags();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });
@ -399,7 +399,7 @@
this.pageInfo.count = true; this.pageInfo.count = true;
this.getTags(); this.getTags();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });
@ -421,7 +421,7 @@
addTagMethod(index) { addTagMethod(index) {
if (!this.userInfo.isPlatformAdmin && !this.userInfo.isSuperAdmin) { if (!this.userInfo.isPlatformAdmin && !this.userInfo.isSuperAdmin) {
if (this.isPub == '1') { if (this.isPub == '1') {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "不是平台管理员,不允许增加公共标签", message: "不是平台管理员,不允许增加公共标签",
type: 'error' type: 'error'
}); });
@ -431,7 +431,7 @@
if (this.convertTags.some(i => { if (this.convertTags.some(i => {
return i.values.some(tag => tag.tagName == this.convertTags[index].showAddButtonInputValue) return i.values.some(tag => tag.tagName == this.convertTags[index].showAddButtonInputValue)
})) { })) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "标签已经存在", message: "标签已经存在",
type: 'error' type: 'error'
}); });
@ -439,7 +439,7 @@
} }
if (!this.convertTags[index].pubc) { if (!this.convertTags[index].pubc) {
if (this.isPub == '1') { if (this.isPub == '1') {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "该分类不是公共分类,不能添加公共标签", message: "该分类不是公共分类,不能添加公共标签",
type: 'error' type: 'error'
}); });
@ -477,7 +477,7 @@
this.convertTags[index].showAddButtonInputValue = ''; this.convertTags[index].showAddButtonInputValue = '';
this.convertTags[index].values.push(json); this.convertTags[index].values.push(json);
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });
@ -487,7 +487,7 @@
delTagMethod(tagId, index, valueIndex) { delTagMethod(tagId, index, valueIndex) {
if (!this.userInfo.isPlatformAdmin && !this.userInfo.isSuperAdmin) { if (!this.userInfo.isPlatformAdmin && !this.userInfo.isSuperAdmin) {
if (this.convertTags[index].values.some(i => i.pubTag == '1' && i.tagId == tagId)) { if (this.convertTags[index].values.some(i => i.pubTag == '1' && i.tagId == tagId)) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "公共标签不允许删除", message: "公共标签不允许删除",
type: 'error' type: 'error'
}); });
@ -517,7 +517,7 @@
this.convertTags[index].values.splice(valueIndex, 1); this.convertTags[index].values.splice(valueIndex, 1);
/*this.getTags();*/ /*this.getTags();*/
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });
@ -535,7 +535,7 @@
let that = this; let that = this;
if (!(this.userInfo.isPlatformAdmin || this.userInfo.isSuperAdmin)) { if (!(this.userInfo.isPlatformAdmin || this.userInfo.isSuperAdmin)) {
if (this.isPub == '1') { if (this.isPub == '1') {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "你不是平台管理员不能添加公共标签分类", message: "你不是平台管理员不能添加公共标签分类",
type: 'error' type: 'error'
}); });
@ -544,7 +544,7 @@
} }
if (this.convertTags.some(i => i.categoryName == this.needAddTagCategoryNameInputValue)) { if (this.convertTags.some(i => i.categoryName == this.needAddTagCategoryNameInputValue)) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "标签分类已经存在", message: "标签分类已经存在",
type: 'error' type: 'error'
}); });
@ -575,7 +575,7 @@
} }
this.convertTags.push(json); this.convertTags.push(json);
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });
@ -610,7 +610,7 @@
} }
if (!this.userInfo.isPlatformAdmin && !this.userInfo.isSuperAdmin) { if (!this.userInfo.isPlatformAdmin && !this.userInfo.isSuperAdmin) {
if (this.convertTags.some(i => i.pubc == '1' && i.categoryId == categoryId)) { if (this.convertTags.some(i => i.pubc == '1' && i.categoryId == categoryId)) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "公共分类不允许删除", message: "公共分类不允许删除",
type: 'error' type: 'error'
}); });
@ -630,7 +630,7 @@
this.convertTags.splice(index, 1); this.convertTags.splice(index, 1);
/*this.getTags();*/ /*this.getTags();*/
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });

8
src/views/mdp/form/formData/FormData.vue

@ -307,7 +307,7 @@
let deptids=this.$refs['dept_'+item.fieldIdCamel][0].$refs.deptTree.getCheckedKeys(); let deptids=this.$refs['dept_'+item.fieldIdCamel][0].$refs.deptTree.getCheckedKeys();
if(item.isRequired=='1'){ if(item.isRequired=='1'){
if(!deptids||deptids.length<=0){ if(!deptids||deptids.length<=0){
this.$message({showClose: true, message: item.fieldTitle+'不能为空', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: item.fieldTitle+'不能为空', type: 'error' });
checkOk=false; checkOk=false;
return; return;
} }
@ -316,7 +316,7 @@
if(item.isMultiple=='1' && item.extFieldType!='dept'){ if(item.isMultiple=='1' && item.extFieldType!='dept'){
if(item.isRequired=='1'){ if(item.isRequired=='1'){
if(!this.multipleFieldsData[item.fieldIdCamel]||this.multipleFieldsData[item.fieldIdCamel].length<=0){ if(!this.multipleFieldsData[item.fieldIdCamel]||this.multipleFieldsData[item.fieldIdCamel].length<=0){
this.$message({showClose: true, message: item.fieldTitle+'不能为空', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: item.fieldTitle+'不能为空', type: 'error' });
checkOk=false; checkOk=false;
return; return;
} }
@ -422,7 +422,7 @@
} }
this.$emit('submit',params);// @submit="afterAddSubmit" this.$emit('submit',params);// @submit="afterAddSubmit"
//this.$message({showClose: true, message: "2", type: 'success' });
//this.$notify({position:'bottom-left',showClose:true,message: "2", type: 'success' });
//console.log("params----------"+JSON.stringify(params)); //console.log("params----------"+JSON.stringify(params));
//return params; //return params;
@ -434,7 +434,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.editLoading = false; this.editLoading = false;
}); });

2
src/views/mdp/form/formData/FormDataAdd.vue

@ -88,7 +88,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit',formData);// @submit="afterAddSubmit" this.$emit('submit',formData);// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.addLoading = false; this.addLoading = false;
}); });

2
src/views/mdp/form/formData/FormDataEdit.vue

@ -78,7 +78,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit',formData);// @submit="afterAddSubmit" this.$emit('submit',formData);// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.editLoading = false; this.editLoading = false;
}); });

20
src/views/mdp/form/formData/FormDataMng.vue

@ -430,7 +430,7 @@
} else{ } else{
if(this.formDefSelected==null){ if(this.formDefSelected==null){
this.$message({showClose: true, message: '请先选择表单', type: 'info' });
this.$notify({position:'bottom-left',showClose:true,message: '请先选择表单', type: 'info' });
return; return;
} }
@ -460,7 +460,7 @@
let tips=this.checkFormQueryQx(this.formQx,params.userid,params.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormQueryQx(this.formQx,params.userid,params.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
@ -484,7 +484,7 @@
this.pageInfo.count = false; this.pageInfo.count = false;
this.formDatas = res.data.data this.formDatas = res.data.data
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -497,7 +497,7 @@
showEdit: function ( row,index ) { showEdit: function ( row,index ) {
let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
this.editFormVisible = true; this.editFormVisible = true;
@ -523,16 +523,16 @@
//formData //formData
handleDel: function (row,index) { handleDel: function (row,index) {
if(row.flowState=='1'){ if(row.flowState=='1'){
this.$message({showClose: true, message: '数据审核中,不允许删除', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '数据审核中,不允许删除', type: 'error' });
return; return;
} }
if(row.flowState=='2'){ if(row.flowState=='2'){
this.$message({showClose: true, message: '数据已审核通过,不允许删除', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '数据已审核通过,不允许删除', type: 'error' });
return; return;
} }
let tips=this.checkFormDelQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormDelQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
this.$confirm('确认删除该记录吗?', '提示', { this.$confirm('确认删除该记录吗?', '提示', {
@ -547,7 +547,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getFormDatas(); this.getFormDatas();
} }
this.$message({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(() => { }).catch(() => {
@ -569,7 +569,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getFormDatas(); this.getFormDatas();
} }
this.$message({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(() => { }).catch(() => {
this.listLoading = false; this.listLoading = false;
@ -612,7 +612,7 @@
this.formFields = res.data.data; this.formFields = res.data.data;
this.getOptions2(); this.getOptions2();
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}).catch(() => { }).catch(() => {

36
src/views/mdp/form/formData/FormDataMngForFlow.vue

@ -189,14 +189,14 @@
that.$emit("submit",formDatas) that.$emit("submit",formDatas)
return; return;
}else{ }else{
this.$message({showClose: true, message: '请补充智能表单数据', type: 'info' });
this.$notify({position:'bottom-left',showClose:true,message: '请补充智能表单数据', type: 'info' });
return; return;
} }
}); });
return; return;
}else{ }else{
if(formDatas.length<=0){ if(formDatas.length<=0){
this.$message({showClose: true, message: '请先选择要加入审批流的智能表单数据', type: 'info' });
this.$notify({position:'bottom-left',showClose:true,message: '请先选择要加入审批流的智能表单数据', type: 'info' });
}else{ }else{
formDatas.forEach(i=>{ formDatas.forEach(i=>{
i.flowAction="join" i.flowAction="join"
@ -358,7 +358,7 @@
this.editForm=this.procFormDatas[0]; this.editForm=this.procFormDatas[0];
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -496,7 +496,7 @@
if(this.formDefSelected!=null){ if(this.formDefSelected!=null){
params.formId=this.formDefSelected.id; params.formId=this.formDefSelected.id;
}else{ }else{
this.$message({showClose: true, message: '没有关联智能表单,无法查询表单数据', type: 'info' });
this.$notify({position:'bottom-left',showClose:true,message: '没有关联智能表单,无法查询表单数据', type: 'info' });
return; return;
} }
if(this.formDataIds){ if(this.formDataIds){
@ -508,7 +508,7 @@
} }
let tips=this.checkFormQueryQx(this.formQx,params.userid,params.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormQueryQx(this.formQx,params.userid,params.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
//params.flowState="0" //params.flowState="0"
@ -534,7 +534,7 @@
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -547,7 +547,7 @@
showEdit: function ( row,index ) { showEdit: function ( row,index ) {
let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
this.editFormVisible = true; this.editFormVisible = true;
@ -560,7 +560,7 @@
}, },
startProc: function() { startProc: function() {
if(this.sels.length<1){ if(this.sels.length<1){
this.$message({showClose: true, message: "请至少选择一条数据发审", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "请至少选择一条数据发审", type: 'error' });
return; return;
} }
let extVars={ids:this.sels.map(i=>i.id),formId:this.formDefSelected.id} let extVars={ids:this.sels.map(i=>i.id),formId:this.formDefSelected.id}
@ -578,17 +578,17 @@
joinToProc: function(row,index){ joinToProc: function(row,index){
let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
if(this.procFormDatas.some(i=>i.id==row.id)){ if(this.procFormDatas.some(i=>i.id==row.id)){
this.$message({showClose: true, message: '该数据已在审核单中', type: 'info'});
this.$notify({position:'bottom-left',showClose:true,message: '该数据已在审核单中', type: 'info'});
}else{ }else{
this.$nextTick(() => { this.$nextTick(() => {
this.formDatas.splice(index, 1); this.formDatas.splice(index, 1);
this.delProcFormDatas=this.delProcFormDatas.filter(i=>i.id!=row.id) this.delProcFormDatas=this.delProcFormDatas.filter(i=>i.id!=row.id)
this.procFormDatas.push(row) this.procFormDatas.push(row)
this.$message({showClose: true, message: '添加成功', type: 'info'});
this.$notify({position:'bottom-left',showClose:true,message: '添加成功', type: 'info'});
}); });
} }
@ -596,7 +596,7 @@
removeFromProc: function(row,index){ removeFromProc: function(row,index){
let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
if(this.procFormDatas.some(i=>i.id==row.id)){ if(this.procFormDatas.some(i=>i.id==row.id)){
@ -606,11 +606,11 @@
this.delProcFormDatas.push(row) this.delProcFormDatas.push(row)
} }
this.formDatas.push(row); this.formDatas.push(row);
this.$message({showClose: true, message: '移除成功', type: 'info'});
this.$notify({position:'bottom-left',showClose:true,message: '移除成功', type: 'info'});
}); });
}else{ }else{
this.$message({showClose: true, message: '没有该条数据', type: 'error'});
this.$notify({position:'bottom-left',showClose:true,message: '没有该条数据', type: 'error'});
} }
}, },
afterAddSubmit(){ afterAddSubmit(){
@ -633,7 +633,7 @@
handleDel: function (row,index) { handleDel: function (row,index) {
let tips=this.checkFormDelQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormDelQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
this.$confirm('确认删除该记录吗?', '提示', { this.$confirm('确认删除该记录吗?', '提示', {
@ -648,7 +648,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getFormDatas(); this.getFormDatas();
} }
this.$message({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(() => { }).catch(() => {
@ -670,7 +670,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getFormDatas(); this.getFormDatas();
} }
this.$message({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(() => { }).catch(() => {
this.listLoading = false; this.listLoading = false;
@ -726,7 +726,7 @@
this.getOptions2(); this.getOptions2();
this.$emit('formFieldsLoad',this.formFields); this.$emit('formFieldsLoad',this.formFields);
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}).catch(() => { }).catch(() => {
this.listLoading=false; this.listLoading=false;

4
src/views/mdp/form/formData/FormDataMngForFlowForm.vue

@ -141,7 +141,7 @@
this.editForm=res.data.data[0] this.editForm=res.data.data[0]
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -169,7 +169,7 @@
this.getOptions2(); this.getOptions2();
this.$emit('formFieldsLoad',this.formFields); this.$emit('formFieldsLoad',this.formFields);
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}).catch(() => { }).catch(() => {
this.listLoading=false; this.listLoading=false;

36
src/views/mdp/form/formData/FormDataMngForFlowTable.vue

@ -189,14 +189,14 @@
that.$emit("submit",formDatas) that.$emit("submit",formDatas)
return; return;
}else{ }else{
this.$message({showClose: true, message: '请补充智能表单数据', type: 'info' });
this.$notify({position:'bottom-left',showClose:true,message: '请补充智能表单数据', type: 'info' });
return; return;
} }
}); });
return; return;
}else{ }else{
if(formDatas.length<=0){ if(formDatas.length<=0){
this.$message({showClose: true, message: '请先选择要加入审批流的智能表单数据', type: 'info' });
this.$notify({position:'bottom-left',showClose:true,message: '请先选择要加入审批流的智能表单数据', type: 'info' });
}else{ }else{
formDatas.forEach(i=>{ formDatas.forEach(i=>{
i.flowAction="join" i.flowAction="join"
@ -358,7 +358,7 @@
this.editForm=this.procFormDatas[0]; this.editForm=this.procFormDatas[0];
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -496,7 +496,7 @@
if(this.formDefSelected!=null){ if(this.formDefSelected!=null){
params.formId=this.formDefSelected.id; params.formId=this.formDefSelected.id;
}else{ }else{
this.$message({showClose: true, message: '没有关联智能表单,无法查询表单数据', type: 'info' });
this.$notify({position:'bottom-left',showClose:true,message: '没有关联智能表单,无法查询表单数据', type: 'info' });
return; return;
} }
if(this.formDataIds){ if(this.formDataIds){
@ -508,7 +508,7 @@
} }
let tips=this.checkFormQueryQx(this.formQx,params.userid,params.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormQueryQx(this.formQx,params.userid,params.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
//params.flowState="0" //params.flowState="0"
@ -534,7 +534,7 @@
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -547,7 +547,7 @@
showEdit: function ( row,index ) { showEdit: function ( row,index ) {
let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
this.editFormVisible = true; this.editFormVisible = true;
@ -560,7 +560,7 @@
}, },
startProc: function() { startProc: function() {
if(this.sels.length<1){ if(this.sels.length<1){
this.$message({showClose: true, message: "请至少选择一条数据发审", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "请至少选择一条数据发审", type: 'error' });
return; return;
} }
let extVars={ids:this.sels.map(i=>i.id),formId:this.formDefSelected.id} let extVars={ids:this.sels.map(i=>i.id),formId:this.formDefSelected.id}
@ -578,17 +578,17 @@
joinToProc: function(row,index){ joinToProc: function(row,index){
let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
if(this.procFormDatas.some(i=>i.id==row.id)){ if(this.procFormDatas.some(i=>i.id==row.id)){
this.$message({showClose: true, message: '该数据已在审核单中', type: 'info'});
this.$notify({position:'bottom-left',showClose:true,message: '该数据已在审核单中', type: 'info'});
}else{ }else{
this.$nextTick(() => { this.$nextTick(() => {
this.formDatas.splice(index, 1); this.formDatas.splice(index, 1);
this.delProcFormDatas=this.delProcFormDatas.filter(i=>i.id!=row.id) this.delProcFormDatas=this.delProcFormDatas.filter(i=>i.id!=row.id)
this.procFormDatas.push(row) this.procFormDatas.push(row)
this.$message({showClose: true, message: '添加成功', type: 'info'});
this.$notify({position:'bottom-left',showClose:true,message: '添加成功', type: 'info'});
}); });
} }
@ -596,7 +596,7 @@
removeFromProc: function(row,index){ removeFromProc: function(row,index){
let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormEditQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
if(this.procFormDatas.some(i=>i.id==row.id)){ if(this.procFormDatas.some(i=>i.id==row.id)){
@ -606,11 +606,11 @@
this.delProcFormDatas.push(row) this.delProcFormDatas.push(row)
} }
this.formDatas.push(row); this.formDatas.push(row);
this.$message({showClose: true, message: '移除成功', type: 'info'});
this.$notify({position:'bottom-left',showClose:true,message: '移除成功', type: 'info'});
}); });
}else{ }else{
this.$message({showClose: true, message: '没有该条数据', type: 'error'});
this.$notify({position:'bottom-left',showClose:true,message: '没有该条数据', type: 'error'});
} }
}, },
afterAddSubmit(){ afterAddSubmit(){
@ -633,7 +633,7 @@
handleDel: function (row,index) { handleDel: function (row,index) {
let tips=this.checkFormDelQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid) let tips=this.checkFormDelQx(this.formQx,row.userid,row.deptid,this.userInfo.userid,this.userInfo.deptid,this.userInfo.roleid)
if(tips.isOk==false){ if(tips.isOk==false){
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
return; return;
} }
this.$confirm('确认删除该记录吗?', '提示', { this.$confirm('确认删除该记录吗?', '提示', {
@ -648,7 +648,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getFormDatas(); this.getFormDatas();
} }
this.$message({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(() => { }).catch(() => {
@ -670,7 +670,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getFormDatas(); this.getFormDatas();
} }
this.$message({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(() => { }).catch(() => {
this.listLoading = false; this.listLoading = false;
@ -726,7 +726,7 @@
this.getOptions2(); this.getOptions2();
this.$emit('formFieldsLoad',this.formFields); this.$emit('formFieldsLoad',this.formFields);
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}).catch(() => { }).catch(() => {
this.listLoading=false; this.listLoading=false;

4
src/views/mdp/form/formData/FormDataSet.vue

@ -106,7 +106,7 @@
if(tips.isOk){ if(tips.isOk){
this.formFields = res.data.data; this.formFields = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.addLoading=false; this.addLoading=false;
}).catch(() => { }).catch(() => {
@ -127,7 +127,7 @@
if(tips.isOk){ if(tips.isOk){
this.addForm = res.data.data[0]; this.addForm = res.data.data[0];
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}).catch(() => { }).catch(() => {

6
src/views/mdp/form/formDef/FormDefAdd.vue

@ -74,11 +74,11 @@
this.$refs.addForm.validate((valid) => { this.$refs.addForm.validate((valid) => {
if (valid) { if (valid) {
if(this.addForm.formName==''){ if(this.addForm.formName==''){
this.$message({showClose: true, message: '表单名称不能为空', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '表单名称不能为空', type: 'error' });
return; return;
} }
if(this.addForm.categoryId==null || this.addForm.categoryId=='' ){ if(this.addForm.categoryId==null || this.addForm.categoryId=='' ){
this.$message({showClose: true, message: '归属分类不能为空', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '归属分类不能为空', type: 'error' });
return; return;
} }
this.$confirm('确认提交吗?', '提示', {}).then(() => { this.$confirm('确认提交吗?', '提示', {}).then(() => {
@ -97,7 +97,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.addLoading = false; this.addLoading = false;
}); });

20
src/views/mdp/form/formDef/FormDefEdit.vue

@ -78,16 +78,16 @@
this.$refs.editForm.validate((valid) => { this.$refs.editForm.validate((valid) => {
if (valid) { if (valid) {
if(this.editForm.formName==''){ if(this.editForm.formName==''){
this.$message({showClose: true, message: '表单名称不能为空', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '表单名称不能为空', type: 'error' });
return; return;
} }
if(this.editForm.formName==''){ if(this.editForm.formName==''){
this.$message({showClose: true, message: '表单名称不能为空', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '表单名称不能为空', type: 'error' });
return; return;
} }
if(this.editForm.categoryId==null || this.editForm.categoryId=='' ){ if(this.editForm.categoryId==null || this.editForm.categoryId=='' ){
this.$message({showClose: true, message: '归属分类不能为空', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '归属分类不能为空', type: 'error' });
return; return;
} }
this.$confirm('确认提交吗?', '提示', {}).then(() => { this.$confirm('确认提交吗?', '提示', {}).then(() => {
@ -100,7 +100,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.addLoading = false; this.addLoading = false;
}); });
@ -113,26 +113,26 @@
this.$refs.editForm.validate((valid) => { this.$refs.editForm.validate((valid) => {
if (valid) { if (valid) {
if(this.editForm.formName==''){ if(this.editForm.formName==''){
this.$message({showClose: true, message: '表单名称不能为空', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '表单名称不能为空', type: 'error' });
return; return;
} }
if(this.editForm.formName==''){ if(this.editForm.formName==''){
this.$message({showClose: true, message: '表单名称不能为空', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '表单名称不能为空', type: 'error' });
return; return;
} }
if(this.editForm.categoryId==null || this.editForm.categoryId=='' ){ if(this.editForm.categoryId==null || this.editForm.categoryId=='' ){
this.$message({showClose: true, message: '归属分类不能为空', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '归属分类不能为空', type: 'error' });
return; return;
} }
if(this.fields.length==0 ){ if(this.fields.length==0 ){
this.$message({showClose: true, message: '最少需要定义一个字段', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '最少需要定义一个字段', type: 'error' });
return; return;
} }
if(this.fields.length>15){ if(this.fields.length>15){
this.$message({showClose: true, message: '最多支持15个字段', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '最多支持15个字段', type: 'error' });
return; return;
} }
this.$confirm('确认提交吗?', '提示', {}).then(() => { this.$confirm('确认提交吗?', '提示', {}).then(() => {
@ -151,7 +151,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.addLoading = false; this.addLoading = false;
}); });

2
src/views/mdp/form/formDef/FormDefList.vue

@ -177,7 +177,7 @@
this.rowClick(this.formDefs[0], null, null); this.rowClick(this.formDefs[0], null, null);
} }
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {

6
src/views/mdp/form/formDef/FormDefMng.vue

@ -257,7 +257,7 @@
this.pageInfo.total = res.data.total; this.pageInfo.total = res.data.total;
this.formDefs = res.data.data; this.formDefs = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -302,7 +302,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getFormDefs(); this.getFormDefs();
} }
this.$message({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(() => { }).catch(() => {
@ -323,7 +323,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getFormDefs(); this.getFormDefs();
} }
this.$message({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(() => { }).catch(() => {
this.listLoading = false; this.listLoading = false;

2
src/views/mdp/form/formField/FormField.vue

@ -612,7 +612,7 @@
this.selectedFields = res.data.data; this.selectedFields = res.data.data;
} }
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.addLoading=false; this.addLoading=false;
}).catch(() => { }).catch(() => {

6
src/views/mdp/form/formQx/FormQxSet.vue

@ -167,7 +167,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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.add=false); }).catch( err => this.load.add=false);
}else{ }else{
editFormQx(params).then((res) => { editFormQx(params).then((res) => {
@ -177,7 +177,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({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); }).catch( err =>this.load.edit=false);
} }
@ -236,7 +236,7 @@
} }
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.load.list = false; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );

2
src/views/mdp/form/formView/FormViewAdd.vue

@ -92,7 +92,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.addLoading = false; this.addLoading = false;
}); });

2
src/views/mdp/form/formView/FormViewEdit.vue

@ -92,7 +92,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.editLoading = false; this.editLoading = false;
}); });

6
src/views/mdp/form/formView/FormViewMng.vue

@ -158,7 +158,7 @@
this.pageInfo.total = res.data.total; this.pageInfo.total = res.data.total;
this.formViews = res.data.data; this.formViews = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -203,7 +203,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getFormViews(); this.getFormViews();
} }
this.$message({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(() => { }).catch(() => {
@ -225,7 +225,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getFormViews(); this.getFormViews();
} }
this.$message({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(() => { }).catch(() => {
this.listLoading = false; this.listLoading = false;

2
src/views/mdp/meta/category/CategoryAdd.vue

@ -93,7 +93,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.load.add=false this.load.add=false
}); });

2
src/views/mdp/meta/category/CategoryEdit.vue

@ -93,7 +93,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.load.edit=false this.load.edit=false
}); });

8
src/views/mdp/meta/category/CategoryMng.vue

@ -146,12 +146,12 @@
this.pageInfo.total = res.data.data.total;this.pageInfo.count=false; this.pageInfo.total = res.data.data.total;this.pageInfo.count=false;
this.categorys = res.data.data; this.categorys = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.load.list = false; this.load.list = false;
}).catch(() => { }).catch(() => {
this.load.list = false; this.load.list = false;
//this.$message({showClose: true, message: '', type: 'error' });
//this.$notify({position:'bottom-left',showClose:true,message: '', type: 'error' });
}); });
}, },
@ -192,7 +192,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getCategorys(); this.getCategorys();
} }
this.$message({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(() => { }).catch(() => {
this.load.del=false; this.load.del=false;
@ -212,7 +212,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getCategorys(); this.getCategorys();
} }
this.$message({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(() => { }).catch(() => {
this.load.del=false; this.load.del=false;

2
src/views/mdp/meta/item/ItemAdd.vue

@ -104,7 +104,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.load.add=false this.load.add=false
}); });

2
src/views/mdp/meta/item/ItemEdit.vue

@ -104,7 +104,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.load.edit=false this.load.edit=false
}); });

8
src/views/mdp/meta/item/ItemMng.vue

@ -152,12 +152,12 @@
this.pageInfo.total = res.data.data.total;this.pageInfo.count=false; this.pageInfo.total = res.data.data.total;this.pageInfo.count=false;
this.items = res.data.data; this.items = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.load.list = false; this.load.list = false;
}).catch(() => { }).catch(() => {
this.load.list = false; this.load.list = false;
//this.$message({showClose: true, message: '', type: 'error' });
//this.$notify({position:'bottom-left',showClose:true,message: '', type: 'error' });
}); });
}, },
@ -203,7 +203,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getItems(); this.getItems();
} }
this.$message({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(() => { }).catch(() => {
this.load.del=false; this.load.del=false;
@ -223,7 +223,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getItems(); this.getItems();
} }
this.$message({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(() => { }).catch(() => {
this.load.del=false; this.load.del=false;

2
src/views/mdp/meta/itemOption/ItemOptionAdd.vue

@ -117,7 +117,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.load.add=false this.load.add=false
}); });

2
src/views/mdp/meta/itemOption/ItemOptionEdit.vue

@ -121,7 +121,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.load.edit=false this.load.edit=false
}); });

10
src/views/mdp/meta/itemOption/ItemOptionMng.vue

@ -157,12 +157,12 @@
this.pageInfo.total = res.data.data.total;this.pageInfo.count=false; this.pageInfo.total = res.data.data.total;this.pageInfo.count=false;
this.itemOptions = res.data.data; this.itemOptions = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.load.list = false; this.load.list = false;
}).catch(() => { }).catch(() => {
this.load.list = false; this.load.list = false;
//this.$message({showClose: true, message: '', type: 'error' });
//this.$notify({position:'bottom-left',showClose:true,message: '', type: 'error' });
}); });
}, },
@ -204,7 +204,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getItemOptions(); this.getItemOptions();
} }
this.$message({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(() => { }).catch(() => {
this.load.del=false; this.load.del=false;
@ -224,7 +224,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getItemOptions(); this.getItemOptions();
} }
this.$message({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(() => { }).catch(() => {
this.load.del=false; this.load.del=false;
@ -259,7 +259,7 @@
if(tips.isOk){ if(tips.isOk){
this.itemOptions.push(res.data.data); this.itemOptions.push(res.data.data);
} }
this.$message({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(() => { }).catch(() => {
this.load.add=false this.load.add=false
}); });

2
src/views/mdp/meta/sysParam/ItemOptionAdd.vue

@ -109,7 +109,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.load.add=false this.load.add=false
}); });

2
src/views/mdp/meta/sysParam/ItemOptionEdit.vue

@ -109,7 +109,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.load.edit=false this.load.edit=false
}); });

10
src/views/mdp/meta/sysParam/SysParamMng.vue

@ -152,12 +152,12 @@
this.pageInfo.total = res.data.data.total;this.pageInfo.count=false; this.pageInfo.total = res.data.data.total;this.pageInfo.count=false;
this.itemOptions = res.data.data; this.itemOptions = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.load.list = false; this.load.list = false;
}).catch(() => { }).catch(() => {
this.load.list = false; this.load.list = false;
//this.$message({showClose: true, message: '', type: 'error' });
//this.$notify({position:'bottom-left',showClose:true,message: '', type: 'error' });
}); });
}, },
@ -199,7 +199,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getItemOptions(); this.getItemOptions();
} }
this.$message({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(() => { }).catch(() => {
this.load.del=false; this.load.del=false;
@ -219,7 +219,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getItemOptions(); this.getItemOptions();
} }
this.$message({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(() => { }).catch(() => {
this.load.del=false; this.load.del=false;
@ -248,7 +248,7 @@
if(tips.isOk){ if(tips.isOk){
this.itemOptions.push(res.data.data); this.itemOptions.push(res.data.data);
} }
this.$message({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(() => { }).catch(() => {
this.load.add=false this.load.add=false
}); });

24
src/views/mdp/sms/SendSms.vue

@ -192,21 +192,21 @@
sendSmsMethod() { sendSmsMethod() {
let that = this; let that = this;
if (!this.smsTemplatesSelectValue) { if (!this.smsTemplatesSelectValue) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "请选择某个模板", message: "请选择某个模板",
type: 'error' type: 'error'
}); });
return; return;
} }
if (!this.smsSignsSelectValue) { if (!this.smsSignsSelectValue) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "请选择某个签名", message: "请选择某个签名",
type: 'error' type: 'error'
}); });
return; return;
} }
if (!this.mobilesStr) { if (!this.mobilesStr) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "发送对象不能为空", message: "发送对象不能为空",
type: 'error' type: 'error'
}); });
@ -223,7 +223,7 @@
var mobileArr = this.mobilesStr.split(","); var mobileArr = this.mobilesStr.split(",");
if (mobileArr.length > 10) { if (mobileArr.length > 10) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "发送的对象不能超过10个", message: "发送的对象不能超过10个",
type: 'error' type: 'error'
}); });
@ -232,14 +232,14 @@
for (let i = 0; i < mobileArr.length; i++) { for (let i = 0; i < mobileArr.length; i++) {
if (!/^[1](([3][0-9])|([4][5-9])|([5][0-3,5-9])|([6][5,6])|([7][0-8])|([8][0-9])|([9][1,8,9]))[0-9]{8}$/.test( if (!/^[1](([3][0-9])|([4][5-9])|([5][0-3,5-9])|([6][5,6])|([7][0-8])|([8][0-9])|([9][1,8,9]))[0-9]{8}$/.test(
mobileArr[i])) { mobileArr[i])) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: mobileArr[i] + "手机号码不对", message: mobileArr[i] + "手机号码不对",
type: 'error' type: 'error'
}); });
return; return;
} }
if (this.mobilesStr.lastIndexOf(mobileArr[i]) != this.mobilesStr.indexOf(mobileArr[i])) { if (this.mobilesStr.lastIndexOf(mobileArr[i]) != this.mobilesStr.indexOf(mobileArr[i])) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "请填写不同的手机号码进行发送", message: "请填写不同的手机号码进行发送",
type: 'error' type: 'error'
}); });
@ -251,21 +251,21 @@
var reg = /\{\d\}/; var reg = /\{\d\}/;
let smsTemplateVariableCount = this.smsTemplatesSelectValue.text.split(reg).length - 1; let smsTemplateVariableCount = this.smsTemplatesSelectValue.text.split(reg).length - 1;
if (templateParamsArr.length != smsTemplateVariableCount) { if (templateParamsArr.length != smsTemplateVariableCount) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "输入的短信模板参数与短信模板的变量的数目不一致", message: "输入的短信模板参数与短信模板的变量的数目不一致",
type: 'error' type: 'error'
}); });
return; return;
} }
if (this.userNeedReplySmsRadio === '1' && !this.replyEndDay) { if (this.userNeedReplySmsRadio === '1' && !this.replyEndDay) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "如果勾选需要用户回复,必须填写天数", message: "如果勾选需要用户回复,必须填写天数",
type: 'error' type: 'error'
}); });
return; return;
} }
if (this.userNeedReplySmsRadio === '1' && !/^\d+$/.test(this.replyEndDay)) { if (this.userNeedReplySmsRadio === '1' && !/^\d+$/.test(this.replyEndDay)) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "天数必须是正整数", message: "天数必须是正整数",
type: 'error' type: 'error'
}); });
@ -301,7 +301,7 @@
this.sendResultVisible = true; this.sendResultVisible = true;
that.sendResult = res.data.data; that.sendResult = res.data.data;
}; };
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });
@ -326,7 +326,7 @@
if (tips.isOk) { if (tips.isOk) {
this.smsTemplatesOptions = res.data.data; this.smsTemplatesOptions = res.data.data;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: 'error' type: 'error'
}); });
@ -346,7 +346,7 @@
if (tips.isOk) { if (tips.isOk) {
this.smsSignsOptions = res.data.data; this.smsSignsOptions = res.data.data;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: 'error' type: 'error'
}); });

4
src/views/mdp/sys/branch/BranchSelect.vue

@ -133,12 +133,12 @@
this.pageInfo.total = res.data.data.total;this.pageInfo.countSql=false; this.pageInfo.total = res.data.data.total;this.pageInfo.countSql=false;
this.branchs = res.data.data; this.branchs = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.load.list = false; this.load.list = false;
}).catch(() => { }).catch(() => {
this.load.list = false; this.load.list = false;
//this.$message({showClose: true, message: '', type: 'error' });
//this.$notify({position:'bottom-left',showClose:true,message: '', type: 'error' });
}); });
}, },
//branch //branch

2
src/views/mdp/sys/dept/DeptTree.vue

@ -239,7 +239,7 @@
} }
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error'});
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error'});
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {

4
src/views/mdp/sys/post/PostSelectCommon.vue

@ -138,7 +138,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.posts = res.data.data; this.posts = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.load.list = false; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -179,7 +179,7 @@
confirmPostSelect(){ confirmPostSelect(){
if(this.sels.length<=0){ if(this.sels.length<=0){
this.$message({showClose: true, message:'请选择角色', type: 'error'});
this.$notify({position:'bottom-left',showClose:true,message:'请选择角色', type: 'error'});
return; return;
} }
this.load.add=true; this.load.add=true;

4
src/views/mdp/sys/user/UpdateUserInfo.vue

@ -185,7 +185,7 @@ import md5 from "js-md5";
if(tips.isOk){ if(tips.isOk){
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({ message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({ message: tips.msg, type: tips.isOk?'success':'error' });
}).catch(() => { }).catch(() => {
this.editLoading = false; this.editLoading = false;
}); });
@ -198,7 +198,7 @@ import md5 from "js-md5";
if (valid) { if (valid) {
changePassword({oldPassword:md5(this.passwordForm.oldPassword),newPassword:md5(this.passwordForm.newPassword)}).then(res=>{ changePassword({oldPassword:md5(this.passwordForm.oldPassword),newPassword:md5(this.passwordForm.newPassword)}).then(res=>{
var tips = res.data.tips; var tips = res.data.tips;
this.$message({ message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({ message: tips.msg, type: tips.isOk?'success':'error' });
}) })
} }
}) })

10
src/views/mdp/sys/user/UsersSelect.vue

@ -169,7 +169,7 @@
searchUsers(){ searchUsers(){
// //
if(this.isSelectByDept && Object.keys(this.deptTree.deptNodeSelected).length === 0) { if(this.isSelectByDept && Object.keys(this.deptTree.deptNodeSelected).length === 0) {
this.$message({showClose: true, message: "必须先选择一个部门", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "必须先选择一个部门", type: 'error' });
return; return;
} }
@ -218,7 +218,7 @@
this.pageInfo.total = res.data.total;this.pageInfo.count=false; this.pageInfo.total = res.data.total;this.pageInfo.count=false;
this.users = res.data.data; this.users = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
if(this.needSetTableUserChecked==true){ if(this.needSetTableUserChecked==true){
this.setTableUserChecked(); this.setTableUserChecked();
@ -228,7 +228,7 @@
this.load.list = false; this.load.list = false;
}).catch(() => { }).catch(() => {
this.load.list = false; this.load.list = false;
//this.$message({showClose: true, message: '', type: 'error' });
//this.$notify({position:'bottom-left',showClose:true,message: '', type: 'error' });
}); });
}, },
@ -270,12 +270,12 @@
}, },
confirmUsers: function(){ confirmUsers: function(){
if(this.sels.length<1){ if(this.sels.length<1){
this.$message({showClose: true, message: "请选择一个用户", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "请选择一个用户", type: 'error' });
return; return;
} }
if(this.isSingleUser==true){ if(this.isSingleUser==true){
if(this.sels.length!=1){ if(this.sels.length!=1){
this.$message({showClose: true, message: "最多只能选择一个用户", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "最多只能选择一个用户", type: 'error' });
return; return;
} }
} }

2
src/views/mdp/sys/userDept/UserDeptEdit.vue

@ -147,7 +147,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({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((e) => { }).catch((e) => {
console.log(e) console.log(e)
this.load.edit=false this.load.edit=false

2
src/views/mdp/workflow/biz/bizModel/BizModelAdd.vue

@ -114,7 +114,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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.add=false); }).catch( err => this.load.add=false);
}); });
} }

2
src/views/mdp/workflow/biz/bizModel/BizModelEdit.vue

@ -109,7 +109,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({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); }).catch( err =>this.load.edit=false);
}); });
} }

6
src/views/mdp/workflow/biz/bizModel/BizModelMng.vue

@ -163,7 +163,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.bizModels = res.data.data; this.bizModels = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.load.list = false; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -205,7 +205,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getBizModels(); this.getBizModels();
} }
this.$message({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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -223,7 +223,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getBizModels(); this.getBizModels();
} }
this.$message({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 ); }).catch( err => this.load.del=false );
}); });
}, },

10
src/views/mdp/workflow/de/model/ModelMng.vue

@ -177,7 +177,7 @@
this.pageInfo.count=false this.pageInfo.count=false
this.models = res.data.data; this.models = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -223,7 +223,7 @@
this.pageInfo.count=true this.pageInfo.count=true
this.getModels(); this.getModels();
} }
this.$message({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(() => { }).catch(() => {
@ -246,7 +246,7 @@
this.pageInfo.count=true this.pageInfo.count=true
this.getModels(); this.getModels();
} }
this.$message({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(() => { }).catch(() => {
this.listLoading = false; this.listLoading = false;
@ -266,7 +266,7 @@
if(tips.isOk){ if(tips.isOk){
this.getModels(); this.getModels();
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}); });
@ -284,7 +284,7 @@
if(tips.isOk){ if(tips.isOk){
this.getModels(); this.getModels();
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}); });

4
src/views/mdp/workflow/hi/comment/commentStep.vue

@ -101,7 +101,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.addLoading = false; this.addLoading = false;
}); });
@ -130,7 +130,7 @@
this.$emit('get-comments',this.comments) this.$emit('get-comments',this.comments)
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}).catch(() => { }).catch(() => {

6
src/views/mdp/workflow/hi/procinst/ProcinstMng.vue

@ -497,7 +497,7 @@
this.pageInfo.count = false; this.pageInfo.count = false;
this.procinsts = res.data.data; this.procinsts = res.data.data;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: "error" type: "error"
}); });
@ -551,7 +551,7 @@
this.pageInfo.count = true; this.pageInfo.count = true;
this.getProcinsts(); this.getProcinsts();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });
@ -576,7 +576,7 @@
this.pageInfo.total = 0; this.pageInfo.total = 0;
this.getProcinsts(); this.getProcinsts();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });

6
src/views/mdp/workflow/re/deployment/DeploymentMng.vue

@ -222,7 +222,7 @@ export default {
this.pageInfo.total = res.data.total; this.pageInfo.total = res.data.total;
this.deployments = res.data.data; this.deployments = res.data.data;
} else { } else {
this.$message({showClose: true, message: tips.msg, type: "error" });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: "error" });
} }
this.listLoading = false; this.listLoading = false;
}) })
@ -272,7 +272,7 @@ export default {
this.pageInfo.total = 0; this.pageInfo.total = 0;
this.getDeployments(); this.getDeployments();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });
@ -297,7 +297,7 @@ export default {
this.pageInfo.total = 0; this.pageInfo.total = 0;
this.getDeployments(); this.getDeployments();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });

6
src/views/mdp/workflow/re/procdef/ProcdefListForParames.vue

@ -390,7 +390,7 @@ export default {
this.pageInfo.total = res.data.total; this.pageInfo.total = res.data.total;
this.procdefs = res.data.data; this.procdefs = res.data.data;
} else { } else {
this.$message({showClose: true, message: tips.msg, type: "error" });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: "error" });
} }
this.listLoading = false; this.listLoading = false;
}) })
@ -419,7 +419,7 @@ export default {
this.pageInfo.total = 0; this.pageInfo.total = 0;
this.getProcdefs(); this.getProcdefs();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });
@ -444,7 +444,7 @@ export default {
this.pageInfo.total = 0; this.pageInfo.total = 0;
this.getProcdefs(); this.getProcdefs();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });

2
src/views/mdp/workflow/re/procdef/ProcdefListForSimpleStart.vue

@ -275,7 +275,7 @@
} }
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: 'error' type: 'error'
}); });

4
src/views/mdp/workflow/re/procdef/ProcdefListForStart.vue

@ -401,7 +401,7 @@
this.pageInfo.count = false; this.pageInfo.count = false;
this.procdefs = res.data.data; this.procdefs = res.data.data;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: "error" type: "error"
}); });
@ -436,7 +436,7 @@
this.pageInfo.count = true; this.pageInfo.count = true;
this.getProcdefs(); this.getProcdefs();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });

6
src/views/mdp/workflow/re/procdef/ProcdefMng.vue

@ -285,7 +285,7 @@
this.pageInfo.count=false this.pageInfo.count=false
this.procdefs = res.data.data; this.procdefs = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -314,7 +314,7 @@
this.pageInfo.count=true this.pageInfo.count=true
this.getProcdefs(); this.getProcdefs();
} }
this.$message({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(() => { }).catch(() => {
@ -337,7 +337,7 @@
this.pageInfo.count=true this.pageInfo.count=true
this.getProcdefs(); this.getProcdefs();
} }
this.$message({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(() => { }).catch(() => {

6
src/views/mdp/workflow/re/procdef/ProcdefSuspend.vue

@ -375,7 +375,7 @@ export default {
this.pageInfo.count = false; this.pageInfo.count = false;
this.procdefs = res.data.data; this.procdefs = res.data.data;
} else { } else {
this.$message({showClose: true, message: tips.msg, type: "error" });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: "error" });
} }
this.listLoading = false; this.listLoading = false;
}) })
@ -405,7 +405,7 @@ export default {
this.pageInfo.count = true; this.pageInfo.count = true;
this.getProcdefs(); this.getProcdefs();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });
@ -431,7 +431,7 @@ export default {
this.pageInfo.count = true; this.pageInfo.count = true;
this.getProcdefs(); this.getProcdefs();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });

14
src/views/mdp/workflow/re/procdefParames/ProcdefParamesSet.vue

@ -389,7 +389,7 @@
addOrUpdateTemplate(params).then(res=>{ addOrUpdateTemplate(params).then(res=>{
var tips=res.data.tips; var tips=res.data.tips;
this.addLoading = false; this.addLoading = false;
this.$message({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(e=>this.addLoading=false); }).catch(e=>this.addLoading=false);
return; return;
} }
@ -401,7 +401,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.addLoading = false; this.addLoading = false;
}); });
@ -421,7 +421,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
} }
this.$message({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(() => { }).catch(() => {
this.addLoading = false; this.addLoading = false;
}); });
@ -452,7 +452,7 @@
console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxx"); console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxx");
console.log(this.nodeInfosSelectOptions); console.log(this.nodeInfosSelectOptions);
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -568,12 +568,12 @@
if(tips.isOk){ if(tips.isOk){
this.formDefs = res.data.data; this.formDefs = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
this.listLoading = false; this.listLoading = false;
this.$message({showClose: true, message: '访问错误', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '访问错误', type: 'error' });
}); });
}, },
handleCategoryCheckChange(data, checked, indeterminate){ handleCategoryCheckChange(data, checked, indeterminate){
@ -596,7 +596,7 @@
this.nodeInfos=res.data.data; this.nodeInfos=res.data.data;
this.nodeInfosSelectOptions=this.nodeInfos; this.nodeInfosSelectOptions=this.nodeInfos;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}); });
}, },

6
src/views/mdp/workflow/re/procdefParamesTemplate/ProcdefParamesTemplateMng.vue

@ -148,7 +148,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.procdefParamesTemplates = res.data.data; this.procdefParamesTemplates = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.load.list = false; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -190,7 +190,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getProcdefParamesTemplates(); this.getProcdefParamesTemplates();
} }
this.$message({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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -208,7 +208,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getProcdefParamesTemplates(); this.getProcdefParamesTemplates();
} }
this.$message({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 ); }).catch( err => this.load.del=false );
}); });
}, },

26
src/views/mdp/workflow/ru/execution/ExecutionMng.vue

@ -604,7 +604,7 @@
this.pageInfo.count = false; this.pageInfo.count = false;
this.executions = res.data.data; this.executions = res.data.data;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: 'error' type: 'error'
}); });
@ -664,7 +664,7 @@
this.pageInfo.total = 0; this.pageInfo.total = 0;
this.getExecutions(); this.getExecutions();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });
@ -703,7 +703,7 @@
this.pageInfo.total = 0; this.pageInfo.total = 0;
this.getExecutions(); this.getExecutions();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });
@ -730,7 +730,7 @@
this.pageInfo.total = 0; this.pageInfo.total = 0;
this.getExecutions(); this.getExecutions();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });
@ -847,12 +847,12 @@
showSendSms: function() { showSendSms: function() {
if (this.sels.length > 1) { if (this.sels.length > 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: '一次只能给一个人发短信', message: '一次只能给一个人发短信',
type: 'error' type: 'error'
}); });
} else if (this.sels.length < 1) { } else if (this.sels.length < 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: '请选择一条任务', message: '请选择一条任务',
type: 'error' type: 'error'
}); });
@ -868,14 +868,14 @@
}, },
showWeixinTask: function() { showWeixinTask: function() {
if (this.sels.length > 1) { if (this.sels.length > 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: '一次只能给一个人发信', message: '一次只能给一个人发信',
type: 'error' type: 'error'
}); });
this.weixinContentVisible = false; this.weixinContentVisible = false;
return false; return false;
} else if (this.sels.length < 1) { } else if (this.sels.length < 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: '请选择一条任务', message: '请选择一条任务',
type: 'error' type: 'error'
}); });
@ -896,7 +896,7 @@
this.weixinContent = task.assigneeName + "您好,您有任务【" + task.mainTitle + "-" + task.taskName + this.weixinContent = task.assigneeName + "您好,您有任务【" + task.mainTitle + "-" + task.taskName +
"】待处理,请登陆OA系统或者点击以下链接处理。" + url + "?userToken=" + userToken; "】待处理,请登陆OA系统或者点击以下链接处理。" + url + "?userToken=" + userToken;
this.$copyText(this.weixinContent).then(e => { this.$copyText(this.weixinContent).then(e => {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: '已拷贝内容,您可黏贴到微信中', message: '已拷贝内容,您可黏贴到微信中',
type: 'success' type: 'success'
}); });
@ -908,14 +908,14 @@
}, },
showWeixin: function() { showWeixin: function() {
if (this.sels.length > 1) { if (this.sels.length > 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: '一次只能给一个人发信', message: '一次只能给一个人发信',
type: 'error' type: 'error'
}); });
this.weixinContentVisible = false; this.weixinContentVisible = false;
return false; return false;
} else if (this.sels.length < 1) { } else if (this.sels.length < 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: '请选择一条任务', message: '请选择一条任务',
type: 'error' type: 'error'
}); });
@ -945,13 +945,13 @@
}, },
showOaMsg: function() { showOaMsg: function() {
if (this.sels.length > 1) { if (this.sels.length > 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: '一次只能给一个人发信', message: '一次只能给一个人发信',
type: 'error' type: 'error'
}); });
return false; return false;
} else if (this.sels.length < 1) { } else if (this.sels.length < 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: '请选择一条任务', message: '请选择一条任务',
type: 'error' type: 'error'
}); });

26
src/views/mdp/workflow/ru/execution/ExecutionMngForFormData.vue

@ -274,7 +274,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.executions = res.data.data; this.executions = res.data.data;
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -318,7 +318,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getTasks(); this.getTasks();
} }
this.$message({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(() => { }).catch(() => {
@ -352,7 +352,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getExecutions(); this.getExecutions();
} }
this.$message({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(() => { }).catch(() => {
@ -374,7 +374,7 @@
this.pageInfo.total=0; this.pageInfo.total=0;
this.getExecutions(); this.getExecutions();
} }
this.$message({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(() => { }).catch(() => {
@ -454,9 +454,9 @@
showSendSms:function(){ showSendSms:function(){
if(this.sels.length>1){ if(this.sels.length>1){
this.$message({showClose: true, message: '一次只能给一个人发短信', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '一次只能给一个人发短信', type: 'error' });
}else if(this.sels.length<1){ }else if(this.sels.length<1){
this.$message({showClose: true, message: '请选择一条任务', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '请选择一条任务', type: 'error' });
}else{ }else{
let task=this.sels[0]; let task=this.sels[0];
this.smsBodyParams=[task.assigneeName,task.mainTitle+"-"+task.taskName,task.createTime,task.userid] this.smsBodyParams=[task.assigneeName,task.mainTitle+"-"+task.taskName,task.createTime,task.userid]
@ -467,11 +467,11 @@
}, },
showWeixinTask:function(){ showWeixinTask:function(){
if(this.sels.length>1){ if(this.sels.length>1){
this.$message({showClose: true, message: '一次只能给一个人发信', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '一次只能给一个人发信', type: 'error' });
this.weixinContentVisible=false; this.weixinContentVisible=false;
return false; return false;
}else if(this.sels.length<1){ }else if(this.sels.length<1){
this.$message({showClose: true, message: '请选择一条任务', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '请选择一条任务', type: 'error' });
this.weixinContentVisible=false; this.weixinContentVisible=false;
return false; return false;
}else{ }else{
@ -484,7 +484,7 @@
var userToken=res.data.userToken; var userToken=res.data.userToken;
this.weixinContent=task.assigneeName+"您好,您有任务【"+task.mainTitle+"-"+task.taskName +"】待处理,请登陆OA系统或者点击以下链接处理。"+url+"?userToken="+userToken; this.weixinContent=task.assigneeName+"您好,您有任务【"+task.mainTitle+"-"+task.taskName +"】待处理,请登陆OA系统或者点击以下链接处理。"+url+"?userToken="+userToken;
this.$copyText(this.weixinContent).then(e=>{ this.$copyText(this.weixinContent).then(e=>{
this.$message({showClose: true, message: '已拷贝内容,您可黏贴到微信中', type: 'success' });
this.$notify({position:'bottom-left',showClose:true,message: '已拷贝内容,您可黏贴到微信中', type: 'success' });
}); });
} }
}); });
@ -493,11 +493,11 @@
}, },
showWeixin:function(){ showWeixin:function(){
if(this.sels.length>1){ if(this.sels.length>1){
this.$message({showClose: true, message: '一次只能给一个人发信', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '一次只能给一个人发信', type: 'error' });
this.weixinContentVisible=false; this.weixinContentVisible=false;
return false; return false;
}else if(this.sels.length<1){ }else if(this.sels.length<1){
this.$message({showClose: true, message: '请选择一条任务', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '请选择一条任务', type: 'error' });
this.weixinContentVisible=false; this.weixinContentVisible=false;
return false; return false;
}else{ }else{
@ -519,10 +519,10 @@
}, },
showOaMsg:function(){ showOaMsg:function(){
if(this.sels.length>1){ if(this.sels.length>1){
this.$message({showClose: true, message: '一次只能给一个人发信', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '一次只能给一个人发信', type: 'error' });
return false; return false;
}else if(this.sels.length<1){ }else if(this.sels.length<1){
this.$message({showClose: true, message: '请选择一条任务', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '请选择一条任务', type: 'error' });
return false; return false;
}else{ }else{
let task=this.sels[0]; let task=this.sels[0];

4
src/views/mdp/workflow/ru/procinstParames/ProcinstNodeInfoSet.vue

@ -203,7 +203,7 @@
this.nodeInfoList=res.data.data; this.nodeInfoList=res.data.data;
this.nodeInfoListOld=JSON.parse(JSON.stringify(this.nodeInfoList)); this.nodeInfoListOld=JSON.parse(JSON.stringify(this.nodeInfoList));
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}); });
}else{ }else{
@ -216,7 +216,7 @@
this.nodeInfoList=res.data.data; this.nodeInfoList=res.data.data;
this.nodeInfoListOld=JSON.parse(JSON.stringify(this.nodeInfoList)); this.nodeInfoListOld=JSON.parse(JSON.stringify(this.nodeInfoList));
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}); });
} }

16
src/views/mdp/workflow/ru/procinstParames/ProcinstParamesExecutionSet.vue

@ -677,7 +677,7 @@
addComment:function(){ addComment:function(){
if(this.task.commentMsg==''){ if(this.task.commentMsg==''){
this.$message({showClose: true, message: "办理意见不能为空", type:'error' });
this.$notify({position:'bottom-left',showClose:true,message: "办理意见不能为空", type:'error' });
return; return;
} }
this.addLoading = true; this.addLoading = true;
@ -688,11 +688,11 @@
this.refreshCommentList=true this.refreshCommentList=true
this.addLoading=false; this.addLoading=false;
this.addForm.commentMsg="" this.addForm.commentMsg=""
this.$message({showClose: true, message:'保存办理意见成功', type:'success' });
this.$notify({position:'bottom-left',showClose:true,message:'保存办理意见成功', type:'success' });
}else{ }else{
this.refreshCommentList=false this.refreshCommentList=false
this.addLoading=false; this.addLoading=false;
this.$message({showClose: true, message: res.data.tips.msg, type:'error' });
this.$notify({position:'bottom-left',showClose:true,message: res.data.tips.msg, type:'error' });
} }
}).catch(e=>{ }).catch(e=>{
this.addLoading = false; this.addLoading = false;
@ -746,7 +746,7 @@
this.needAssignee='' this.needAssignee=''
this.needAssigneeMsg='' this.needAssigneeMsg=''
this.needAssigneeNum=-1 this.needAssigneeNum=-1
this.$message({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' });
this.handleCancel(); this.handleCancel();
}else if(tips.tipscode=='need-mulit-assignee'){//need-mulit-assignee need-single-assignee }else if(tips.tipscode=='need-mulit-assignee'){//need-mulit-assignee need-single-assignee
this.needAssignee=tips.tipscode this.needAssignee=tips.tipscode
@ -759,7 +759,7 @@
this.needAssigneeNum=1; this.needAssigneeNum=1;
this.$refs.addForm.validateField('needAssignee'); this.$refs.addForm.validateField('needAssignee');
}else{ }else{
this.$message({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(() => { }).catch(() => {
@ -816,7 +816,7 @@
this.addForm=Object.assign(this.addForm,this.defaultAddForm); this.addForm=Object.assign(this.addForm,this.defaultAddForm);
} }
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
this.listLoading = false; this.listLoading = false;
}).catch(() => { }).catch(() => {
@ -883,7 +883,7 @@
newImg.src = dataUrl; newImg.src = dataUrl;
var printWindow=window.open(newImg.src,"_blank"); var printWindow=window.open(newImg.src,"_blank");
if(printWindow==null){ if(printWindow==null){
this.$message({showClose: true, message: '无法打开打印窗口,请检查是否浏览器阻止弹出框', type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: '无法打开打印窗口,请检查是否浏览器阻止弹出框', type: 'error' });
}else{ }else{
this.$nextTick(() => { this.$nextTick(() => {
@ -1057,7 +1057,7 @@
this.nodeInfos=res.data.data; this.nodeInfos=res.data.data;
this.nodeInfoVisible=false; this.nodeInfoVisible=false;
} }
this.$message({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' });
}) })
}, },

6
src/views/mdp/workflow/ru/procinstParames/ProcinstParamesStartSet.vue

@ -402,7 +402,7 @@
this.needAssignee=''; this.needAssignee='';
this.needAssigneeMsg=''; this.needAssigneeMsg='';
this.$emit('submit');// @submit="afterAddSubmit" this.$emit('submit');// @submit="afterAddSubmit"
this.$message({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' });
this.handleCancel(); this.handleCancel();
}else if(tips.tipscode=='need-mulit-assignee'){//need-mulit-assignee need-single-assignee }else if(tips.tipscode=='need-mulit-assignee'){//need-mulit-assignee need-single-assignee
this.needAssignee=tips.tipscode this.needAssignee=tips.tipscode
@ -415,7 +415,7 @@
this.needAssigneeNum=1; this.needAssigneeNum=1;
this.$refs.addForm.validateField('needAssignee'); this.$refs.addForm.validateField('needAssignee');
}else{ }else{
this.$message({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(() => { }).catch(() => {
@ -631,7 +631,7 @@
this.nodeInfoVisible=true this.nodeInfoVisible=true
} }
}else{ }else{
this.$message({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}); });
}, },

34
src/views/mdp/workflow/ru/task/TaskMng.vue

@ -522,7 +522,7 @@
this.pageInfo.count = true; this.pageInfo.count = true;
this.filters.taskType = "1"; this.filters.taskType = "1";
if (this.filters.candidateUser == "") { if (this.filters.candidateUser == "") {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "请先选择用户", message: "请先选择用户",
type: "error" type: "error"
}); });
@ -536,7 +536,7 @@
this.pageInfo.count = true; this.pageInfo.count = true;
this.filters.taskType = "2"; this.filters.taskType = "2";
if (this.filters.candidateGroups.length <= 0) { if (this.filters.candidateGroups.length <= 0) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "请先选择部门", message: "请先选择部门",
type: "error" type: "error"
}); });
@ -550,7 +550,7 @@
this.pageInfo.count = true; this.pageInfo.count = true;
this.filters.taskType = "2"; this.filters.taskType = "2";
if (this.filters.candidateGroups.length <= 0) { if (this.filters.candidateGroups.length <= 0) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "请先选择部门", message: "请先选择部门",
type: "error" type: "error"
}); });
@ -650,12 +650,12 @@
}, },
showSendSms: function() { showSendSms: function() {
if (this.sels.length > 1) { if (this.sels.length > 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "一次只能给一个人发短信", message: "一次只能给一个人发短信",
type: "error" type: "error"
}); });
} else if (this.sels.length < 1) { } else if (this.sels.length < 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "请选择一条任务", message: "请选择一条任务",
type: "error" type: "error"
}); });
@ -675,14 +675,14 @@
}, },
showWeixin: function() { showWeixin: function() {
if (this.sels.length > 1) { if (this.sels.length > 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "一次只能给一个人发信", message: "一次只能给一个人发信",
type: "error" type: "error"
}); });
this.weixinContentVisible = false; this.weixinContentVisible = false;
return false; return false;
} else if (this.sels.length < 1) { } else if (this.sels.length < 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "请选择一条任务", message: "请选择一条任务",
type: "error" type: "error"
}); });
@ -722,13 +722,13 @@
}, },
showOaMsg: function() { showOaMsg: function() {
if (this.sels.length > 1) { if (this.sels.length > 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "一次只能给一个人发信", message: "一次只能给一个人发信",
type: "error" type: "error"
}); });
return false; return false;
} else if (this.sels.length < 1) { } else if (this.sels.length < 1) {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "请选择一条任务", message: "请选择一条任务",
type: "error" type: "error"
}); });
@ -858,7 +858,7 @@
}); });
this.tasks = taskList; this.tasks = taskList;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: "error" type: "error"
}); });
@ -886,7 +886,7 @@
}); });
this.tasks = taskList; this.tasks = taskList;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: "error" type: "error"
}); });
@ -913,7 +913,7 @@
}); });
this.tasks = taskList; this.tasks = taskList;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: "error" type: "error"
}); });
@ -941,7 +941,7 @@
}); });
this.tasks = taskList; this.tasks = taskList;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: "error" type: "error"
}); });
@ -968,7 +968,7 @@
}); });
this.tasks = taskList; this.tasks = taskList;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: "error" type: "error"
}); });
@ -995,7 +995,7 @@
}); });
this.tasks = taskList; this.tasks = taskList;
} else { } else {
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: "error" type: "error"
}); });
@ -1059,7 +1059,7 @@
this.pageInfo.total = 0; this.pageInfo.total = 0;
this.getTasks(); this.getTasks();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });
@ -1084,7 +1084,7 @@
this.pageInfo.total = 0; this.pageInfo.total = 0;
this.getTasks(); this.getTasks();
} }
this.$message({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error" type: tips.isOk ? "success" : "error"
}); });

4
src/views/myWork/set/index.vue

@ -237,7 +237,7 @@ import md5 from "js-md5";
if(tips.isOk){ if(tips.isOk){
this.$emit('submit');// @submit="afterEditSubmit" this.$emit('submit');// @submit="afterEditSubmit"
} }
this.$message({ message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({ message: tips.msg, type: tips.isOk?'success':'error' });
}).catch(() => { }).catch(() => {
this.editLoading = false; this.editLoading = false;
}); });
@ -253,7 +253,7 @@ import md5 from "js-md5";
this.setLoading = true this.setLoading = true
changePassword({oldPassword:md5(this.passwordForm.oldPassword),newPassword:md5(this.passwordForm.newPassword)}).then(res=>{ changePassword({oldPassword:md5(this.passwordForm.oldPassword),newPassword:md5(this.passwordForm.newPassword)}).then(res=>{
var tips = res.data.tips; var tips = res.data.tips;
this.$message({ message: tips.msg, type: tips.isOk?'success':'error' });
this.$notify({ message: tips.msg, type: tips.isOk?'success':'error' });
}).finally(r => this.setLoading = false) }).finally(r => this.setLoading = false)
} }
}) })

2
src/views/xm/core/components/XmIterationSelect.vue

@ -216,7 +216,7 @@
this.clearSelectIteration() this.clearSelectIteration()
} }
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );

2
src/views/xm/core/components/XmProductSelect.vue

@ -225,7 +225,7 @@
this.rowClick(row); this.rowClick(row);
} }
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );

2
src/views/xm/core/components/XmProjectSelect.vue

@ -227,7 +227,7 @@
this.rowClick(row); this.rowClick(row);
} }
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );

16
src/views/xm/core/skill/skillMng.vue

@ -228,7 +228,7 @@ export default {
this.convertSkills = convert; this.convertSkills = convert;
this.setSkillsToLocal(); this.setSkillsToLocal();
} else { } else {
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: "error", type: "error",
}); });
@ -246,7 +246,7 @@ export default {
(i) => i.categoryName == this.needAddTagCategoryNameInputValue (i) => i.categoryName == this.needAddTagCategoryNameInputValue
) )
) { ) {
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "技能分类已经存在", message: "技能分类已经存在",
type: "error", type: "error",
}); });
@ -279,7 +279,7 @@ export default {
this.convertSkills.push(json); this.convertSkills.push(json);
this.setSkillsToLocal(); this.setSkillsToLocal();
} }
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error", type: tips.isOk ? "success" : "error",
}); });
@ -317,7 +317,7 @@ export default {
this.setSkillsToLocal(); this.setSkillsToLocal();
/*this.getTags();*/ /*this.getTags();*/
} }
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error", type: tips.isOk ? "success" : "error",
}); });
@ -342,7 +342,7 @@ export default {
); );
}) })
) { ) {
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "技能已经存在", message: "技能已经存在",
type: "error", type: "error",
}); });
@ -350,7 +350,7 @@ export default {
} }
if (!this.convertSkills[index].pubc) { if (!this.convertSkills[index].pubc) {
if (this.isPub == "1") { if (this.isPub == "1") {
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: "该分类不是公共分类,不能添加公共技能", message: "该分类不是公共分类,不能添加公共技能",
type: "error", type: "error",
}); });
@ -390,7 +390,7 @@ export default {
this.convertSkills[index].values.push(json); this.convertSkills[index].values.push(json);
this.setSkillsToLocal(); this.setSkillsToLocal();
} }
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error", type: tips.isOk ? "success" : "error",
}); });
@ -425,7 +425,7 @@ export default {
this.setSkillsToLocal(); this.setSkillsToLocal();
/*this.getTags();*/ /*this.getTags();*/
} }
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? "success" : "error", type: tips.isOk ? "success" : "error",
}); });

2
src/views/xm/core/xmAttachment/XmAttachmentAdd.vue

@ -98,7 +98,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" 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.add=false); }).catch( err => this.load.add=false);
}); });
} }

2
src/views/xm/core/xmAttachment/XmAttachmentEdit.vue

@ -96,7 +96,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" 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); }).catch( err =>this.load.edit=false);
}); });
} }

6
src/views/xm/core/xmAttachment/XmAttachmentMng.vue

@ -144,7 +144,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.xmAttachments = res.data.data; this.xmAttachments = res.data.data;
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -186,7 +186,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmAttachments(); this.getXmAttachments();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -204,7 +204,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmAttachments(); this.getXmAttachments();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },

2
src/views/xm/core/xmBranchState/XmBranchStateAdd.vue

@ -233,7 +233,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" 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.add=false); }).catch( err => this.load.add=false);
}); });
} }

2
src/views/xm/core/xmBranchTaskTypeState/XmBranchTaskTypeStateAdd.vue

@ -137,7 +137,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" 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.add=false); }).catch( err => this.load.add=false);
}); });
} }

2
src/views/xm/core/xmBranchTaskTypeState/XmBranchTaskTypeStateEdit.vue

@ -135,7 +135,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" 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); }).catch( err =>this.load.edit=false);
}); });
} }

6
src/views/xm/core/xmBranchTaskTypeState/XmBranchTaskTypeStateMng.vue

@ -159,7 +159,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.xmBranchTaskTypeStates = res.data.data; this.xmBranchTaskTypeStates = res.data.data;
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -201,7 +201,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmBranchTaskTypeStates(); this.getXmBranchTaskTypeStates();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -219,7 +219,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmBranchTaskTypeStates(); this.getXmBranchTaskTypeStates();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },

6
src/views/xm/core/xmContract/XmContractMng.vue

@ -196,7 +196,7 @@
this.xmContracts = res.data.data; this.xmContracts = res.data.data;
console.log(res.data.data); console.log(res.data.data);
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -243,7 +243,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmContracts(); this.getXmContracts();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -261,7 +261,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmContracts(); this.getXmContracts();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },

2
src/views/xm/core/xmEnvList/XmEnvListAdd.vue

@ -181,7 +181,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" 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.add=false); }).catch( err => this.load.add=false);
}); });
} }

2
src/views/xm/core/xmEnvList/XmEnvListEdit.vue

@ -134,7 +134,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" 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); }).catch( err =>this.load.edit=false);
}); });
} }

6
src/views/xm/core/xmEnvList/XmEnvListMng.vue

@ -175,7 +175,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.xmEnvLists = res.data.data; this.xmEnvLists = res.data.data;
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -218,7 +218,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmEnvLists(); this.getXmEnvLists();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -236,7 +236,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmEnvLists(); this.getXmEnvLists();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },

2
src/views/xm/core/xmExchange/XmExchangeAdd.vue

@ -146,7 +146,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" 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.add=false); }).catch( err => this.load.add=false);
}); });
} }

2
src/views/xm/core/xmExchange/XmExchangeEdit.vue

@ -144,7 +144,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" 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); }).catch( err =>this.load.edit=false);
}); });
} }

8
src/views/xm/core/xmExchange/XmExchangeMng.vue

@ -154,7 +154,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.xmExchanges = res.data.data; this.xmExchanges = res.data.data;
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -196,7 +196,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmExchanges(); this.getXmExchanges();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -214,7 +214,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmExchanges(); this.getXmExchanges();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -247,7 +247,7 @@
if(tips.isOk){ if(tips.isOk){
this.xmExchanges.push(params); this.xmExchanges.push(params);
} }
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'});
}) })
} }
/**end 自定义函数请在上面加**/ /**end 自定义函数请在上面加**/

2
src/views/xm/core/xmFile/XmFileAdd.vue

@ -96,7 +96,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" 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.add=false); }).catch( err => this.load.add=false);
}); });
} }

2
src/views/xm/core/xmFile/XmFileEdit.vue

@ -96,7 +96,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" 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); }).catch( err =>this.load.edit=false);
}); });
} }

6
src/views/xm/core/xmFile/XmFileMng.vue

@ -185,7 +185,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.selProject.file = res.data.data; this.selProject.file = res.data.data;
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -230,7 +230,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmFiles(); this.getXmFiles();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -247,7 +247,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmFiles(); this.getXmFiles();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },

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

@ -609,7 +609,7 @@ XmProductSelect,XmProjectSelect,
if(tips.isOk){ if(tips.isOk){
this.imGroups=res.data.data; this.imGroups=res.data.data;
} }
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });
@ -641,7 +641,7 @@ XmProductSelect,XmProjectSelect,
params.id=params.groupId params.id=params.groupId
this.imGroups.push(params); this.imGroups.push(params);
} }
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: tips.msg, message: tips.msg,
type: tips.isOk ? 'success' : 'error' type: tips.isOk ? 'success' : 'error'
}); });

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

@ -122,7 +122,7 @@ import XmProductSelect from '@/views/xm/core/components/XmProductSelect.vue'
if(this.isSelectSingleUser=='1'){ if(this.isSelectSingleUser=='1'){
if(users.length>1){ if(users.length>1){
this.$notify({showClose: true,
this.$notify({position:'bottom-left',showClose: true,
message: '只能选中一个用户', message: '只能选中一个用户',
type: 'error' type: 'error'
}); });
@ -153,7 +153,7 @@ import XmProductSelect from '@/views/xm/core/components/XmProductSelect.vue'
if(tips.isOk){ if(tips.isOk){
this.selGroups=res.data.data; this.selGroups=res.data.data;
}else{ }else{
this.$notify({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}) })
}, },

8
src/views/xm/core/xmGroupState/XmGroupStateMng.vue

@ -176,7 +176,7 @@ import XmGroupStateOverview from './XmGroupStateOverview.vue';
this.pageInfo.count=false; this.pageInfo.count=false;
this.xmGroupStates = res.data.data; this.xmGroupStates = res.data.data;
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -218,7 +218,7 @@ import XmGroupStateOverview from './XmGroupStateOverview.vue';
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmGroupStates(); this.getXmGroupStates();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -236,7 +236,7 @@ import XmGroupStateOverview from './XmGroupStateOverview.vue';
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmGroupStates(); this.getXmGroupStates();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -250,7 +250,7 @@ import XmGroupStateOverview from './XmGroupStateOverview.vue';
if(tips.isOk){ if(tips.isOk){
this.getXmGroupStates(); this.getXmGroupStates();
}else{ }else{
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'});
} }
}) })

4
src/views/xm/core/xmIteration/XmIterationAdd.vue

@ -134,11 +134,11 @@
if(tips.isOk){ if(tips.isOk){
this.$emit('submit',res.data.data);// @submit="afterAddSubmit" this.$emit('submit',res.data.data);// @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.add=false); }).catch( err => this.load.add=false);
}); });
}else{ }else{
this.$notify({showClose: true, message: "表单验证不通过", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "表单验证不通过", type: 'error' });
} }
}); });
}, },

4
src/views/xm/core/xmIteration/XmIterationEdit.vue

@ -118,7 +118,7 @@
//XmIteration @submit="afterAddSubmit" //XmIteration @submit="afterAddSubmit"
editSubmit: function () { editSubmit: function () {
if(!this.roles.some(i=>i.roleid=='iterationAdmin')){ if(!this.roles.some(i=>i.roleid=='iterationAdmin')){
this.$notify({showClose: true, message: "只有迭代管理员可以修改迭代", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "只有迭代管理员可以修改迭代", type: 'error' });
return ; return ;
} }
this.$refs.editForm.validate((valid) => { this.$refs.editForm.validate((valid) => {
@ -133,7 +133,7 @@
if(tips.isOk){ if(tips.isOk){
this.$emit('submit');// @submit="afterAddSubmit" 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); }).catch( err => this.load.edit=false);
}); });
} }

20
src/views/xm/core/xmIteration/XmIterationMng.vue

@ -264,7 +264,7 @@ import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect.vue'
params.queryScope=this.filters.queryScope params.queryScope=this.filters.queryScope
if(this.filters.queryScope=='iterationId'){ if(this.filters.queryScope=='iterationId'){
if(!this.filters.id){ if(!this.filters.id){
this.$notify({showClose: true, message:"您选择了按迭代编号精确查找模式,请输入迭代编号", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message:"您选择了按迭代编号精确查找模式,请输入迭代编号", type: 'error' });
return; return;
} }
params.id=this.filters.id params.id=this.filters.id
@ -288,7 +288,7 @@ import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect.vue'
this.pageInfo.count=false; this.pageInfo.count=false;
this.xmIterations = res.data.data; this.xmIterations = res.data.data;
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -302,7 +302,7 @@ import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect.vue'
// XmIteration // XmIteration
showAdd: function () { showAdd: function () {
if(!this.roles.some(i=>i.roleid=='iterationAdmin')){ if(!this.roles.some(i=>i.roleid=='iterationAdmin')){
this.$notify({showClose: true, message: "只有迭代管理员可以新增迭代", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "只有迭代管理员可以新增迭代", type: 'error' });
return ; return ;
} }
this.parentIteration=null this.parentIteration=null
@ -340,7 +340,7 @@ import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect.vue'
//xmIteration //xmIteration
handleDel: function (row,index) { handleDel: function (row,index) {
if(!this.roles.some(i=>i.roleid=='iterationAdmin')){ if(!this.roles.some(i=>i.roleid=='iterationAdmin')){
this.$notify({showClose: true, message: "只有迭代管理员可以删除迭代", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "只有迭代管理员可以删除迭代", type: 'error' });
return ; return ;
} }
this.$confirm('确认删除该记录吗?', '提示', { this.$confirm('确认删除该记录吗?', '提示', {
@ -355,14 +355,14 @@ import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect.vue'
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmIterations(); this.getXmIterations();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
//xmIteration //xmIteration
batchDel: function () { batchDel: function () {
if(!this.roles.some(i=>i.roleid=='iterationAdmin')){ if(!this.roles.some(i=>i.roleid=='iterationAdmin')){
this.$notify({showClose: true, message: "只有迭代管理员可以删除迭代", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "只有迭代管理员可以删除迭代", type: 'error' });
return ; return ;
} }
this.$confirm('确认删除选中记录吗?', '提示', { this.$confirm('确认删除选中记录吗?', '提示', {
@ -376,7 +376,7 @@ import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect.vue'
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmIterations(); this.getXmIterations();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -406,7 +406,7 @@ import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect.vue'
if(tips.isOk){ if(tips.isOk){
this.getXmIterations(); this.getXmIterations();
} }
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'});
}); });
}, },
showIterationState(row){ showIterationState(row){
@ -431,7 +431,7 @@ import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect.vue'
if(tips.isOk){ if(tips.isOk){
this.getXmIterations(); this.getXmIterations();
} }
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'});
}) })
}) })
}, },
@ -446,7 +446,7 @@ import XmIterationSelect from '@/views/xm/core/components/XmIterationSelect.vue'
if(tips.isOk){ if(tips.isOk){
this.getXmIterations(); this.getXmIterations();
} }
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'});
}) })
}) })
} }

4
src/views/xm/core/xmIterationMenu/XmIterationMenuAdd.vue

@ -82,7 +82,7 @@
//XmIterationMenu @submit="afterAddSubmit" //XmIterationMenu @submit="afterAddSubmit"
addSubmit: function () { addSubmit: function () {
if(!this.roles.some(i=>i.roleid=='iterationAdmin')){ if(!this.roles.some(i=>i.roleid=='iterationAdmin')){
this.$notify({showClose: true, message: "只有迭代管理员可以操作", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "只有迭代管理员可以操作", type: 'error' });
return ; return ;
} }
this.$refs.addForm.validate((valid) => { this.$refs.addForm.validate((valid) => {
@ -98,7 +98,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" 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.add=false); }).catch( err => this.load.add=false);
}); });
} }

4
src/views/xm/core/xmIterationMenu/XmIterationMenuEdit.vue

@ -82,7 +82,7 @@
//XmIterationMenu @submit="afterEditSubmit" //XmIterationMenu @submit="afterEditSubmit"
editSubmit: function () { editSubmit: function () {
if(!this.roles.some(i=>i.roleid=='iterationAdmin')){ if(!this.roles.some(i=>i.roleid=='iterationAdmin')){
this.$notify({showClose: true, message: "只有迭代管理员可以操作", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: "只有迭代管理员可以操作", type: 'error' });
return ; return ;
} }
this.$refs.editForm.validate((valid) => { this.$refs.editForm.validate((valid) => {
@ -97,7 +97,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" 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); }).catch( err =>this.load.edit=false);
}); });
} }

12
src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue

@ -167,7 +167,7 @@
if(this.iteration){ if(this.iteration){
params.iterationId=this.iteration.id params.iterationId=this.iteration.id
}else{ }else{
this.$notify({showClose: true, message: "请先在左边选择迭代", type: 'success' });
this.$notify({position:'bottom-left',showClose:true,message: "请先在左边选择迭代", type: 'success' });
return; return;
} }
this.load.list = true; this.load.list = true;
@ -178,7 +178,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.xmIterationMenus = res.data.data; this.xmIterationMenus = res.data.data;
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -222,14 +222,14 @@
this.$refs.menusSelect.reloadChildren([row]); this.$refs.menusSelect.reloadChildren([row]);
this.getXmIterationMenus(); this.getXmIterationMenus();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
//xmIterationMenu //xmIterationMenu
batchDel: function () { batchDel: function () {
if(this.sels.length<=0){ if(this.sels.length<=0){
this.$notify({showClose: true, message:"请先选择一个或者多个需求", type: 'warning' });
this.$notify({position:'bottom-left',showClose:true,message:"请先选择一个或者多个需求", type: 'warning' });
return ; return ;
} }
this.$confirm('确认将需求移出迭代吗?', '提示', { this.$confirm('确认将需求移出迭代吗?', '提示', {
@ -247,7 +247,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmIterationMenus(); this.getXmIterationMenus();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -271,7 +271,7 @@
this.getXmIterationMenus() this.getXmIterationMenus()
this.$refs.menusSelect.reloadChildren(menus); this.$refs.menusSelect.reloadChildren(menus);
} }
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'});
}) })
}, },
onIterationRowClick(iteration){ onIterationRowClick(iteration){

2
src/views/xm/core/xmIterationState/XmIterationStateAdd.vue

@ -140,7 +140,7 @@
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
this.$emit('submit');// @submit="afterAddSubmit" 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.add=false); }).catch( err => this.load.add=false);
}); });
} }

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

@ -162,7 +162,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.xmIterationStates = res.data.data; this.xmIterationStates = res.data.data;
}else{ }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; this.load.list = false;
}).catch( err => this.load.list = false ); }).catch( err => this.load.list = false );
@ -204,7 +204,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmIterationStates(); 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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -222,7 +222,7 @@
this.pageInfo.count=true; this.pageInfo.count=true;
this.getXmIterationStates(); 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 ); }).catch( err => this.load.del=false );
}); });
}, },

8
src/views/xm/core/xmMenu/XmMenuAdd.vue

@ -296,7 +296,7 @@
//XmMenu @submit="afterAddSubmit" //XmMenu @submit="afterAddSubmit"
addSubmit: function () { addSubmit: function () {
if(this.addForm.productId==null){ if(this.addForm.productId==null){
this.$notify({showClose: true, message: '请选择产品/或者上级需求进行新增', type:'error' });
this.$notify({position:'bottom-left',showClose:true,message: '请选择产品/或者上级需求进行新增', type:'error' });
return; return;
} }
this.$refs.addForm.validate((valid) => { this.$refs.addForm.validate((valid) => {
@ -310,7 +310,7 @@
params.pmenuId=this.parentMenu.menuId params.pmenuId=this.parentMenu.menuId
} }
if(params.productId==null|| params.productId==''){ if(params.productId==null|| params.productId==''){
this.$notify({showClose: true, message: '产品编号不能为空', type:'error' });
this.$notify({position:'bottom-left',showClose:true,message: '产品编号不能为空', type:'error' });
return; return;
} }
if(params.remark=='作为 ,我需要 ,以便我能够 。'){ if(params.remark=='作为 ,我需要 ,以便我能够 。'){
@ -327,11 +327,11 @@
if(tips.isOk){ if(tips.isOk){
this.$emit('submit',res.data.data);// @submit="afterAddSubmit" this.$emit('submit',res.data.data);// @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.add=false); }).catch( err => this.load.add=false);
}); });
}else{ }else{
this.$notify({showClose: true, message:"表单检查不通过,请修改后提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message:"表单检查不通过,请修改后提交", type: 'error' });
} }
}); });
}, },

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

@ -354,11 +354,11 @@ import XmMenuExchangeMng from '../xmMenuExchange/XmMenuExchangeMng.vue';
if(tips.isOk){ if(tips.isOk){
this.$emit('submit',res.data.data);// @submit="afterAddSubmit" this.$emit('submit',res.data.data);// @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); }).catch( err => this.load.edit=false);
}); });
}else{ }else{
this.$notify({showClose: true, message:"表单检查不通过,请修改后提交", type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message:"表单检查不通过,请修改后提交", type: 'error' });
} }
}); });
}, },
@ -473,7 +473,7 @@ import XmMenuExchangeMng from '../xmMenuExchange/XmMenuExchangeMng.vue';
this.dateRanger.push(this.editForm.endTime) this.dateRanger.push(this.editForm.endTime)
} }
}else{ }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; this.load.list = false;
} }

16
src/views/xm/core/xmMenu/XmMenuMng.vue

@ -687,7 +687,7 @@
this.pageInfo.count=false; this.pageInfo.count=false;
this.xmMenus = res.data.data; this.xmMenus = res.data.data;
}else{ }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; this.load.list = false;
} }
@ -722,7 +722,7 @@
this.addFormVisible = true; this.addFormVisible = true;
}else{ }else{
this.$refs.xmProductSelect1.productVisible=true; this.$refs.xmProductSelect1.productVisible=true;
this.$notify({showClose: true, message: "请先选择一个产品", type: 'warning'});
this.$notify({position:'bottom-left',showClose:true,message: "请先选择一个产品", type: 'warning'});
} }
//this.addForm=Object.assign({}, this.editForm); //this.addForm=Object.assign({}, this.editForm);
@ -811,14 +811,14 @@
this.getXmMenus(); this.getXmMenus();
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
//xmMenu //xmMenu
batchDel: function () { batchDel: function () {
if(this.sels.length==0){ if(this.sels.length==0){
this.$notify({showClose: true, message: "请先选择要删除的需求", type: 'warning'});
this.$notify({position:'bottom-left',showClose:true,message: "请先选择要删除的需求", type: 'warning'});
return; return;
} }
this.$confirm('确认删除选中的'+this.sels.length+'条数据吗?删除后数据不可恢复', '提示', { this.$confirm('确认删除选中的'+this.sels.length+'条数据吗?删除后数据不可恢复', '提示', {
@ -833,7 +833,7 @@
this.getXmMenus(); this.getXmMenus();
treeTool.reloadAllChildren(this.$refs.table,this.maps,this.sels,'pmenuId',this.loadXmMenusLazy) treeTool.reloadAllChildren(this.$refs.table,this.maps,this.sels,'pmenuId',this.loadXmMenusLazy)
} }
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 ); }).catch( err => this.load.del=false );
}); });
}, },
@ -951,7 +951,7 @@
treeTool.reloadAllChildren(this.$refs.table,this.maps,this.parentMenu.menuId,'pmenuId',this.loadXmMenusLazy) treeTool.reloadAllChildren(this.$refs.table,this.maps,this.parentMenu.menuId,'pmenuId',this.loadXmMenusLazy)
} }
}else{ }else{
this.$notify({showClose: true, message: tips.msg, type: 'error' });
this.$notify({position:'bottom-left',showClose:true,message: tips.msg, type: 'error' });
} }
}).catch( err => this.load.add=false ); }).catch( err => this.load.add=false );
}, },
@ -981,7 +981,7 @@
if(tips.isOk){ if(tips.isOk){
//this.getXmMenus() //this.getXmMenus()
} }
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'});
}); });
}, },
@ -1014,7 +1014,7 @@
this.xmMenus=[]; this.xmMenus=[];
this.getXmMenus(); this.getXmMenus();
} }
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 ); }).catch( err => this.load.edit=false );
}, },
onGroupUserSelect(users,option){ onGroupUserSelect(users,option){

4
src/views/xm/core/xmMenu/XmMenuMngBatch.vue

@ -154,7 +154,7 @@
batchSaveMenu(){ batchSaveMenu(){
if(!this.roles.some(i=>i.roleid=='productAdmin') && !this.roles.some(i=>i.roleid=='productTeamAdmin')){ if(!this.roles.some(i=>i.roleid=='productAdmin') && !this.roles.some(i=>i.roleid=='productTeamAdmin')){
this.$notify({showClose: true, message: "只有产品经理、产品组长能够修改需求", type: 'error'});
this.$notify({position:'bottom-left',showClose:true,message: "只有产品经理、产品组长能够修改需求", type: 'error'});
return false; return false;
} }
if(this.valueChangeRows.length==0){ if(this.valueChangeRows.length==0){
@ -166,7 +166,7 @@
if(tips.isOk){ if(tips.isOk){
this.valueChangeRows=[] this.valueChangeRows=[]
} }
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'});
}); });
}, },
fieldChange:function(row,fieldName,nextReplace){ fieldChange:function(row,fieldName,nextReplace){

2
src/views/xm/core/xmMenu/XmMenuRichDetail.vue

@ -97,7 +97,7 @@
this.$refs['editForm'].resetFields(); this.$refs['editForm'].resetFields();
this.$emit('submit');// @submit="afterEditSubmit" 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); }).catch( err =>this.load.edit=false);
}); });
} }

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save