Commit bab046f10c60ed2f87be7603fee5656ca4a29220
1 parent
a829e8d0
增加BPMN数据校验
Showing
2 changed files
with
10 additions
and
2 deletions
yudao-admin-ui/src/components/bpmn/panel/dialog/EventListenerDialog.vue
| ... | ... | @@ -77,6 +77,10 @@ export default { |
| 77 | 77 | }, |
| 78 | 78 | methods: { |
| 79 | 79 | commitForm(){ |
| 80 | + if (!this.form.class || this.form.class === "" ) { | |
| 81 | + this.msgError("class不能为空"); | |
| 82 | + return; | |
| 83 | + } | |
| 80 | 84 | const from = this.form |
| 81 | 85 | const filterArr = this.listenerTable.filter( |
| 82 | 86 | (item) => (item.event === from.event && from.type === item.type && from.class === item.class) |
| ... | ... | @@ -114,4 +118,4 @@ export default { |
| 114 | 118 | /deep/.el-dialog > .el-dialog__header{ |
| 115 | 119 | padding: 24px 20px |
| 116 | 120 | } |
| 117 | -</style> | |
| 118 | 121 | \ No newline at end of file |
| 122 | +</style> | ... | ... |
yudao-admin-ui/src/components/bpmn/panel/dialog/GlobalEventListenerDialog.vue
| ... | ... | @@ -69,6 +69,10 @@ export default { |
| 69 | 69 | }, |
| 70 | 70 | methods: { |
| 71 | 71 | commitForm(){ |
| 72 | + if (!this.formData.class || this.formData.class === "" ) { | |
| 73 | + this.msgError("class不能为空"); | |
| 74 | + return; | |
| 75 | + } | |
| 72 | 76 | const from = this.formData; |
| 73 | 77 | // 获取原数组中是否存在这个class了 如果存在就退出不操作 |
| 74 | 78 | const filterArr = this.globalFormTable.filter( |
| ... | ... | @@ -110,4 +114,4 @@ export default { |
| 110 | 114 | /deep/.el-dialog > .el-dialog__header{ |
| 111 | 115 | padding: 24px 20px |
| 112 | 116 | } |
| 113 | -</style> | |
| 114 | 117 | \ No newline at end of file |
| 118 | +</style> | ... | ... |