Commit b434473c authored by 姬鋆屾's avatar 姬鋆屾

tui

parent a1724239
...@@ -383,40 +383,48 @@ export default { ...@@ -383,40 +383,48 @@ export default {
{ {
label: `综合管理`, label: `综合管理`,
prop: "otherScore", prop: "complainScore",
width: 150, width: 150,
formatter: (row) => { formatter: (row) => {
return ( return (
row.otherScore - this.tableData.dict.weightPdu.selfWeight row.complainScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2) < 0 ? ( ).toFixed(2) < 0 ? (
<span style="color:red"> <span style="color:red">
{row.otherScore + {row.complainScore +
"" + "" +
( (
row.otherScore - this.tableData.dict.weightPdu.selfWeight row.complainScore -
this.tableData.dict.weightPdu.selfWeight
).toFixed(2) + ).toFixed(2) +
""} ""}
</span> </span>
) : ( ) : (
row.otherScore - this.tableData.dict.weightPdu.selfWeight row.complainScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2) > 0 ? ( ).toFixed(2) > 0 ? (
<span> <span>
{row.otherScore + {row.complainScore +
"" + "" +
"+" + "+" +
( (
row.otherScore - this.tableData.dict.weightPdu.selfWeight row.complainScore -
this.tableData.dict.weightPdu.selfWeight
).toFixed(2) + ).toFixed(2) +
""} ""}
</span> </span>
) : ( ) : (
row.otherScore + row.complainScore +
`(${( `(${(
row.otherScore - this.tableData.dict.weightPdu.selfWeight row.complainScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2)})` ).toFixed(2)})`
); );
}, },
}, },
{
label: `加分`,
prop: "otherScore",
width: 150,
formatter: this.formatter,
},
// { // {
// 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