Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
a4955f09
Commit
a4955f09
authored
May 27, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
492cbe44
7411d235
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
16 deletions
+41
-16
attendance-performance-manager-ui/admin/src/assets/mixins/formdialog.js
...formance-manager-ui/admin/src/assets/mixins/formdialog.js
+0
-2
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/drawershow.vue
...ui/admin/src/views/attendance/leave/record/drawershow.vue
+22
-10
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
...nce-manager-ui/admin/src/views/attendance/record/list.vue
+7
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceStatServiceImpl.java
...le/attendance/service/impl/AttendanceStatServiceImpl.java
+2
-3
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceLeaveRecordController.java
...odule/attendance/web/AttendanceLeaveRecordController.java
+10
-0
No files found.
attendance-performance-manager-ui/admin/src/assets/mixins/formdialog.js
View file @
a4955f09
...
@@ -93,8 +93,6 @@ export default {
...
@@ -93,8 +93,6 @@ export default {
},
},
// 提交表单
// 提交表单
submitForm
(
ref
)
{
submitForm
(
ref
)
{
this
.
beforeSubmit
(
this
.
form
);
return
;
let
url
=
this
.
urls
.
saveUrl
||
this
.
pageInfo
.
saveUrl
;
let
url
=
this
.
urls
.
saveUrl
||
this
.
pageInfo
.
saveUrl
;
if
(
url
==
"
/staff/perform/stat/save
"
)
{
if
(
url
==
"
/staff/perform/stat/save
"
)
{
url
=
"
/perform/perpose/save
"
;
url
=
"
/perform/perpose/save
"
;
...
...
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/drawershow.vue
View file @
a4955f09
...
@@ -18,6 +18,15 @@
...
@@ -18,6 +18,15 @@
:maxLength=
"10"
:maxLength=
"10"
:disabled=
"pageInfo.type == 'view'"
:disabled=
"pageInfo.type == 'view'"
/>
-->
/>
-->
<Field
label=
"所属部门"
prop=
"deptId"
v-model=
"form.deptId"
type=
"select"
placeholder=
"请选择所属部门"
:enumData=
"dict.deptId"
@
change=
"changeDept(form.deptId)"
/>
<Field
<Field
label=
"请假人"
label=
"请假人"
prop=
"leavePerson"
prop=
"leavePerson"
...
@@ -26,21 +35,12 @@
...
@@ -26,21 +35,12 @@
remote
remote
v-model=
"form.leavePerson"
v-model=
"form.leavePerson"
placeholder=
"请输入请假人"
placeholder=
"请输入请假人"
@
change=
"changeStaff(form.leavePerson)"
:remote-method=
"remoteMethod"
:remote-method=
"remoteMethod"
:maxLength=
"10"
:maxLength=
"10"
:enumData=
"dict.staffList"
:enumData=
"dict.staffList"
:disabled=
"pageInfo.type == 'view'"
:disabled=
"pageInfo.type == 'view'"
/>
/>
<Field
label=
"所属部门"
prop=
"deptId"
v-model=
"form.deptId"
type=
"select"
placeholder=
"请选择所属部门"
:enumData=
"dict.deptId"
:disabled=
"true"
/>
<!--
<Field
label=
"所属部门"
prop=
"deptName"
v-model=
"form.deptName"
type=
"textarea"
placeholder=
"请输入所属部门"
/>
-->
<!--
<Field
label=
"所属部门"
prop=
"deptName"
v-model=
"form.deptName"
type=
"textarea"
placeholder=
"请输入所属部门"
/>
-->
<Field
<Field
label=
"电话号码"
label=
"电话号码"
...
@@ -259,7 +259,19 @@ export default {
...
@@ -259,7 +259,19 @@ export default {
this
.
remoteMethod
();
this
.
remoteMethod
();
},
},
methods
:
{
methods
:
{
changeDept
(
val
)
{
console
.
log
(
val
);
this
.
form
.
leavePerson
=
""
;
let
arr
=
this
.
staffList
.
filter
((
v
)
=>
v
.
deptId
==
val
);
let
obj
=
{};
for
(
let
key
in
arr
)
{
obj
[
arr
[
key
].
id
]
=
arr
[
key
].
name
;
}
this
.
dict
.
staffList
=
obj
;
console
.
log
(
this
.
staffList
);
},
changeStaff
(
val
)
{
changeStaff
(
val
)
{
console
.
log
(
val
);
let
person
=
this
.
staffList
.
filter
((
v
)
=>
v
.
id
==
val
);
let
person
=
this
.
staffList
.
filter
((
v
)
=>
v
.
id
==
val
);
console
.
log
(
person
);
console
.
log
(
person
);
console
.
log
(
this
.
form
);
console
.
log
(
this
.
form
);
...
...
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
View file @
a4955f09
...
@@ -325,7 +325,13 @@ export default {
...
@@ -325,7 +325,13 @@ export default {
property
===
"
offWorkResult
"
property
===
"
offWorkResult
"
)
{
)
{
let
val
=
arr
[
index
][
property
];
let
val
=
arr
[
index
][
property
];
return
this
.
tableData
.
dict
.
goWorkResult
[
val
];
return
val
==
1
?
(
this
.
tableData
.
dict
.
goWorkResult
[
val
]
)
:
(
<
el
-
tag
type
=
{
"
danger
"
}
size
=
"
mini
"
>
{
this
.
tableData
.
dict
.
goWorkResult
[
val
]}
<
/el-tag
>
);
}
}
}
else
{
}
else
{
return
"
-
"
;
return
"
-
"
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceStatServiceImpl.java
View file @
a4955f09
...
@@ -210,13 +210,12 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
...
@@ -210,13 +210,12 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
Calendar
cal
=
Calendar
.
getInstance
();
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
summaryDate
);
cal
.
setTime
(
summaryDate
);
int
dayOfWeek
=
cal
.
get
(
Calendar
.
DAY_OF_WEEK
);
int
dayOfWeek
=
cal
.
get
(
Calendar
.
DAY_OF_WEEK
);
query
.
setDayOfWeek
(
dayOfWeek
);
if
(
dayOfWeek
==
1
||
dayOfWeek
==
7
){
if
(
dayOfWeek
==
1
||
dayOfWeek
==
7
){
//节假日周末补班
//节假日周末补班
if
(
!
isReturn
){
if
(
holidayEntity
!=
null
&&
holidayEntity
.
getWorkorholiday
()==
1
){
query
.
setDayOfWeek
(
2
);
query
.
setDayOfWeek
(
2
);
}
}
}
else
{
query
.
setDayOfWeek
(
dayOfWeek
);
}
}
int
y
=
cal
.
get
(
Calendar
.
YEAR
);
int
y
=
cal
.
get
(
Calendar
.
YEAR
);
int
m
=
cal
.
get
(
Calendar
.
MONTH
)+
1
;
int
m
=
cal
.
get
(
Calendar
.
MONTH
)+
1
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceLeaveRecordController.java
View file @
a4955f09
...
@@ -25,6 +25,7 @@ import com.mortals.xhx.module.staff.model.StaffEntity;
...
@@ -25,6 +25,7 @@ import com.mortals.xhx.module.staff.model.StaffEntity;
import
com.mortals.xhx.module.staff.service.StaffService
;
import
com.mortals.xhx.module.staff.service.StaffService
;
import
com.mortals.xhx.module.workman.model.WorkmanQuery
;
import
com.mortals.xhx.module.workman.model.WorkmanQuery
;
import
com.mortals.xhx.module.workman.service.WorkmanService
;
import
com.mortals.xhx.module.workman.service.WorkmanService
;
import
org.checkerframework.checker.units.qual.A
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -146,4 +147,13 @@ public class AttendanceLeaveRecordController extends BaseCRUDJsonBodyMappingCont
...
@@ -146,4 +147,13 @@ public class AttendanceLeaveRecordController extends BaseCRUDJsonBodyMappingCont
}
}
}
}
@Override
protected
void
addAfter
(
Map
<
String
,
Object
>
model
)
throws
AppException
{
AttendanceLeaveRecordEntity
entity
=
new
AttendanceLeaveRecordEntity
();
entity
.
initAttrValue
();
String
dateStr
=
DateUtils
.
getCurrStrDate
();
entity
.
setStartTime
(
DateUtils
.
StrToDateTime
(
dateStr
+
" 09:00:00"
,
"yyyy-MM-dd HH:mm:ss"
));
entity
.
setEndTime
(
DateUtils
.
StrToDateTime
(
dateStr
+
" 17:00:00"
,
"yyyy-MM-dd HH:mm:ss"
));
model
.
put
(
"entity"
,
entity
);
}
}
}
\ No newline at end of file
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