Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
platform
hg-smart
Commits
b3011cba
Commit
b3011cba
authored
Nov 08, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增目录目录名称为空校验
parent
fcac6cfd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
HGWD001E.js
src/main/webapp/HG/WD/HGWD001E.js
+6
-0
HGWD001F.js
src/main/webapp/HG/WD/HGWD001F.js
+6
-0
No files found.
src/main/webapp/HG/WD/HGWD001E.js
View file @
b3011cba
...
...
@@ -143,11 +143,17 @@ let save = function (btnNode) {
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
projCode
=
item
.
get
(
"projCode"
);
let
fileName
=
item
.
get
(
"fileName"
);
if
(
isBlank
(
projCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
所属项目
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
isBlank
(
fileName
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
目录名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
...
...
src/main/webapp/HG/WD/HGWD001F.js
View file @
b3011cba
...
...
@@ -122,11 +122,17 @@ let save = function (btnNode) {
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
projCode
=
item
.
get
(
"projName"
);
let
fileName
=
item
.
get
(
"fileName"
);
if
(
isBlank
(
projCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
所属项目
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
isBlank
(
fileName
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
目录名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
...
...
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