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
e752b076
Commit
e752b076
authored
Aug 01, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tui
parent
22c7afff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
219 additions
and
195 deletions
+219
-195
attendance-performance-manager-ui/admin/src/views/staff/perform/summary/dialogshow.vue
...r-ui/admin/src/views/staff/perform/summary/dialogshow.vue
+219
-195
No files found.
attendance-performance-manager-ui/admin/src/views/staff/perform/summary/dialogshow.vue
View file @
e752b076
...
...
@@ -12,27 +12,49 @@
</div>
</div>
<div
class=
"user-right"
>
<div
class=
"n"
>
{{
form
.
totalScore
}}
</div>
<div
class=
"n"
>
{{
form
.
totalScore
}}
</div>
<div
class=
"m"
>
{{
form
.
month
}}
月得分
</div>
</div>
</div>
<div
class=
"userName user-t-item "
:class=
"
{t2:item.subAddType == 1,t1:item.subAddType == 2}" v-for="(item) in list" :key="item.id">
<div
class=
"userName user-t-item "
:class=
"
{ t2: item.subAddType == 1, t1: item.subAddType == 2 }"
v-for="item in list"
:key="item.id"
>
<div
class=
"user-left"
>
<div
class=
"user-name"
>
{{
dictVal
(
'
checkType
'
,
item
.
checkType
)
}}
{{
dictVal
(
"
checkType
"
,
item
.
checkType
)
}}
</div>
<div
class=
"user-info"
>
<span
class=
"user-i"
>
绩效规则:
{{
item
.
ruleName
}}
</span>
<span
class=
"user-i"
>
绩效规则:
{{
item
.
ruleName
}}
</span>
</div>
<div
class=
"user-info"
>
<span
class=
"user-i"
>
核查时间:
{{
momentVal
(
item
.
checkTime
)
}}
</span>
<span
class=
"user-i"
>
{{
item
.
subAddType
==
1
?
"
加分方式:
"
:
item
.
subAddType
==
2
?
"
扣分方式:
"
:
"
方式:
"
}}{{
util_formatters
(
"
subMethod
"
,
item
.
subMethod
)
}}
</span
>
</div>
<div
class=
"user-info"
v-if=
"item.auditStatus==2"
>
<span
class=
"user-i"
>
核查结果:
{{
item
.
subAddType
==
1
?
'
+
'
:
'
-
'
}}{{
item
.
score
}}
(
{{
item
.
checkResult
}}
)
</span>
<div
class=
"user-info"
>
<span
class=
"user-i"
>
核查时间:
{{
momentVal
(
item
.
checkTime
)
}}
</span>
</div>
<div
class=
"user-info"
v-if=
"item.auditStatus == 2"
>
<span
class=
"user-i"
>
核查结果:
{{
item
.
subAddType
==
1
?
"
+
"
:
"
-
"
}}{{
item
.
score
}}
(
{{
item
.
checkResult
}}
)
</span
>
</div>
</div>
<div
class=
"user-right"
>
<div
class=
"n"
>
{{
item
.
subAddType
==
1
?
'
+
'
:
'
-
'
}}{{
item
.
auditStatus
==
2
?
0
:
item
.
score
}}
</div>
<div
class=
"n"
>
{{
item
.
subAddType
==
1
?
"
+
"
:
"
-
"
}}{{
item
.
auditStatus
==
2
?
0
:
item
.
score
}}
</div>
</div>
</div>
<!--
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
...
...
@@ -58,7 +80,12 @@
</el-form>
-->
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
v-if=
"pageInfo.type !== 'view'"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
v-if=
"pageInfo.type !== 'view'"
@
click=
"submitForm"
>
确 定
</el-button
>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
...
...
@@ -81,71 +108,68 @@ export default {
title
:
"
员工绩效统计
"
,
// 是否显示弹出层
open
:
false
,
toString
:
[
"
month
"
,
],
toString
:
[
"
month
"
],
// 表单校验
rules
:
{
year
:
[
{
required
:
true
,
message
:
"
请输入年
"
,
trigger
:
"
blur
"
},
],
month
:
[
{
required
:
true
,
message
:
"
请输入月
"
,
trigger
:
"
blur
"
},
],
year
:
[{
required
:
true
,
message
:
"
请输入年
"
,
trigger
:
"
blur
"
}],
month
:
[{
required
:
true
,
message
:
"
请输入月
"
,
trigger
:
"
blur
"
}],
},
list
:
[],
dict
:{}
list
:
[],
dict
:
{},
};
},
methods
:
{
// 日期
momentVal
(
v
)
{
return
moment
(
v
).
format
(
'
YYYY-MM-DD HH:SS
'
)
momentVal
(
v
)
{
return
moment
(
v
).
format
(
"
YYYY-MM-DD HH:SS
"
);
},
// 字典转换
dictVal
(
key
,
val
)
{
return
this
.
dict
[
key
][
val
]
dictVal
(
key
,
val
)
{
return
this
.
dict
[
key
][
val
];
},
/** 查看汇总 */
checkAll
(
id
)
{
this
.
$post
(
"
/check/all/record/list
"
,
{
checkStatus
:
2
,
staffId
:
id
}).
then
((
res
)
=>
{
const
{
code
,
data
,
dict
}
=
res
this
.
$post
(
"
/check/all/record/list
"
,
{
checkStatus
:
2
,
staffId
:
id
,
}).
then
((
res
)
=>
{
const
{
code
,
data
,
dict
}
=
res
;
if
(
code
==
1
)
{
const
row
=
data
.
data
||
[]
const
row
=
data
.
data
||
[];
//deductTime申诉时间 checkTime 核查时间 ruleName规则checkType字典 subAddType:1增加2减score
this
.
list
=
row
this
.
dict
=
dict
console
.
log
(
row
,
dict
,
"
22222222222
"
)
this
.
list
=
row
;
this
.
dict
=
dict
;
console
.
log
(
row
,
dict
,
"
22222222222
"
);
}
});
},
/** 编辑 */
edit
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
query
=
{
id
:
row
.
id
};
this
.
urls
.
currUrl
=
"
staff/perform/summary/edit
"
;
this
.
getData
();
this
.
pageInfo
.
type
=
"
edit
"
this
.
pageInfo
.
type
=
"
edit
"
;
this
.
title
=
"
修改员工绩效统计
"
;
},
/** 新增 */
add
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
urls
.
currUrl
=
"
staff/perform/summary/add
"
;
this
.
getData
();
this
.
pageInfo
.
type
=
"
add
"
this
.
pageInfo
.
type
=
"
add
"
;
this
.
title
=
"
新增员工绩效统计
"
;
},
/** 查看*/
view
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
query
=
{
id
:
row
.
id
};
this
.
urls
.
currUrl
=
"
staff/perform/summary/view
"
;
this
.
getData
();
this
.
pageInfo
.
type
=
"
view
"
this
.
pageInfo
.
type
=
"
view
"
;
this
.
title
=
"
员工绩效统计详细
"
;
this
.
checkAll
(
row
.
staffId
)
this
.
checkAll
(
row
.
staffId
);
},
/**取消按钮 */
cancel
()
{
...
...
@@ -230,16 +254,16 @@ export default {
.user-t-item {
margin-top: 20px;
border-left: 4px solid #FF
4242;
border-left: 4px solid #ff
4242;
}
.t1 {
border-color: #FF
4242;
border-color: #ff
4242;
background: rgba(255, 66, 66, 0.07);
.user-name,
.n {
color: #FF
4242;
color: #ff
4242;
}
}
.t2 {
...
...
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