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
2023-01-09 13:55:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8cb6d93c3f18bf534d13a64a20b7aceef2993974
8cb6d93c
1 parent
860aedf8
放开数据提交功能
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
src/views/index.vue
src/views/index.vue
View file @
8cb6d93
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-01-09 13:
47:56
* @LastEditTime: 2023-01-09 13:
55:29
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -360,20 +360,19 @@ const onSubmit = async (values) => {
postData.value = _.assign(postData.value, rest_data);
// 检查非表单输入项
if (validOther().status) {
console.warn(postData.value);
// // 编辑模式不能提交数据
// if (model === 'edit') return false;
// // 通过验证
// const result = await addFormDataAPI({
// form_code: $route.query.code,
// data: postData.value,
// });
// if (result.code) {
// showSuccessToast("提交成功");
// $router.push({
// path: "/success",
// });
// }
// 编辑模式不能提交数据
if (model === 'edit') return false;
// 通过验证
const result = await addFormDataAPI({
form_code: $route.query.code,
data: postData.value,
});
if (result.code) {
showSuccessToast("提交成功");
$router.push({
path: "/success",
});
}
} else {
console.warn(validOther().key + "不通过验证");
// // 图片上传控件报错提示
...
...
Please
register
or
login
to post a comment