Skip to content

Commit 0f28461

Browse files
author
283591387@qq.com
committed
优化vue3版本表单编辑为函数时提交自动计算结果
1 parent c06cff0 commit 0f28461

File tree

2 files changed

+8
-0
lines changed
  • Vol.Vue3版本/src/components/basic/ViewGrid
  • 开发版dev/Vue.NetCore/Vol.Vue3版本/src/components/basic/ViewGrid

2 files changed

+8
-0
lines changed

Vol.Vue3版本/src/components/basic/ViewGrid/methods.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,10 @@ let methods = {
606606
return x.path;
607607
});
608608
editFormFields[key] = allPath.join(',');
609+
} else if (typeof this.editFormFields[key] == 'function') {
610+
try {
611+
editFormFields[key] = this.editFormFields[key]();
612+
} catch (error) {}
609613
} else {
610614
//2021.05.30修复下拉框清除数据后后台不能保存的问题
611615
if (

开发版dev/Vue.NetCore/Vol.Vue3版本/src/components/basic/ViewGrid/methods.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,10 @@ let methods = {
606606
return x.path;
607607
});
608608
editFormFields[key] = allPath.join(',');
609+
} else if (typeof this.editFormFields[key] == 'function') {
610+
try {
611+
editFormFields[key] = this.editFormFields[key]();
612+
} catch (error) {}
609613
} else {
610614
//2021.05.30修复下拉框清除数据后后台不能保存的问题
611615
if (

0 commit comments

Comments
 (0)