Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
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
java-sunac-report
sunac_report
Commits
a7a4d918
Commit
a7a4d918
authored
Sep 09, 2019
by
sunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能修改 不强制业务类别
parent
4b2385a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+9
-1
reportQyList.jsp
src/main/webapp/WEB-INF/views/modules/report/reportQyList.jsp
+1
-1
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+10
-2
No files found.
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
a7a4d918
...
...
@@ -710,7 +710,15 @@ public class ReportController extends BaseController {
*/
@RequestMapping
(
value
=
"addTrack"
)
public
String
addTrack
(
ReportEntity
reportEntity
,
HttpServletRequest
request
,
Model
model
,
RedirectAttributes
redirectAttributes
)
{
model
,
RedirectAttributes
redirectAttributes
,
String
supplementType
,
String
supplementCategory
)
{
/*如果传过来的 业务类型 类别 为空 将原来数据的业务类型 类别也修改为空 */
if
(
supplementType
==
null
){
reportEntity
.
setSupplementType
(
""
);
}
if
(
supplementCategory
==
null
){
reportEntity
.
setSupplementCategory
(
""
);
}
//判断登录人的角色
User
user
=
UserUtils
.
getUser
();
...
...
src/main/webapp/WEB-INF/views/modules/report/reportQyList.jsp
View file @
a7a4d918
...
...
@@ -579,7 +579,7 @@
<c:forEach
items=
"${page.list}"
var=
"report"
varStatus=
"vs"
>
<tr
class=
"reportList"
>
<td
align=
"center"
style=
"width:5%"
></td>
<td
align=
"left"
style=
"width:15%"
title=
${report.supplementTitle}
>
${report.supplementTitle}
</td>
<td
align=
"left"
style=
"width:15%"
title=
${report.supplementTitle}
>
<a
href=
"${ctx}/report/view?id=${report.id}"
>
${report.supplementTitle}
</a>
</td>
</c:forEach>
</c:if>
...
...
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
a7a4d918
...
...
@@ -51,13 +51,21 @@
maxlength
:
"最多输入{0}个字符"
}
}
/*遍历业务类别option选项 判断业务类型下面是否有类别 */
var
array
=
new
Array
();
//定义数组
$
(
"#supplementCategory option"
).
each
(
function
(){
//遍历全部option
var
txt
=
$
(
this
).
text
();
//获取option的内容
if
(
txt
!=
"请选择"
)
//如果不是“全部”
array
.
push
(
txt
);
//添加到数组中
});
/*alert(array.length);*/
if
(
$
(
"#supplementType"
).
val
()
==
null
||
$
(
"#supplementType"
).
val
()
==
" "
)
{
top
.
$
.
jBox
.
tip
(
'请选择业务类型'
,
'warning'
);
}
else
if
(
$
(
"#supplementGroup"
).
val
()
==
" "
)
{
top
.
$
.
jBox
.
tip
(
'请选择被举报集团'
,
'warning'
);
}
else
if
(
$
(
"#supplementArea"
).
val
()
==
" "
)
{
top
.
$
.
jBox
.
tip
(
'请选择被举报区域'
,
'warning'
);
}
else
if
(
$
(
"#supplementCategory"
).
val
()
==
null
||
$
(
"#supplementCategory"
).
val
()
==
" "
)
{
}
else
if
(
(
$
(
"#supplementCategory"
).
val
()
==
null
&&
array
.
length
!=
0
)
||
(
$
(
"#supplementCategory"
).
val
()
==
" "
&&
array
.
length
!=
0
)
)
{
top
.
$
.
jBox
.
tip
(
'请选择业务类别'
,
'warning'
);
}
else
{
submitCount
+=
1
;
...
...
@@ -1157,7 +1165,7 @@
</select>
<
%
--
<
options
items=
"${ctBbtcRegionList}"
itemLabel=
"name"
itemValue=
"id"
--
%
>
<
%
--htmlEscape=
"false"
/></select>
--%>
<
span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span
>
<
%
--
<
span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
--%
>
</div>
</div>
...
...
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