Commit 588b8e53 authored by 姬鋆屾's avatar 姬鋆屾

推修改绩效汇总

parent 4fbf688f
......@@ -29,7 +29,9 @@ export default {
dialogShow,
},
mixins: [table],
created() {},
created() {
console.log(this.tableData, "123333");
},
methods: {
/** 导出Excel */
......@@ -68,6 +70,25 @@ export default {
toView(row) {
this.$refs.dialogform.view(row);
},
afterRender(data) {
console.log(data);
this.config.columns.forEach((v) => {
v.label == "考勤绩效分数"
? (v.label = `考勤绩效分数(${data.dict.weightPdu.attendWeight})`)
: v.label == "评价绩效分数"
? (v.label = `评价绩效分数(${data.dict.weightPdu.reviewWeight})`)
: v.label == "办件绩效分数"
? (v.label = `办件绩效分数(${data.dict.weightPdu.goworkWeight})`)
: v.label == "效能绩效分数"
? (v.label = `效能绩效分数(${data.dict.weightPdu.effectWeight})`)
: v.label == "自评绩效分数"
? (v.label = `自评绩效分数(${data.dict.weightPdu.selfWeight})`)
: "";
// if(||v.label='评价绩效分数'||v.label='办件绩效分数'||v.label='效能绩效分数'||v.label='自评绩效分数'){
// }
});
},
},
data() {
return {
......@@ -143,11 +164,10 @@ export default {
},
{
label: "考勤绩效指标分数",
label: "考勤绩效分数",
prop: "attendScore",
width: 140,
width: 150,
formatter: (row) => {
console.log(row, this.tableData.dict, "1111");
return (
this.tableData.dict.weightPdu.attendWeight - row.attendScore
).toFixed(2) > 0 ? (
......@@ -170,9 +190,9 @@ export default {
},
{
label: "评价绩效指标分数",
label: "评价绩效分数",
prop: "reviewScore",
width: 140,
width: 150,
formatter: (row) => {
return (
this.tableData.dict.weightPdu.reviewWeight - row.reviewScore
......@@ -208,7 +228,7 @@ export default {
{
label: "办件绩效分数",
prop: "goworkScore",
width: 140,
width: 150,
formatter: (row) => {
return (
this.tableData.dict.weightPdu.goworkWeight - row.goworkScore
......@@ -234,7 +254,7 @@ export default {
{
label: "效能绩效分数",
prop: "effectScore",
width: 140,
width: 150,
formatter: (row) => {
return (
this.tableData.dict.weightPdu.effectWeight - row.effectScore
......@@ -257,16 +277,30 @@ export default {
},
},
// {
// label: "自评绩效分数",
// prop: "otherScore",
// formatter: (row) => {
// return (
// row.attendScore +
// `(${this.tableData.dict.selfWeight - row.attendScore})`
// );
// },
// },
{
label: `自评绩效分数`,
prop: "otherScore",
width: 150,
formatter: (row) => {
return (
this.tableData.dict.weightPdu.selfWeight - row.otherScore
).toFixed(2) > 0 ? (
<span style="color:red">
{row.otherScore +
"(-" +
(
this.tableData.dict.weightPdu.selfWeight - row.otherScore
).toFixed(2) +
""}
</span>
) : (
row.otherScore +
`(${(
this.tableData.dict.weightPdu.selfWeight - row.otherScore
).toFixed(2)})`
);
},
},
// {
// label: "累计异常分数",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment