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
2025-06-10 15:45:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bd8e4e26b408cf0fe4b5e0c3a9a10ea4ed2e72d6
bd8e4e26
1 parent
f5c363cd
fix: 修复表单提交时参数合并问题
确保在新增表单提交时正确合并路由参数和表单数据 大义工传递参数
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
src/views/index.vue
src/views/index.vue
View file @
bd8e4e2
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-06-
04 18:35:50
* @LastEditTime: 2025-06-
10 15:42:37
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -1030,14 +1030,15 @@ const onSubmit = async (values) => { // 表单提交回调
submitStatus.value = true;
// TAG:不同类型提交表单处理
if (page_type === 'add' || page_type == null) { // 新增表单提交
let queryObj = { ...$route.query, ...postData.value }; // 大义工传递参数
// 通过验证
const result = await addFormDataAPI({
form_code: $route.query.code,
data:
postData.value
,
data:
queryObj
,
openid: iframe_openid,
flow_id: formSetting.value.flow_id, // 流程相关保存接口, 把flow_id传到后台
flow_node_action_id: 'commit', // 流程节点的操作按钮的ID, 因为只有提交操作,ID写死
force_back
force_back
,
});
if (result.code) {
// 提交按钮禁用状态
...
...
Please
register
or
login
to post a comment