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-manager-ui
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-manager-ui
Commits
c60cb8d2
Commit
c60cb8d2
authored
Aug 13, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed:提交绩效汇总备注2分数计算
parent
cfc05155
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
19 deletions
+35
-19
src/views/staff/perform/summary/dialogshow.vue
src/views/staff/perform/summary/dialogshow.vue
+35
-19
No files found.
src/views/staff/perform/summary/dialogshow.vue
View file @
c60cb8d2
...
@@ -20,18 +20,18 @@
...
@@ -20,18 +20,18 @@
<div
class=
"user-right"
>
<div
class=
"user-right"
>
<!--
<div
class=
"n"
>
{{
form
.
otherScore
}}
</div>
<!--
<div
class=
"n"
>
{{
form
.
otherScore
}}
</div>
<div
class=
"m"
>
{{
form
.
month
}}
月自评绩效得分
</div>
-->
<div
class=
"m"
>
{{
form
.
month
}}
月自评绩效得分
</div>
-->
<div
class=
"n"
style=
"margin-top: 10px;
color: #409eff;
"
>
<div
class=
"n"
style=
"margin-top: 10px;
color: #409eff
"
>
{{
form
.
totalScore
}}
{{
form
.
totalScore
}}
</div>
</div>
<div
class=
"m"
>
{{
form
.
month
}}
月绩效得分
</div>
<div
class=
"m"
>
{{
form
.
month
}}
月绩效得分
</div>
<div
class=
"m"
style=
"color: #aaa
;
"
>
<div
class=
"m"
style=
"color: #aaa"
>
绩效分数更新时间:
{{
momentVal
(
form
.
updateTime
)
}}
绩效分数更新时间:
{{
momentVal
(
form
.
updateTime
)
}}
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"dialog_box"
v-if=
"pageInfo.type == 'view'"
>
<div
class=
"dialog_box"
v-if=
"pageInfo.type == 'view'"
>
<div
<div
class=
"userName user-t-item
"
class=
"userName user-t-item"
:class=
"
{ t2: item.subAddType == 1, t1: item.subAddType == 2 }"
:class=
"
{ t2: item.subAddType == 1, t1: item.subAddType == 2 }"
v-for="item in list"
v-for="item in list"
:key="item.id"
:key="item.id"
...
@@ -77,10 +77,10 @@
...
@@ -77,10 +77,10 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"dialog_box"
v-else
style=
"margin-top: 20px
;
"
>
<div
class=
"dialog_box"
v-else
style=
"margin-top: 20px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-row
v-if=
"form.label == '备注1'"
>
<el-row
v-if=
"form.label == '备注1'"
>
<el-col
:span=
"2"
style=
"width: 5.3333%
;
"
>
<div>
备注:
</div></el-col>
<el-col
:span=
"2"
style=
"width: 5.3333%"
>
<div>
备注:
</div></el-col>
<el-col
:span=
"22"
>
<el-col
:span=
"22"
>
<span>
<span>
<el-input
<el-input
...
@@ -88,14 +88,17 @@
...
@@ -88,14 +88,17 @@
v-model=
"form.remark"
v-model=
"form.remark"
:autosize=
"
{ minRows: 2, maxRows: 8 }"
:autosize=
"
{ minRows: 2, maxRows: 8 }"
placeholder="请输入备注内容"
placeholder="请输入备注内容"
style="font-family: 'Microsoft Yahei', 'Helvetica Neue', Helvetica, STHeiTi, Arial, sans-serif;"
style="
font-family: 'Microsoft Yahei', 'Helvetica Neue', Helvetica,
STHeiTi, Arial, sans-serif;
"
>
</el-input>
>
</el-input>
</span>
</span>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
v-if=
"form.label == '备注2'"
>
<el-row
v-if=
"form.label == '备注2'"
>
<el-col
:span=
"2"
style=
"width: 5.3333%
;
"
>
<div>
备注:
</div></el-col>
<el-col
:span=
"2"
style=
"width: 5.3333%"
>
<div>
备注:
</div></el-col>
<el-col
:span=
"22"
>
<el-col
:span=
"22"
>
<template
v-if=
"typeof form.remarkAdd != 'string'"
>
<template
v-if=
"typeof form.remarkAdd != 'string'"
>
<div
<div
...
@@ -103,14 +106,14 @@
...
@@ -103,14 +106,14 @@
v-for=
"(val, i) in form.remarkAdd"
v-for=
"(val, i) in form.remarkAdd"
:key=
"i"
:key=
"i"
>
>
<div
class=
"text_box"
style=
"width: 50%
;
"
>
<div
class=
"text_box"
style=
"width: 50%"
>
<el-autocomplete
<el-autocomplete
class=
"inline-input"
class=
"inline-input"
v-model=
"val.name"
v-model=
"val.name"
:fetch-suggestions=
"querySearch"
:fetch-suggestions=
"querySearch"
placeholder=
"请输入内容"
placeholder=
"请输入内容"
@
select=
"handleSelect"
@
select=
"handleSelect"
style=
"width: 100%
;
"
style=
"width: 100%"
clearable
clearable
@
clear=
"handleClear(val)"
@
clear=
"handleClear(val)"
@
blur=
"handleBlur"
@
blur=
"handleBlur"
...
@@ -127,7 +130,13 @@
...
@@ -127,7 +130,13 @@
<div
class=
"icon_box"
>
<div
class=
"icon_box"
>
<i
<i
class=
"el-icon-circle-plus-outline"
class=
"el-icon-circle-plus-outline"
style=
"width: 100%;height: 100%;font-size: 30px;color: #409eff;margin-right: 10px;"
style=
"
width: 100%;
height: 100%;
font-size: 30px;
color: #409eff;
margin-right: 10px;
"
@
click=
"handlePlus"
@
click=
"handlePlus"
v-if=
"i + 1 == form.remarkAdd.length"
v-if=
"i + 1 == form.remarkAdd.length"
></i>
></i>
...
@@ -135,7 +144,12 @@
...
@@ -135,7 +144,12 @@
class=
"el-icon-remove-outline"
class=
"el-icon-remove-outline"
@
click=
"handleRemove(i)"
@
click=
"handleRemove(i)"
v-if=
"form.remarkAdd.length > 1 && i != 0"
v-if=
"form.remarkAdd.length > 1 && i != 0"
style=
"width: 100%;height: 100%;font-size: 30px;color: #F56C6C;"
style=
"
width: 100%;
height: 100%;
font-size: 30px;
color: #f56c6c;
"
></i>
></i>
</div>
</div>
</div>
</div>
...
@@ -147,18 +161,14 @@
...
@@ -147,18 +161,14 @@
<div
<div
slot=
"footer"
slot=
"footer"
class=
"dialog-footer"
class=
"dialog-footer"
style=
"display: flex;
align-items: center;
"
style=
"display: flex;
align-items: center
"
>
>
<el-col
:span=
"20"
>
<el-col
:span=
"20"
>
<el-col
:span=
"4"
style=
"width: 15.7%
;
"
v-if=
"form.label == '备注2'"
>
<el-col
:span=
"4"
style=
"width: 15.7%"
v-if=
"form.label == '备注2'"
>
<div>
当前累计加分:
</div></el-col
<div>
当前累计加分:
</div></el-col
>
>
<el-col
<el-col
:span=
"1"
v-if=
"form.label == '备注2'"
style=
"text-align: left"
>
:span=
"1"
<span
style=
"color: #f56c6c; font-weight: 600"
>
v-if=
"form.label == '备注2'"
style=
"text-align: left;"
>
<span
style=
"color:#F56C6C;font-weight: 600;"
>
{{ form.addTotalScore ? form.addTotalScore : 0 }}
{{ form.addTotalScore ? form.addTotalScore : 0 }}
</span>
</span>
</el-col>
</el-col>
...
@@ -203,12 +213,17 @@ export default {
...
@@ -203,12 +213,17 @@ export default {
methods
:
{
methods
:
{
handleBlur
()
{
handleBlur
()
{
this
.
form
.
addTotalScore
=
0
;
this
.
form
.
addTotalScore
=
0
;
this
.
form
.
remarkAdd
&&
this
.
form
.
remarkAdd
.
length
>
0
this
.
form
.
remarkAdd
&&
this
.
form
.
remarkAdd
.
length
>
0
?
this
.
form
.
remarkAdd
.
forEach
((
v
)
=>
{
?
this
.
form
.
remarkAdd
.
forEach
((
v
)
=>
{
v
.
score
?
v
.
score
:
(
v
.
score
=
0
);
this
.
form
.
addTotalScore
+=
v
.
score
;
this
.
form
.
addTotalScore
+=
v
.
score
;
})
})
:
""
;
:
""
;
console
.
log
(
this
.
form
.
remarkAdd
);
this
.
form
.
addTotalScore
=
this
.
form
.
addTotalScore
.
toFixed
(
2
);
this
.
form
.
addTotalScore
=
this
.
form
.
addTotalScore
.
toFixed
(
2
);
this
.
$forceUpdate
();
},
},
handlePlus
()
{
handlePlus
()
{
this
.
form
.
remarkAdd
.
push
({
this
.
form
.
remarkAdd
.
push
({
...
@@ -309,6 +324,7 @@ export default {
...
@@ -309,6 +324,7 @@ export default {
score
:
0
,
score
:
0
,
});
});
}
}
this
.
handleBlur
();
this
.
$forceUpdate
();
this
.
$forceUpdate
();
}
}
});
});
...
...
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