Skip to content

Commit

Permalink
Merge pull request #2601 from fannluo/bugfix_tpl_update_vars_V3.6.X
Browse files Browse the repository at this point in the history
bugfix:子流程模板变量类型更新后勾选的输入参数取值不正确修复(V3.6.X)
  • Loading branch information
homholueng authored Sep 3, 2020
2 parents e452824 + c1bb8dc commit f7beb0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dev_log/dev/fannluo_202008311739.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfix:
- "子流程模板变量类型更新后勾选的输入参数取值不正确修复"
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@
/**
* 子流程版本更新后,输入、输出参数如果有变更,需要处理全局变量的 source_info 更新
* 分为两种情况:
* 1.输入、输出参数被勾选,并且在新流程模板中被删除,需要在更新后修改全局变量 source_info 信息
* 1.输入、输出参数被勾选,并且对应变量在新流程模板中被删除或者变量 source_tag 有更新,需要在更新后修改全局变量 source_info 信息
* 2.新增和修改输入、输出参数,不做处理
*/
subflowUpdateParamsChange () {
Expand All @@ -725,7 +725,9 @@
if (sourceInfo) {
if (source_type === 'component_inputs') {
sourceInfo.forEach(nodeFormItem => {
if (!this.inputs.find(item => item.tag_code === nodeFormItem)) {
const newTplVar = this.subflowForms[nodeFormItem]
if (!newTplVar || newTplVar.source_tag !== varItem.source_tag) { // 变量被删除或者变量类型有变更
this.setVariableSourceInfo({
key,
id: nodeId,
Expand Down

0 comments on commit f7beb0f

Please sign in to comment.