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
c0b69381
Commit
c0b69381
authored
Jul 19, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改考勤汇总
parent
3db4eab4
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
189 additions
and
177 deletions
+189
-177
attendance-performance-manager-ui/admin/src/components/SearchForm.vue
...erformance-manager-ui/admin/src/components/SearchForm.vue
+153
-148
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
...nce-manager-ui/admin/src/views/attendance/record/list.vue
+1
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/common/code/ReviewSourceEnum.java
...in/java/com/mortals/xhx/common/code/ReviewSourceEnum.java
+4
-4
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckComplainRecordController.java
...s/xhx/module/check/web/CheckComplainRecordController.java
+1
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckReviewRecordController.java
...als/xhx/module/check/web/CheckReviewRecordController.java
+2
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/model/vo/PerformRulesVo.java
...m/mortals/xhx/module/perform/model/vo/PerformRulesVo.java
+11
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformComplainRecordController.java
...x/module/perform/web/PerformComplainRecordController.java
+15
-25
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformReviewRecordController.java
...xhx/module/perform/web/PerformReviewRecordController.java
+2
-0
No files found.
attendance-performance-manager-ui/admin/src/components/SearchForm.vue
View file @
c0b69381
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
clearable=
"true"
clearable=
"true"
@
change=
"item.change"
@
change=
"item.change"
@
clear=
"item.clear"
@
clear=
"item.clear"
:placeholder=
"item.label ? item.label : '请选择'"
v-if=
"item.type === 'select'"
v-if=
"item.type === 'select'"
>
>
<el-option
<el-option
...
@@ -111,7 +110,7 @@
...
@@ -111,7 +110,7 @@
v-if=
"item.type === 'date' && !item.valueFormat"
v-if=
"item.type === 'date' && !item.valueFormat"
type=
"date"
type=
"date"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
:placeholder=
"item.label ? item.label : '选择日期'
"
placeholder=
"选择日期
"
>
>
</el-date-picker>
</el-date-picker>
...
@@ -120,7 +119,7 @@
...
@@ -120,7 +119,7 @@
v-if=
"item.type === 'date' && item.valueFormat"
v-if=
"item.type === 'date' && item.valueFormat"
type=
"date"
type=
"date"
:value-format=
"item.valueFormat"
:value-format=
"item.valueFormat"
:placeholder=
"item.label ? item.label : '选择日期'
"
placeholder=
"选择日期
"
>
>
</el-date-picker>
</el-date-picker>
...
@@ -129,7 +128,7 @@
...
@@ -129,7 +128,7 @@
v-if=
"item.type === 'month' && !item.valueFormat"
v-if=
"item.type === 'month' && !item.valueFormat"
type=
"month"
type=
"month"
value-format=
"yyyy-MM"
value-format=
"yyyy-MM"
:placeholder=
"item.label ? item.label : '选择月份'
"
placeholder=
"选择月份
"
>
>
</el-date-picker>
</el-date-picker>
...
@@ -138,7 +137,7 @@
...
@@ -138,7 +137,7 @@
v-if=
"item.type === 'month' && item.valueFormat"
v-if=
"item.type === 'month' && item.valueFormat"
type=
"month"
type=
"month"
:value-format=
"item.valueFormat"
:value-format=
"item.valueFormat"
:placeholder=
"item.label ? item.label : '选择月份'
"
placeholder=
"选择月份
"
>
>
</el-date-picker>
</el-date-picker>
...
@@ -154,7 +153,7 @@
...
@@ -154,7 +153,7 @@
<el-form-item>
<el-form-item>
<el-button
<el-button
type=
"primary
"
type=
"primary"
class=
"addclass
"
icon=
"el-icon-search"
icon=
"el-icon-search"
@
click=
"onSubmit"
@
click=
"onSubmit"
title=
"查询"
title=
"查询"
...
@@ -194,16 +193,17 @@ export default {
...
@@ -194,16 +193,17 @@ export default {
},
},
watch
:
{
watch
:
{
$route
(
route
)
{
$route
(
route
)
{
console
.
log
(
222
)
this
.
initForm
(
route
.
query
);
this
.
initForm
(
route
.
query
);
},
},
},
},
async
created
()
{
async
created
()
{
console
.
log
(
"
1111
"
)
this
.
initForm
(
this
.
$route
.
query
);
this
.
initForm
(
this
.
$route
.
query
);
},
},
methods
:
{
methods
:
{
remoteMethod
(
query
,
searchType
)
{
remoteMethod
(
query
,
searchType
)
{
if
(
query
==
""
)
{
if
(
query
==
""
)
{
console
.
log
(
"
查询参数为空!
"
);
return
;
return
;
}
}
this
.
loading
=
true
;
this
.
loading
=
true
;
...
@@ -254,11 +254,12 @@ export default {
...
@@ -254,11 +254,12 @@ export default {
}
}
});
});
this
.
form
=
Object
.
assign
({},
this
.
form
,
newFormData
);
this
.
form
=
Object
.
assign
({},
this
.
form
,
newFormData
);
this
.
form
=
Object
.
assign
({},
this
.
form
,
data
);
//
this.form = Object.assign({}, this.form, data);
// console.log(
this.form,'dddddd'
)
// console.log(
"after form",this.form
)
},
},
cleanForm
()
{
cleanForm
()
{
this
.
clean
();
this
.
clean
();
this
.
onSubmit
();
},
},
// 清空表单值
// 清空表单值
clean
()
{
clean
()
{
...
@@ -267,55 +268,30 @@ export default {
...
@@ -267,55 +268,30 @@ export default {
if
(
item
.
name
===
"
groupList
"
)
{
if
(
item
.
name
===
"
groupList
"
)
{
newData
[
item
.
name
]
=
[];
newData
[
item
.
name
]
=
[];
}
else
{
}
else
{
newData
[
item
.
name
]
=
item
.
multiple
?
[]
:
""
;
newData
[
item
.
name
]
=
item
.
multiple
?
[]
:
undefined
;
}
}
});
});
this
.
form
=
Object
.
assign
({},
this
.
form
,
newData
);
this
.
form
=
Object
.
assign
({},
this
.
form
,
newData
);
this
.
onSubmit
();
},
},
onSubmit
()
{
onSubmit
()
{
let
{
path
,
query
}
=
this
.
$route
;
let
{
path
,
query
}
=
this
.
$route
;
if
(
this
.
form
.
attendanceDateStart
&&
this
.
form
.
attendanceDateEnd
)
{
let
data
=
this
.
decode
(
this
.
form
);
let
startValue
=
Date
.
parse
(
this
.
form
.
attendanceDateStart
);
console
.
log
(
"
data:
"
,
data
)
let
endValue
=
Date
.
parse
(
this
.
form
.
attendanceDateEnd
);
console
.
log
(
"
form
"
,
this
.
form
)
if
(
startValue
>
endValue
)
{
//delete this.form["deviceStatusList"]
this
.
$message
.
error
(
"
查询-结束的日期需大于开始日期
"
);
this
.
form
.
attendanceDateEnd
=
""
;
return
false
;
}
}
if
(
this
.
form
.
startTime
&&
this
.
form
.
endTime
)
{
let
startValue
=
Date
.
parse
(
this
.
form
.
startTime
);
let
endValue
=
Date
.
parse
(
this
.
form
.
endTime
);
if
(
startValue
>
endValue
)
{
this
.
$message
.
error
(
"
查询-结束的日期需大于开始日期
"
);
this
.
form
.
endTime
=
""
;
return
false
;
}
}
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
));
//不更改原始数据
// console.log(this.form,'form参数')
let
data
=
this
.
decode
(
params
);
// Object.assign({}, query, data)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
path
,
path
:
path
,
query
:
{
query
:
Object
.
assign
({},
query
,
data
),
...
query
,
...
data
,
},
});
});
//this.decodetwo(this.form)
},
},
// 解析url字符串,去除query字段
// 解析url字符串,去除query字段
encode
(
data
,
formTemp
)
{
encode
(
data
,
formTemp
)
{
let
newData
=
{};
let
newData
=
{};
Object
.
keys
(
Qs
.
parse
(
data
)).
forEach
((
item
)
=>
{
Object
.
keys
(
Qs
.
parse
(
data
)).
forEach
((
item
)
=>
{
console
.
log
(
item
);
if
(
/^query
\.
/
.
test
(
item
))
{
if
(
/^query
\.
/
.
test
(
item
))
{
let
val
=
data
[
item
];
let
val
=
data
[
item
];
let
key
=
item
.
replace
(
/^query
\.
/
,
""
);
let
key
=
item
.
replace
(
/^query
\.
/
,
""
);
this
.
search
.
forEach
((
obj
)
=>
{
this
.
search
.
forEach
((
obj
)
=>
{
if
(
if
(
obj
.
name
===
key
&&
obj
.
name
===
key
&&
...
@@ -365,6 +341,34 @@ export default {
...
@@ -365,6 +341,34 @@ export default {
});
});
return
newData
;
return
newData
;
},
},
decodetwo
(
data
)
{
let
newData
=
{
page
:
1
};
Object
.
keys
(
data
).
forEach
((
item
)
=>
{
let
val
=
data
[
item
];
this
.
search
.
forEach
((
obj
)
=>
{
if
(
obj
.
name
===
item
&&
obj
.
fuzzy
===
true
&&
val
&&
val
.
length
>
0
)
{
//支持模糊查询,收尾增加百分号
val
=
val
.
trim
();
if
(
val
.
charAt
(
0
)
==
"
%
"
)
{
val
=
val
.
slice
(
1
);
}
if
(
val
.
charAt
(
val
.
length
-
1
)
==
"
%
"
)
{
val
=
val
+
"
%
"
;
}
}
});
newData
[
item
]
=
this
.
decodeVal
(
val
);
});
return
newData
;
},
decodeVal
(
val
)
{
decodeVal
(
val
)
{
let
valType
=
type
(
val
);
let
valType
=
type
(
val
);
if
([
"
Number
"
,
"
Boolean
"
].
indexOf
(
valType
)
>
-
1
)
{
if
([
"
Number
"
,
"
Boolean
"
].
indexOf
(
valType
)
>
-
1
)
{
...
@@ -386,7 +390,7 @@ export default {
...
@@ -386,7 +390,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
form
:
{
form
:
{
//
groupList: [],
groupList
:
[],
},
},
remoteOptions
:
{},
remoteOptions
:
{},
};
};
...
@@ -424,3 +428,4 @@ export default {
...
@@ -424,3 +428,4 @@ export default {
}
}
}
}
</
style
>
</
style
>
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
View file @
c0b69381
...
@@ -470,6 +470,7 @@ export default {
...
@@ -470,6 +470,7 @@ export default {
formatter
:
this
.
formatterDateOnly
,
formatter
:
this
.
formatterDateOnly
,
},
},
{
label
:
"
员工姓名
"
,
prop
:
"
staffName
"
},
{
label
:
"
员工姓名
"
,
prop
:
"
staffName
"
},
{
label
:
"
员工工号
"
,
prop
:
"
workNum
"
},
{
{
label
:
"
考勤组
"
,
label
:
"
考勤组
"
,
prop
:
"
attendanceGroupName
"
,
prop
:
"
attendanceGroupName
"
,
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/common/code/ReviewSourceEnum.java
View file @
c0b69381
...
@@ -4,7 +4,7 @@ import java.util.LinkedHashMap;
...
@@ -4,7 +4,7 @@ import java.util.LinkedHashMap;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
*
评价来源(窗口评价系统,导视系统,自助服务系统,微官网,其它
)枚举类
*
核查结果(1.加分或扣分,2.不扣分
)枚举类
*
*
* @author zxfei
* @author zxfei
*/
*/
...
@@ -31,9 +31,9 @@ public enum ReviewSourceEnum {
...
@@ -31,9 +31,9 @@ public enum ReviewSourceEnum {
}
}
public
static
ReviewSourceEnum
getByValue
(
String
value
)
{
public
static
ReviewSourceEnum
getByValue
(
String
value
)
{
for
(
ReviewSourceEnum
reviewSource
Enum
:
ReviewSourceEnum
.
values
())
{
for
(
ReviewSourceEnum
checkResult
Enum
:
ReviewSourceEnum
.
values
())
{
if
(
reviewSource
Enum
.
getValue
()
==
value
)
{
if
(
checkResult
Enum
.
getValue
()
==
value
)
{
return
reviewSource
Enum
;
return
checkResult
Enum
;
}
}
}
}
return
null
;
return
null
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckComplainRecordController.java
View file @
c0b69381
...
@@ -53,6 +53,7 @@ public class CheckComplainRecordController extends BaseCRUDJsonBodyMappingContro
...
@@ -53,6 +53,7 @@ public class CheckComplainRecordController extends BaseCRUDJsonBodyMappingContro
this
.
addDict
(
model
,
"checkResult"
,
CheckResultEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkResult"
,
CheckResultEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkResultAdd"
,
CheckResultAddEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkResultAdd"
,
CheckResultAddEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkResultSub"
,
CheckResultSubEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkResultSub"
,
CheckResultSubEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"complainSource"
,
ReviewSourceEnum
.
getEnumMap
());
}
}
@Override
@Override
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckReviewRecordController.java
View file @
c0b69381
...
@@ -65,6 +65,8 @@ public class CheckReviewRecordController extends BaseCRUDJsonBodyMappingControll
...
@@ -65,6 +65,8 @@ public class CheckReviewRecordController extends BaseCRUDJsonBodyMappingControll
this
.
addDict
(
model
,
"checkResult"
,
CheckResultEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkResult"
,
CheckResultEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkResultAdd"
,
CheckResultAddEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkResultAdd"
,
CheckResultAddEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkResultSub"
,
CheckResultSubEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkResultSub"
,
CheckResultSubEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"reviewSource"
,
ReviewSourceEnum
.
getEnumMap
());
}
}
@Override
@Override
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/model/vo/PerformRulesVo.java
View file @
c0b69381
...
@@ -3,6 +3,8 @@ import com.mortals.framework.model.BaseEntityLong;
...
@@ -3,6 +3,8 @@ import com.mortals.framework.model.BaseEntityLong;
import
com.mortals.xhx.module.perform.model.PerformRulesEntity
;
import
com.mortals.xhx.module.perform.model.PerformRulesEntity
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
com.mortals.xhx.module.perform.model.PerformRulesQuery
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
* 绩效规则信息视图对象
* 绩效规则信息视图对象
...
@@ -15,4 +17,13 @@ public class PerformRulesVo extends BaseEntityLong {
...
@@ -15,4 +17,13 @@ public class PerformRulesVo extends BaseEntityLong {
/** 类型名称 **/
/** 类型名称 **/
private
String
typeName
;
private
String
typeName
;
/** 规则编码,唯一,默认规则类型内容简称拼音首字母。排除列表 */
private
List
<
String
>
ruleCodeNotList
;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private
List
<
PerformRulesQuery
>
orConditionList
;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private
List
<
PerformRulesQuery
>
andConditionList
;
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformComplainRecordController.java
View file @
c0b69381
package
com.mortals.xhx.module.perform.web
;
package
com.mortals.xhx.module.perform.web
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.*
;
import
com.mortals.xhx.common.code.*
;
import
org.apache.tomcat.jni.Proc
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.module.perform.model.PerformComplainRecordEntity
;
import
com.mortals.xhx.module.perform.model.PerformComplainRecordEntity
;
import
com.mortals.xhx.module.perform.service.PerformComplainRecordService
;
import
com.mortals.xhx.module.perform.service.PerformComplainRecordService
;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.Arrays
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
static
com
.
mortals
.
framework
.
ap
.
SysConstains
.*;
/**
/**
*
* 评价绩效投诉记录信息
* 评价绩效投诉记录信息
*
*
* @author zxfei
* @author zxfei
* @date 2023-07-11
* @date 2023-07-11
*/
*/
@RestController
@RestController
@RequestMapping
(
"perform/complain/record"
)
@RequestMapping
(
"perform/complain/record"
)
public
class
PerformComplainRecordController
extends
BaseCRUDJsonBodyMappingController
<
PerformComplainRecordService
,
PerformComplainRecordEntity
,
Long
>
{
public
class
PerformComplainRecordController
extends
BaseCRUDJsonBodyMappingController
<
PerformComplainRecordService
,
PerformComplainRecordEntity
,
Long
>
{
@Autowired
@Autowired
private
ParamService
paramService
;
private
ParamService
paramService
;
public
PerformComplainRecordController
(){
public
PerformComplainRecordController
()
{
super
.
setModuleDesc
(
"评价绩效投诉记录信息"
);
super
.
setModuleDesc
(
"评价绩效投诉记录信息"
);
}
}
@Override
@Override
...
@@ -50,6 +37,9 @@ public class PerformComplainRecordController extends BaseCRUDJsonBodyMappingCont
...
@@ -50,6 +37,9 @@ public class PerformComplainRecordController extends BaseCRUDJsonBodyMappingCont
this
.
addDict
(
model
,
"subAddType"
,
SubAddTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"subAddType"
,
SubAddTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkType"
,
CheckTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkType"
,
CheckTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"complainSource"
,
ReviewSourceEnum
.
getEnumMap
());
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformReviewRecordController.java
View file @
c0b69381
...
@@ -54,6 +54,8 @@ public class PerformReviewRecordController extends BaseCRUDJsonBodyMappingContro
...
@@ -54,6 +54,8 @@ public class PerformReviewRecordController extends BaseCRUDJsonBodyMappingContro
this
.
addDict
(
model
,
"subAddType"
,
SubAddTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"subAddType"
,
SubAddTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkType"
,
CheckTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"checkType"
,
CheckTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"reviewSource"
,
ReviewSourceEnum
.
getEnumMap
());
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
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