Commit 1c6417e1 authored by 姬鋆屾's avatar 姬鋆屾

推修改绩效汇总的表头展示

parent 658afa90
......@@ -210,211 +210,208 @@ export default {
return "宜宾市民中心";
},
},
{
label: "服务规范",
prop: "attendScore",
label: "工作纪律",
prop: "effectScore",
width: 150,
formatter: (row) => {
return (
row.attendScore - this.tableData.dict.weightPdu.attendWeight
row.effectScore - this.tableData.dict.weightPdu.effectWeight
).toFixed(2) < 0 ? (
<span style="color:red">
{row.attendScore +
{row.effectScore +
"" +
(
row.attendScore -
this.tableData.dict.weightPdu.attendWeight
row.effectScore -
this.tableData.dict.weightPdu.effectWeight
).toFixed(2) +
""}
</span>
) : (
row.attendScore - this.tableData.dict.weightPdu.attendWeight
row.effectScore - this.tableData.dict.weightPdu.effectWeight
).toFixed(2) > 0 ? (
<span>
{row.attendScore +
{row.effectScore +
"" +
"+" +
(
row.attendScore -
this.tableData.dict.weightPdu.attendWeight
row.effectScore -
this.tableData.dict.weightPdu.effectWeight
).toFixed(2) +
""}
</span>
) : (
row.attendScore +
row.effectScore +
`(${(
row.attendScore - this.tableData.dict.weightPdu.attendWeight
row.effectScore - this.tableData.dict.weightPdu.effectWeight
).toFixed(2)})`
);
},
},
{
label: "群众评议",
prop: "reviewScore",
label: "服务规范",
prop: "attendScore",
width: 150,
formatter: (row) => {
return (
row.reviewScore - this.tableData.dict.weightPdu.reviewWeight
row.attendScore - this.tableData.dict.weightPdu.attendWeight
).toFixed(2) < 0 ? (
<span style="color:red">
{row.reviewScore +
{row.attendScore +
"" +
(
row.reviewScore -
this.tableData.dict.weightPdu.reviewWeight
row.attendScore -
this.tableData.dict.weightPdu.attendWeight
).toFixed(2) +
""}
</span>
) : (
row.reviewScore - this.tableData.dict.weightPdu.reviewWeight
row.attendScore - this.tableData.dict.weightPdu.attendWeight
).toFixed(2) > 0 ? (
<span>
{row.reviewScore +
{row.attendScore +
"" +
"+" +
(
row.reviewScore -
this.tableData.dict.weightPdu.reviewWeight
row.attendScore -
this.tableData.dict.weightPdu.attendWeight
).toFixed(2) +
""}
</span>
) : (
row.reviewScore +
row.attendScore +
`(${(
row.reviewScore - this.tableData.dict.weightPdu.reviewWeight
row.attendScore - this.tableData.dict.weightPdu.attendWeight
).toFixed(2)})`
);
},
},
// {
// label: "投诉绩效指标分数",
// prop: "complainScore",
// formatter: (row) => {
// return (
// row.complainScore +
// `(${this.tableData.dict.attendWeight - row.complainScore})`
// );
// },
// },
{
label: "工作效能",
prop: "goworkScore",
label: `综合管理`,
prop: "complainScore",
width: 150,
formatter: (row) => {
return (
row.goworkScore - this.tableData.dict.weightPdu.goworkWeight
row.complainScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2) < 0 ? (
<span style="color:red">
{row.goworkScore +
{row.complainScore +
"" +
(
row.goworkScore -
this.tableData.dict.weightPdu.goworkWeight
row.complainScore -
this.tableData.dict.weightPdu.selfWeight
).toFixed(2) +
""}
</span>
) : (
row.goworkScore - this.tableData.dict.weightPdu.goworkWeight
row.complainScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2) > 0 ? (
<span>
{row.goworkScore +
{row.complainScore +
"" +
"+" +
(
row.goworkScore -
this.tableData.dict.weightPdu.goworkWeight
row.complainScore -
this.tableData.dict.weightPdu.selfWeight
).toFixed(2) +
""}
</span>
) : (
row.goworkScore +
row.complainScore +
`(${(
row.goworkScore - this.tableData.dict.weightPdu.goworkWeight
row.complainScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2)})`
);
},
},
{
label: "工作纪律",
prop: "effectScore",
label: "群众评议",
prop: "reviewScore",
width: 150,
formatter: (row) => {
return (
row.effectScore - this.tableData.dict.weightPdu.effectWeight
row.reviewScore - this.tableData.dict.weightPdu.reviewWeight
).toFixed(2) < 0 ? (
<span style="color:red">
{row.effectScore +
{row.reviewScore +
"" +
(
row.effectScore -
this.tableData.dict.weightPdu.effectWeight
row.reviewScore -
this.tableData.dict.weightPdu.reviewWeight
).toFixed(2) +
""}
</span>
) : (
row.effectScore - this.tableData.dict.weightPdu.effectWeight
row.reviewScore - this.tableData.dict.weightPdu.reviewWeight
).toFixed(2) > 0 ? (
<span>
{row.effectScore +
{row.reviewScore +
"" +
"+" +
(
row.effectScore -
this.tableData.dict.weightPdu.effectWeight
row.reviewScore -
this.tableData.dict.weightPdu.reviewWeight
).toFixed(2) +
""}
</span>
) : (
row.effectScore +
row.reviewScore +
`(${(
row.effectScore - this.tableData.dict.weightPdu.effectWeight
row.reviewScore - this.tableData.dict.weightPdu.reviewWeight
).toFixed(2)})`
);
},
},
// {
// label: "投诉绩效指标分数",
// prop: "complainScore",
// formatter: (row) => {
// return (
// row.complainScore +
// `(${this.tableData.dict.attendWeight - row.complainScore})`
// );
// },
// },
{
label: `综合管理`,
prop: "complainScore",
label: "工作效能",
prop: "goworkScore",
width: 150,
formatter: (row) => {
return (
row.complainScore - this.tableData.dict.weightPdu.selfWeight
row.goworkScore - this.tableData.dict.weightPdu.goworkWeight
).toFixed(2) < 0 ? (
<span style="color:red">
{row.complainScore +
{row.goworkScore +
"" +
(
row.complainScore -
this.tableData.dict.weightPdu.selfWeight
row.goworkScore -
this.tableData.dict.weightPdu.goworkWeight
).toFixed(2) +
""}
</span>
) : (
row.complainScore - this.tableData.dict.weightPdu.selfWeight
row.goworkScore - this.tableData.dict.weightPdu.goworkWeight
).toFixed(2) > 0 ? (
<span>
{row.complainScore +
{row.goworkScore +
"" +
"+" +
(
row.complainScore -
this.tableData.dict.weightPdu.selfWeight
row.goworkScore -
this.tableData.dict.weightPdu.goworkWeight
).toFixed(2) +
""}
</span>
) : (
row.complainScore +
row.goworkScore +
`(${(
row.complainScore - this.tableData.dict.weightPdu.selfWeight
row.goworkScore - this.tableData.dict.weightPdu.goworkWeight
).toFixed(2)})`
);
},
},
{
label: `加分`,
prop: "otherScore",
......
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