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
5d7e694d
Commit
5d7e694d
authored
Sep 05, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkAll时,ModuleList的表格数据校验错误信息
parent
aa661ba7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
14 deletions
+28
-14
commonApi.js
src/mixin/commonApi.js
+6
-1
commonFuncs.js
src/mixin/commonFuncs.js
+4
-1
commonProcess.js
src/mixin/commonProcess.js
+3
-2
index.js
src/utils/index.js
+4
-1
Engp.vue
src/views/Public/Engp.vue
+11
-9
No files found.
src/mixin/commonApi.js
View file @
5d7e694d
...
...
@@ -52,7 +52,12 @@ export default {
if
(
!
this
.
getRoot
().
$refs
.
modelForm
)
{
return
}
this
.
getRoot
().
$refs
.
modelForm
.
clearValidate
();
if
(
!
this
.
isChecking
)
{
this
.
getRoot
().
$refs
.
modelForm
.
clearValidate
();
}
else
{
// 当 checkAll 操作时,由面板切换所触发的 executeRule 请求时,不清空 checkAll 的错误信息
this
.
isChecking
=
false
;
}
const
fields
=
this
.
getRoot
().
$refs
.
modelForm
.
fields
;
const
tab
=
Utils
.
positioningErrorMsg
(
fieldErrors
,
fields
);
return
tab
;
...
...
src/mixin/commonFuncs.js
View file @
5d7e694d
...
...
@@ -92,7 +92,10 @@ export default {
const
tab
=
this
.
showBackendErrors
(
fieldErrors
)
if
(
tab
)
{
// tab切换之后,需出发tab-click的事件
this
.
tabClick
(
tab
);
if
(
tab
.
name
!==
this
.
tabVal
)
{
this
.
isChecking
=
true
this
.
myTabClick
?
this
.
myTabClick
(
tab
)
:
this
.
tabClick
(
tab
);
}
this
.
$notify
({
title
:
"错误"
,
message
:
"校核失败"
,
...
...
src/mixin/commonProcess.js
View file @
5d7e694d
...
...
@@ -14,7 +14,8 @@ export default {
columnStr
:
''
,
data
:
[],
rulePath
:
''
}
},
isChecking
:
false
}
},
created
()
{
...
...
@@ -122,7 +123,7 @@ export default {
* Tabs切换事件
* @param {VM} tab
*/
tabClick
(
tab
)
{
async
tabClick
(
tab
)
{
if
(
this
.
isInDisplay
)
{
return
}
...
...
src/utils/index.js
View file @
5d7e694d
...
...
@@ -153,6 +153,9 @@ export default class Utils {
}
static
positioningErrorMsg
(
fieldErrors
,
formFields
)
{
if
(
Object
.
keys
(
fieldErrors
).
length
===
0
)
{
return
null
;
}
let
firstErrorItem
=
null
// 顺序
for
(
let
i
=
0
;
i
<
formFields
.
length
;
i
++
)
{
...
...
@@ -190,7 +193,7 @@ export default class Utils {
}
if
(
firstErrorTab
)
{
const
tabs
=
firstErrorTab
.
$parent
tabs
.
currentName
=
firstErrorTab
.
paneN
ame
tabs
.
value
=
firstErrorTab
.
n
ame
}
setTimeout
(()
=>
{
// 滚动到指定节点
...
...
src/views/Public/Engp.vue
View file @
5d7e694d
...
...
@@ -15,15 +15,17 @@
</el-table-column>
<el-table-column
prop=
"matdat"
label=
"Maturity"
width=
"150px"
>
<template
slot-scope=
"scope"
>
<c-date-picker
type=
"date"
v-model=
"scope.row.matdat"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择Date"
style=
"width: 100%"
@
change=
"executeDefault('liaall.liaallg.matdat')"
>
</c-date-picker>
<el-form-item
label-width=
"0"
:prop=
"'liaall.liaallg.' + scope.$index + '.matdat'"
>
<c-date-picker
type=
"date"
v-model=
"scope.row.matdat"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择Date"
style=
"width: 100%"
@
change=
"executeDefault('liaall.liaallg.matdat')"
>
</c-date-picker>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
prop=
"tenday"
label=
"Tenor"
width=
"70px"
>
...
...
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