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

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

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