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
439cd50e
Commit
439cd50e
authored
Jul 06, 2023
by
王启林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/attendance-performance-platform
parents
8ddf8bc7
a522edd9
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1898 additions
and
100 deletions
+1898
-100
attendance-performance-manager-ui/admin/src/assets/less/base.css
...nce-performance-manager-ui/admin/src/assets/less/base.css
+5
-0
attendance-performance-manager-ui/admin/src/assets/less/base.less
...ce-performance-manager-ui/admin/src/assets/less/base.less
+5
-0
attendance-performance-manager-ui/admin/src/components/DataTable.vue
...performance-manager-ui/admin/src/components/DataTable.vue
+63
-52
attendance-performance-manager-ui/admin/src/views/Layout.vue
attendance-performance-manager-ui/admin/src/views/Layout.vue
+53
-47
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/dao/FeedbackStaffDao.java
...com/mortals/xhx/module/feedback/dao/FeedbackStaffDao.java
+17
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/dao/ibatis/FeedbackStaffDaoImpl.java
.../xhx/module/feedback/dao/ibatis/FeedbackStaffDaoImpl.java
+21
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/model/FeedbackStaffEntity.java
...ortals/xhx/module/feedback/model/FeedbackStaffEntity.java
+55
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/model/FeedbackStaffQuery.java
...mortals/xhx/module/feedback/model/FeedbackStaffQuery.java
+936
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/model/vo/FeedbackStaffVo.java
...mortals/xhx/module/feedback/model/vo/FeedbackStaffVo.java
+19
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/service/FeedbackStaffService.java
...als/xhx/module/feedback/service/FeedbackStaffService.java
+16
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/service/impl/FeedbackStaffServiceImpl.java
...odule/feedback/service/impl/FeedbackStaffServiceImpl.java
+21
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/web/FeedbackStaffController.java
...tals/xhx/module/feedback/web/FeedbackStaffController.java
+49
-0
attendance-performance-manager/src/main/resources/sqlmap/module/feedback/FeedbackStaffMapper.xml
.../resources/sqlmap/module/feedback/FeedbackStaffMapper.xml
+555
-0
attendance-performance-manager/src/test/java/com/mortals/httpclient/feedback/FeedbackStaffController.http
.../mortals/httpclient/feedback/FeedbackStaffController.http
+57
-0
db/add.sql
db/add.sql
+26
-1
doc/考勤绩效管理系统.docx
doc/考勤绩效管理系统.docx
+0
-0
No files found.
attendance-performance-manager-ui/admin/src/assets/less/base.css
View file @
439cd50e
...
...
@@ -294,3 +294,8 @@ a {
text-align
:
right
;
word-break
:
break-word
;
}
.el-button--primary
{
background
:
linear-gradient
(
90deg
,
#5ab6ff
,
#2e9aff
)
!important
;
color
:
#fff
!important
;
text-align
:
center
!important
;
}
attendance-performance-manager-ui/admin/src/assets/less/base.less
View file @
439cd50e
...
...
@@ -332,3 +332,8 @@ a {
}
}
}
.el-button--primary {
background: linear-gradient(90deg, #5ab6ff, #2e9aff) !important;
color: #fff !important;
text-align: center !important;
}
attendance-performance-manager-ui/admin/src/components/DataTable.vue
View file @
439cd50e
<
template
>
<el-table
size=
'small'
size=
"small"
:data=
"tableData"
:row-key=
"handleRowKeyMethod"
:span-method=
"handleSpanMethod"
...
...
@@ -9,12 +9,13 @@
@
sort-change=
"handleSortChange"
@
row-click=
"handleRowClick"
:row-class-name=
"tableRowClassName"
:empty-text=
'emptyText'
:empty-text=
"emptytxt ? emptytxt : emptyText"
border
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
v-for=
'column in columns'
:key=
'column.prop'
v-for=
"column in columns"
:key=
"column.prop"
:type=
"column.type"
:index=
"handleIndexMethod"
:selectable=
"handleSelectableMethod"
...
...
@@ -24,98 +25,108 @@
:sortable=
"column.sortable"
:show-overflow-tooltip=
"column.tooltip"
:align=
"column.align || 'left'"
:formatter=
'column.formatter'
:reserve-selection=
'column.reserveSelection'
:subColumns=
'column.subColumns'
:formatter=
"column.formatter"
:reserve-selection=
"column.reserveSelection"
:subColumns=
"column.subColumns"
:fixed=
"column.fixed"
>
<el-table-column
v-for=
'sunColumn in column.subColumns'
:key=
'sunColumn.prop'
v-for=
"sunColumn in column.subColumns"
:key=
"sunColumn.prop"
:type=
"sunColumn.type"
:prop=
"sunColumn.prop"
:label=
"sunColumn.label"
:width=
"sunColumn.width"
:sortable=
"sunColumn.sortable"
:align=
"sunColumn.align || 'left'"
:formatter=
'sunColumn.formatter'
:formatter=
"sunColumn.formatter"
/>
</el-table-column>
</el-table>
</
template
>
<
script
>
export
default
{
props
:
{
handleRowKeyMethod
:
{
type
:
Function
,
required
:
false
,
default
:
row
=>
{
return
row
.
id
}
default
:
(
row
)
=>
{
return
row
.
id
;
},
},
handleSelectableMethod
:
{
type
:
Function
,
required
:
false
,
default
:
()
=>
{}
default
:
()
=>
{}
,
},
handleIndexMethod
:
{
type
:
Function
,
required
:
false
,
default
:
()
=>
{}
default
:
()
=>
{}
,
},
handleSpanMethod
:
{
type
:
Function
,
required
:
false
,
default
:
()
=>
{}
default
:
()
=>
{}
,
},
handleSelectionChange
:
{
type
:
Function
,
required
:
false
,
default
:
()
=>
{}
default
:
()
=>
{}
,
},
handleRowClick
:
{
type
:
Function
,
required
:
false
,
default
:
()
=>
{}
default
:
()
=>
{}
,
},
handleSortChange
:
{
type
:
Function
,
required
:
false
,
default
:
()
=>
{}
default
:
()
=>
{}
,
},
tableRowClassName
:
{
type
:
Function
,
required
:
false
,
default
:
()
=>
{}
default
:
()
=>
{}
,
},
loading
:
{
type
:
Boolean
,
required
:
false
,
default
:
true
default
:
true
,
},
tableData
:
{
type
:
Array
,
required
:
false
,
default
:
()
=>
[]
default
:
()
=>
[]
,
},
columns
:
{
type
:
Array
,
required
:
false
,
default
:
()
=>
[],
}
default
:
()
=>
[],
}
,
},
computed
:
{
emptyText
()
{
return
(
!
this
.
loading
&&
!
this
.
tableData
.
length
)
?
'
暂无数据
'
:
'
加载中...
'
return
!
this
.
loading
&&
!
this
.
tableData
.
length
?
"
暂无数据
"
:
"
加载中...
"
;
},
},
methods
:{
mounted
()
{
console
.
log
(
this
.
tableData
);
console
.
log
(
this
.
loading
);
},
watch
:
{
tableData
(
val
)
{
val
.
length
==
0
||
val
.
length
>
0
?
(
this
.
emptytxt
=
"
暂无数据
"
)
:
(
this
.
emptytxt
=
"
加载中...
"
);
},
},
methods
:
{},
data
()
{
return
{}
}
}
return
{
emptytxt
:
""
,
};
},
};
</
script
>
attendance-performance-manager-ui/admin/src/views/Layout.vue
View file @
439cd50e
<
template
>
<div
:style=
"menuPageCss"
class=
"pages page-layout"
>
<LayoutHeader
v-if=
"menuPage!=='left'"
@
changePath=
"changePath"
></LayoutHeader>
<LayoutHeaderLeft
@
toggle=
"toggle"
:isOpen=
"isOpen"
v-if=
"menuPage==='left'"
/>
<LayoutHeader
v-if=
"menuPage !== 'left'"
@
changePath=
"changePath"
></LayoutHeader>
<LayoutHeaderLeft
@
toggle=
"toggle"
:isOpen=
"isOpen"
v-if=
"menuPage === 'left'"
/>
<div
style=
"padding:20px"
>
<router-view
:class=
"
{'active': !isOpen}" />
<router-view
:class=
"
{ active: !isOpen }" />
</div>
</div>
</
template
>
<
script
>
import
LayoutHeader
from
"
../components/Header
"
;
import
LayoutHeaderLeft
from
"
../components/HeaderLeft
"
;
import
TabPane
from
'
../components/tabPane.vue
'
import
TabPane
from
"
../components/tabPane.vue
"
;
const
isPC
=
/
(
iPhone|iPad|iPod|iOS|Android
)
/i
.
test
(
navigator
.
userAgent
);
//菜单位置:取值: left :菜单在左面, top :菜单在上面
const
MenuPage
=
"
top
"
;
...
...
@@ -19,15 +26,15 @@ export default {
components
:
{
LayoutHeader
,
LayoutHeaderLeft
,
TabPane
TabPane
,
},
data
()
{
return
{
isOpen
:
isPC
,
menuPage
:
MenuPage
,
isfresh
:
true
,
path
:
''
}
isfresh
:
true
,
path
:
""
,
};
},
computed
:
{
menuPageCss
()
{
...
...
@@ -35,16 +42,16 @@ export default {
return
{
"
--padding-top
"
:
this
.
menuPage
===
"
left
"
?
"
60px
"
:
"
0px
"
,
"
--margin-left
"
:
this
.
menuPage
===
"
left
"
?
"
200px
"
:
"
0px
"
,
}
}
};
},
},
methods
:
{
toggle
()
{
this
.
isOpen
=
!
this
.
isOpen
;
},
changePath
(
e
)
{
this
.
path
=
e
}
changePath
(
e
)
{
this
.
path
=
e
;
},
},
};
</
script
>
...
...
@@ -65,6 +72,5 @@ export default {
.page-layout {
background: #eee;
}
</
style
>
</
style
>
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/dao/FeedbackStaffDao.java
0 → 100644
View file @
439cd50e
package
com.mortals.xhx.module.feedback.dao
;
import
com.mortals.framework.dao.ICRUDDao
;
import
com.mortals.xhx.module.feedback.model.FeedbackStaffEntity
;
import
java.util.List
;
/**
* 员工反馈问卷Dao
* 员工反馈问卷 DAO接口
*
* @author zxfei
* @date 2023-07-06
*/
public
interface
FeedbackStaffDao
extends
ICRUDDao
<
FeedbackStaffEntity
,
Long
>{
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/dao/ibatis/FeedbackStaffDaoImpl.java
0 → 100644
View file @
439cd50e
package
com.mortals.xhx.module.feedback.dao.ibatis
;
import
org.springframework.stereotype.Repository
;
import
com.mortals.xhx.module.feedback.dao.FeedbackStaffDao
;
import
com.mortals.xhx.module.feedback.model.FeedbackStaffEntity
;
import
java.util.Date
;
import
com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis
;
import
java.util.List
;
/**
* 员工反馈问卷DaoImpl DAO接口
*
* @author zxfei
* @date 2023-07-06
*/
@Repository
(
"feedbackStaffDao"
)
public
class
FeedbackStaffDaoImpl
extends
BaseCRUDDaoMybatis
<
FeedbackStaffEntity
,
Long
>
implements
FeedbackStaffDao
{
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/model/FeedbackStaffEntity.java
0 → 100644
View file @
439cd50e
package
com.mortals.xhx.module.feedback.model
;
import
java.util.List
;
import
java.util.ArrayList
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.feedback.model.vo.FeedbackStaffVo
;
import
lombok.Data
;
/**
* 员工反馈问卷实体对象
*
* @author zxfei
* @date 2023-07-06
*/
@Data
public
class
FeedbackStaffEntity
extends
FeedbackStaffVo
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 反馈问卷id号
*/
private
Long
feedbackId
;
/**
* 用户id
*/
private
Long
staffId
;
/**
* 备注
*/
private
String
remark
;
@Override
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
}
@Override
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
null
)
return
false
;
if
(
obj
instanceof
FeedbackStaffEntity
)
{
FeedbackStaffEntity
tmp
=
(
FeedbackStaffEntity
)
obj
;
if
(
this
.
getId
()
==
tmp
.
getId
())
{
return
true
;
}
}
return
false
;
}
public
void
initAttrValue
(){
this
.
feedbackId
=
0L
;
this
.
staffId
=
0L
;
this
.
remark
=
""
;
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/model/FeedbackStaffQuery.java
0 → 100644
View file @
439cd50e
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/model/vo/FeedbackStaffVo.java
0 → 100644
View file @
439cd50e
package
com.mortals.xhx.module.feedback.model.vo
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.feedback.model.FeedbackStaffEntity
;
import
java.util.ArrayList
;
import
java.util.List
;
import
lombok.Data
;
import
com.mortals.framework.annotation.Excel
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* 员工反馈问卷视图对象
*
* @author zxfei
* @date 2023-07-06
*/
@Data
public
class
FeedbackStaffVo
extends
BaseEntityLong
{
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/service/FeedbackStaffService.java
0 → 100644
View file @
439cd50e
package
com.mortals.xhx.module.feedback.service
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.xhx.module.feedback.model.FeedbackStaffEntity
;
import
com.mortals.xhx.module.feedback.dao.FeedbackStaffDao
;
/**
* FeedbackStaffService
*
* 员工反馈问卷 service接口
*
* @author zxfei
* @date 2023-07-06
*/
public
interface
FeedbackStaffService
extends
ICRUDService
<
FeedbackStaffEntity
,
Long
>{
FeedbackStaffDao
getDao
();
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/service/impl/FeedbackStaffServiceImpl.java
0 → 100644
View file @
439cd50e
package
com.mortals.xhx.module.feedback.service.impl
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.xhx.module.feedback.dao.FeedbackStaffDao
;
import
com.mortals.xhx.module.feedback.model.FeedbackStaffEntity
;
import
com.mortals.xhx.module.feedback.service.FeedbackStaffService
;
import
lombok.extern.slf4j.Slf4j
;
/**
* FeedbackStaffService
* 员工反馈问卷 service实现
*
* @author zxfei
* @date 2023-07-06
*/
@Service
(
"feedbackStaffService"
)
@Slf4j
public
class
FeedbackStaffServiceImpl
extends
AbstractCRUDServiceImpl
<
FeedbackStaffDao
,
FeedbackStaffEntity
,
Long
>
implements
FeedbackStaffService
{
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/web/FeedbackStaffController.java
0 → 100644
View file @
439cd50e
package
com.mortals.xhx.module.feedback.web
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
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.feedback.model.FeedbackStaffEntity
;
import
com.mortals.xhx.module.feedback.service.FeedbackStaffService
;
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.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
* @date 2023-07-06
*/
@RestController
@RequestMapping
(
"feedback/staff"
)
public
class
FeedbackStaffController
extends
BaseCRUDJsonBodyMappingController
<
FeedbackStaffService
,
FeedbackStaffEntity
,
Long
>
{
@Autowired
private
ParamService
paramService
;
public
FeedbackStaffController
(){
super
.
setModuleDesc
(
"员工反馈问卷"
);
}
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
super
.
init
(
model
,
context
);
}
}
\ No newline at end of file
attendance-performance-manager/src/main/resources/sqlmap/module/feedback/FeedbackStaffMapper.xml
0 → 100644
View file @
439cd50e
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/test/java/com/mortals/httpclient/feedback/FeedbackStaffController.http
0 → 100644
View file @
439cd50e
###登录
POST {{baseUrl}}/login/login
Content-Type: application/json
{
"loginName":"admin",
"password":"admin",
"securityCode":"8888"
}
> {%
client.global.set("SmsSet_id", JSON.parse(response.body).data.id);
client.global.set("authToken", JSON.parse(response.body).data.token);
%}
###员工反馈问卷列表
POST {{baseUrl}}/feedback/staff/list
Content-Type: application/json
{
"page":1,
"size":10
}
###员工反馈问卷更新与保存
POST {{baseUrl}}/feedback/staff/save
Authorization: {{authToken}}
Content-Type: application/json
{
"feedbackId":0,
"staffId":0,
"remark":"9ibjqk",
}
> {%
client.global.set("FeedbackStaff_id", JSON.parse(response.body).data.id);
%}
###员工反馈问卷查看
GET {{baseUrl}}/feedback/staff/info?id={{FeedbackStaff_id}}
Accept: application/json
###员工反馈问卷编辑
GET {{baseUrl}}/feedback/staff/edit?id={{FeedbackStaff_id}}
Accept: application/json
###员工反馈问卷删除
GET {{baseUrl}}/feedback/staff/delete?id={{FeedbackStaff_id}}
Authorization: {{authToken}}
Accept: application/json
db/add.sql
View file @
439cd50e
...
...
@@ -251,3 +251,28 @@ INSERT INTO `mortals_xhx_resource` VALUES (null, '绩效问题回答选项-菜
-- ----------------------------
INSERT
INTO
`mortals_xhx_resource`
VALUES
(
null
,
'员工绩效统计-菜单管理-查看'
,
'/staff/perform/summary/list,/staff/perform/summary/view,/staff/perform/summary/info,/staff/perform/summary/export,/staff/perform/summary/exportExcel,/staff/perform/summary/downloadTemplate,/staff/perform/summary/download'
,
3
,
0
,
NULL
,
NULL
,
NULL
,
0
);
INSERT
INTO
`mortals_xhx_resource`
VALUES
(
null
,
'员工绩效统计-菜单管理-维护'
,
'/staff/perform/summary/add,/staff/perform/summary/edit,/staff/perform/summary/delete,/staff/perform/summary/logicDelete,/staff/perform/summary/save,/staff/perform/summary/importData'
,
3
,
0
,
NULL
,
NULL
,
NULL
,
0
);
-- ----------------------------
-- 员工反馈问卷表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mortals_xhx_feedback_staff`
;
CREATE
TABLE
mortals_xhx_feedback_staff
(
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'序号,主键,自增长'
,
`feedbackId`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'反馈问卷id号'
,
`staffId`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'用户id'
,
`remark`
varchar
(
255
)
COMMENT
'备注'
,
`createUserId`
bigint
(
20
)
COMMENT
'创建用户'
,
`createTime`
datetime
COMMENT
'创建时间'
,
`updateUserId`
bigint
(
20
)
COMMENT
'更新用户'
,
`updateTime`
datetime
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'员工反馈问卷'
;
-- ----------------------------
-- 员工反馈问卷资源路径 SQL
-- ----------------------------
INSERT
INTO
`mortals_xhx_resource`
VALUES
(
null
,
'员工反馈问卷-菜单管理-查看'
,
'/feedback/staff/list,/feedback/staff/view,/feedback/staff/info,/feedback/staff/export,/feedback/staff/exportExcel,/feedback/staff/downloadTemplate,/feedback/staff/download'
,
3
,
0
,
NULL
,
NULL
,
NULL
,
0
);
INSERT
INTO
`mortals_xhx_resource`
VALUES
(
null
,
'员工反馈问卷-菜单管理-维护'
,
'/feedback/staff/add,/feedback/staff/edit,/feedback/staff/delete,/feedback/staff/logicDelete,/feedback/staff/save,/feedback/staff/importData'
,
3
,
0
,
NULL
,
NULL
,
NULL
,
0
);
doc/考勤绩效管理系统.docx
View file @
439cd50e
No preview for this file type
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