Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
5eb32906
Commit
5eb32906
authored
Jul 22, 2019
by
Mccoy Z Xia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复calendar页面的一些bug
parent
32d0df77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
CalendarServiceImpl.java
...va/pwc/taxtech/atms/service/impl/CalendarServiceImpl.java
+16
-7
calendar-display.ctrl.js
...main/webapp/app/calendar/display/calendar-display.ctrl.js
+4
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CalendarServiceImpl.java
View file @
5eb32906
...
...
@@ -415,7 +415,7 @@ public class CalendarServiceImpl extends BaseService implements ICalendarService
private
List
mergeEventList
(
List
<
CalendarEvent
>
config2EventList
,
List
<
CalendarEvent
>
eventList
)
{
if
(
CollectionUtils
.
isNotEmpty
(
eventList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
eventList
))
{
config2EventList
=
config2EventList
.
stream
()
.
filter
(
l1
->
eventList
.
stream
()
.
anyMatch
(
l2
->
...
...
@@ -438,6 +438,7 @@ public class CalendarServiceImpl extends BaseService implements ICalendarService
/**
* 将结果转换为CalendarEventDto List,并为EntityName,TaskTypeName,Type赋值
*
* @param sourceList
* @param type
* @return
...
...
@@ -451,13 +452,21 @@ public class CalendarServiceImpl extends BaseService implements ICalendarService
taskTypeMap
=
calendarExtMapper
.
getAllTaskTypeMapList
();
}
if
(
activeEntityMap
==
null
||
taskTypeMap
==
null
)
{
return
null
;
}
for
(
CalendarEvent
p
:
sourceList
)
{
CalendarEventDto
dto
=
new
CalendarEventDto
();
beanUtil
.
copyProperties
(
p
,
dto
);
dto
.
setEntityName
(
activeEntityMap
.
get
(
p
.
getEntityId
()).
getName
());
dto
.
setTaskTypeName
(
taskTypeMap
.
get
(
p
.
getTaskTypeId
()).
getName
());
dto
.
setType
(
Integer
.
parseInt
(
type
));
eventDtoList
.
add
(
dto
);
if
(
activeEntityMap
.
containsKey
(
p
.
getEntityId
())
&&
taskTypeMap
.
containsKey
(
p
.
getTaskTypeId
()))
{
CalendarEventDto
dto
=
new
CalendarEventDto
();
beanUtil
.
copyProperties
(
p
,
dto
);
dto
.
setEntityName
(
activeEntityMap
.
get
(
p
.
getEntityId
()).
getName
());
dto
.
setTaskTypeName
(
taskTypeMap
.
get
(
p
.
getTaskTypeId
()).
getName
());
dto
.
setType
(
Integer
.
parseInt
(
type
));
eventDtoList
.
add
(
dto
);
}
}
return
eventDtoList
;
...
...
atms-web/src/main/webapp/app/calendar/display/calendar-display.ctrl.js
View file @
5eb32906
...
...
@@ -622,16 +622,17 @@
};
$scope
.
popupOptions
.
operateModel
=
{
operatorNames
:
loginContext
.
userName
,
staff
:
loginContext
.
userName
,
type
:
1
,
entityId
:
''
,
entityName
:
''
,
operatorIDs
:
loginContext
.
userId
,
operatorIDs
:
loginContext
.
userName
,
effectiveDate
:
new
Date
(),
dueDate
:
start
,
status
:
0
,
btnCreate
:
true
,
taskTypeId
:
userDefine
.
id
,
taskTypeName
:
userDefine
.
taskTypeN
ame
,
taskTypeName
:
userDefine
.
n
ame
,
colorGroup
:
userDefine
.
colorGroup
};
...
...
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