Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
fc5c8870
authored
2020-11-24 14:25:23 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix():去掉表单验证错误代码
1 parent
8b8a2107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
28 deletions
src/views/zd/zddcb/index.vue
src/views/zd/zddcb/index.vue
View file @
fc5c887
...
...
@@ -22,7 +22,7 @@
<td
colspan=
"2"
>
行政区
</td>
<td
colspan=
"2"
>
<el-form
:rules=
"rules"
ref=
"ruleForm"
:inline=
"true"
>
<el-form-item
prop=
"xzq"
>
<el-form-item
>
<el-select
:disabled=
"formData.qszt!='0'"
class=
"formSelect"
...
...
@@ -482,33 +482,35 @@ export default {
this
.
formData
.
jyjzxg
=
this
.
isInterval
(
this
.
formData
.
jyjzxg
)
?
this
.
jzxg
:
this
.
formData
.
jyjzxg
;
this
.
$refs
[
'ruleForm'
].
validate
((
valid
)
=>
{
debugger
if
(
valid
)
{
alert
(
'submit!'
);
updateQjZdjbxx
(
this
.
formData
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
);
this
.
$message
({
message
:
'保存成功'
,
type
:
"success"
,
});
// 保存成功再次查询
this
.
getZdjbxxData
();
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"warning"
,
});
}
})
.
catch
((
error
)
=>
{});
}
else
{
alert
(
"error submit"
)
return
false
;
}
});
// FIXME:表单验证错误
/* this.$refs['ruleForm'].validate((valid) => {
debugger
if (valid) {
alert('submit!');
} else {
alert("error submit")
return false;
}
});*/
updateQjZdjbxx
(
this
.
formData
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
);
this
.
$message
({
message
:
'保存成功'
,
type
:
"success"
,
});
// 保存成功再次查询
this
.
getZdjbxxData
();
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"warning"
,
});
}
})
.
catch
((
error
)
=>
{});
},
//提交宗地基本信息
...
...
Please
register
or
sign in
to post a comment