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

推修改绩效汇总

parent 4fbf688f
...@@ -29,7 +29,9 @@ export default { ...@@ -29,7 +29,9 @@ export default {
dialogShow, dialogShow,
}, },
mixins: [table], mixins: [table],
created() {}, created() {
console.log(this.tableData, "123333");
},
methods: { methods: {
/** 导出Excel */ /** 导出Excel */
...@@ -68,6 +70,25 @@ export default { ...@@ -68,6 +70,25 @@ export default {
toView(row) { toView(row) {
this.$refs.dialogform.view(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() { data() {
return { return {
...@@ -143,11 +164,10 @@ export default { ...@@ -143,11 +164,10 @@ export default {
}, },
{ {
label: "考勤绩效指标分数", label: "考勤绩效分数",
prop: "attendScore", prop: "attendScore",
width: 140, width: 150,
formatter: (row) => { formatter: (row) => {
console.log(row, this.tableData.dict, "1111");
return ( return (
this.tableData.dict.weightPdu.attendWeight - row.attendScore this.tableData.dict.weightPdu.attendWeight - row.attendScore
).toFixed(2) > 0 ? ( ).toFixed(2) > 0 ? (
...@@ -170,9 +190,9 @@ export default { ...@@ -170,9 +190,9 @@ export default {
}, },
{ {
label: "评价绩效指标分数", label: "评价绩效分数",
prop: "reviewScore", prop: "reviewScore",
width: 140, width: 150,
formatter: (row) => { formatter: (row) => {
return ( return (
this.tableData.dict.weightPdu.reviewWeight - row.reviewScore this.tableData.dict.weightPdu.reviewWeight - row.reviewScore
...@@ -208,7 +228,7 @@ export default { ...@@ -208,7 +228,7 @@ export default {
{ {
label: "办件绩效分数", label: "办件绩效分数",
prop: "goworkScore", prop: "goworkScore",
width: 140, width: 150,
formatter: (row) => { formatter: (row) => {
return ( return (
this.tableData.dict.weightPdu.goworkWeight - row.goworkScore this.tableData.dict.weightPdu.goworkWeight - row.goworkScore
...@@ -234,7 +254,7 @@ export default { ...@@ -234,7 +254,7 @@ export default {
{ {
label: "效能绩效分数", label: "效能绩效分数",
prop: "effectScore", prop: "effectScore",
width: 140, width: 150,
formatter: (row) => { formatter: (row) => {
return ( return (
this.tableData.dict.weightPdu.effectWeight - row.effectScore this.tableData.dict.weightPdu.effectWeight - row.effectScore
...@@ -257,16 +277,30 @@ export default { ...@@ -257,16 +277,30 @@ export default {
}, },
}, },
// { {
// label: "自评绩效分数", label: `自评绩效分数`,
// prop: "otherScore", prop: "otherScore",
// formatter: (row) => { width: 150,
// return ( formatter: (row) => {
// row.attendScore + return (
// `(${this.tableData.dict.selfWeight - row.attendScore})` 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: "累计异常分数", // 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