mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
增加BPMN数据校验
This commit is contained in:
parent
a829e8d083
commit
bab046f10c
@ -77,6 +77,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
commitForm(){
|
commitForm(){
|
||||||
|
if (!this.form.class || this.form.class === "" ) {
|
||||||
|
this.msgError("class不能为空");
|
||||||
|
return;
|
||||||
|
}
|
||||||
const from = this.form
|
const from = this.form
|
||||||
const filterArr = this.listenerTable.filter(
|
const filterArr = this.listenerTable.filter(
|
||||||
(item) => (item.event === from.event && from.type === item.type && from.class === item.class)
|
(item) => (item.event === from.event && from.type === item.type && from.class === item.class)
|
||||||
@ -114,4 +118,4 @@ export default {
|
|||||||
/deep/.el-dialog > .el-dialog__header{
|
/deep/.el-dialog > .el-dialog__header{
|
||||||
padding: 24px 20px
|
padding: 24px 20px
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -69,6 +69,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
commitForm(){
|
commitForm(){
|
||||||
|
if (!this.formData.class || this.formData.class === "" ) {
|
||||||
|
this.msgError("class不能为空");
|
||||||
|
return;
|
||||||
|
}
|
||||||
const from = this.formData;
|
const from = this.formData;
|
||||||
// 获取原数组中是否存在这个class了 如果存在就退出不操作
|
// 获取原数组中是否存在这个class了 如果存在就退出不操作
|
||||||
const filterArr = this.globalFormTable.filter(
|
const filterArr = this.globalFormTable.filter(
|
||||||
@ -110,4 +114,4 @@ export default {
|
|||||||
/deep/.el-dialog > .el-dialog__header{
|
/deep/.el-dialog > .el-dialog__header{
|
||||||
padding: 24px 20px
|
padding: 24px 20px
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user