1. 修改 Parser.vue 组件,实现 submit 传递 conf 和 values 参数

2. 完成流程创建的前端 UI 界面
This commit is contained in:
YunaiV
2022-01-09 00:17:52 +08:00
parent 749cb5d762
commit 8a10568b24
7 changed files with 147 additions and 88 deletions

View File

@ -173,8 +173,13 @@ export default {
submitForm() {
this.$refs[this.formConf.formRef].validate(valid => {
if (!valid) return false
// 触发sumit事件
this.$emit('submit', this[this.formConf.formModel])
// 触发 submit 事件
// update by 芋道源码
// this.$emit('submit', this[this.formConf.formModel])
this.$emit('submit', {
conf: this.formConfCopy,
values: this[this.formConf.formModel]
})
return true
})
}