Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
vue-gjjs
Commits
3bff1cba
Commit
3bff1cba
authored
Apr 13, 2023
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提交时候不应该报检验成功
parent
38e9cdde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
operationFunc.js
src/mixin/operationFunc.js
+9
-7
No files found.
src/mixin/operationFunc.js
View file @
3bff1cba
...
@@ -5,7 +5,7 @@ export default {
...
@@ -5,7 +5,7 @@ export default {
methods
:
{
methods
:
{
// 提交
// 提交
handleSubmit
()
{
handleSubmit
()
{
this
.
handleCheck
().
then
(
async
()
=>
{
this
.
handleCheck
(
true
).
then
(
async
()
=>
{
let
params
=
{
let
params
=
{
...
this
.
model
,
...
this
.
model
,
gidgrp
:
{
gidgrp
:
{
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
})
})
},
},
// 检核
// 检核
handleCheck
()
{
handleCheck
(
isSubmit
)
{
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
// 前端检验
// 前端检验
this
.
$refs
[
'modelForm'
].
validate
(
async
(
validStatic
)
=>
{
this
.
$refs
[
'modelForm'
].
validate
(
async
(
validStatic
)
=>
{
...
@@ -54,11 +54,13 @@ export default {
...
@@ -54,11 +54,13 @@ export default {
if
(
errorRules
&&
!
keysList
.
length
)
{
if
(
errorRules
&&
!
keysList
.
length
)
{
// 清除之前的校验状态
// 清除之前的校验状态
this
.
$refs
[
'modelForm'
].
clearValidate
();
this
.
$refs
[
'modelForm'
].
clearValidate
();
this
.
$notify
({
if
(
!
isSubmit
)
{
title
:
"成功"
,
this
.
$notify
({
message
:
"校验成功"
,
title
:
"成功"
,
type
:
"success"
,
message
:
"校验成功"
,
});
type
:
"success"
,
});
}
resolve
()
resolve
()
loading
.
close
();
loading
.
close
();
return
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment