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
88b32b4b
Commit
88b32b4b
authored
Apr 14, 2023
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改校验问题
parent
b692c87d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
operationFunc.js
src/mixin/operationFunc.js
+3
-2
No files found.
src/mixin/operationFunc.js
View file @
88b32b4b
...
...
@@ -65,6 +65,7 @@ export default {
loading
.
close
();
return
}
loading
.
close
();
const
tab
=
this
.
showBackendErrors
(
errorRules
)
if
(
tab
)
{
// tab切换之后,需出发tab-click的事件
...
...
@@ -77,7 +78,6 @@ export default {
message
:
"校核失败"
,
type
:
"error"
,
});
loading
.
close
();
return
}
}
...
...
@@ -89,12 +89,13 @@ export default {
type
:
'error'
,
});
this
.
$nextTick
(()
=>
{
console
.
log
(
'========'
,
this
.
$refs
[
'modelForm'
])
let
isError
=
document
.
querySelectorAll
(
'.is-error'
)
let
fields
=
this
.
$refs
[
'modelForm'
].
fields
fields
.
map
((
fieldItem
)
=>
{
if
(
fieldItem
.
validateState
===
'error'
)
{
let
errorComponentName
=
fieldItem
.
$options
.
componentName
console
.
log
(
'fieldItem==='
,
fieldItem
)
//
console.log('fieldItem===', fieldItem)
// 切换tab
if
(
errorComponentName
===
'ElTabPane'
)
{
fieldItem
.
$parent
.
currentName
=
fieldItem
.
name
...
...
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