Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-09-10 10:38:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
35daee4d7477457173ac072b9b785bfafb1e53e9
35daee4d
1 parent
f0e8f1b3
fix 编辑表单删除历史隐藏字段
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
src/views/index.vue
src/views/index.vue
View file @
35daee4
...
...
@@ -1016,6 +1016,13 @@ const onSubmit = async (values) => { // 表单提交回调
submitStatus.value = false;
}
} else if (page_type === 'edit') { // 编辑表单提交
// 从historyData历史数据里面,把隐藏字段移除
removeField?.forEach(item => {
if (item.component_props.disabled) {
// 隐藏字段的值需要被删除
delete historyData.value[item.key];
}
});
// 显示的数据不是完整的数据, 把historyData历史数据合并到postData.value提交数据里面
for (let key in historyData.value) {
if (!(key in postData.value)) {
...
...
Please
register
or
login
to post a comment