Commit 002a4d27 authored by 姬鋆屾's avatar 姬鋆屾

推修改汇总表

parent 8a651b8a
...@@ -169,21 +169,34 @@ export default { ...@@ -169,21 +169,34 @@ export default {
width: 150, width: 150,
formatter: (row) => { formatter: (row) => {
return ( return (
this.tableData.dict.weightPdu.attendWeight - row.attendScore row.attendScore - this.tableData.dict.weightPdu.attendWeight
).toFixed(2) > 0 ? ( ).toFixed(2) < 0 ? (
<span style="color:red"> <span style="color:red">
{row.attendScore + {row.attendScore +
"(-" + "" +
(
row.attendScore -
this.tableData.dict.weightPdu.attendWeight
).toFixed(2) +
""}
</span>
) : (
row.attendScore - this.tableData.dict.weightPdu.attendWeight
).toFixed(2) > 0 ? (
<span>
{row.attendScore +
"" +
"+" +
( (
this.tableData.dict.weightPdu.attendWeight - row.attendScore -
row.attendScore this.tableData.dict.weightPdu.attendWeight
).toFixed(2) + ).toFixed(2) +
""} ""}
</span> </span>
) : ( ) : (
row.attendScore + row.attendScore +
`(${( `(${(
this.tableData.dict.weightPdu.attendWeight - row.attendScore row.attendScore - this.tableData.dict.weightPdu.attendWeight
).toFixed(2)})` ).toFixed(2)})`
); );
}, },
...@@ -195,21 +208,34 @@ export default { ...@@ -195,21 +208,34 @@ export default {
width: 150, width: 150,
formatter: (row) => { formatter: (row) => {
return ( return (
this.tableData.dict.weightPdu.reviewWeight - row.reviewScore row.reviewScore - this.tableData.dict.weightPdu.reviewWeight
).toFixed(2) > 0 ? ( ).toFixed(2) < 0 ? (
<span style="color:red"> <span style="color:red">
{row.reviewScore + {row.reviewScore +
"(-" + "" +
(
row.reviewScore -
this.tableData.dict.weightPdu.reviewWeight
).toFixed(2) +
""}
</span>
) : (
row.reviewScore - this.tableData.dict.weightPdu.reviewWeight
).toFixed(2) > 0 ? (
<span>
{row.reviewScore +
"" +
"+" +
( (
this.tableData.dict.weightPdu.reviewWeight - row.reviewScore -
row.reviewScore this.tableData.dict.weightPdu.reviewWeight
).toFixed(2) + ).toFixed(2) +
""} ""}
</span> </span>
) : ( ) : (
row.reviewScore + row.reviewScore +
`(${( `(${(
this.tableData.dict.weightPdu.reviewWeight - row.reviewScore row.reviewScore - this.tableData.dict.weightPdu.reviewWeight
).toFixed(2)})` ).toFixed(2)})`
); );
}, },
...@@ -231,21 +257,34 @@ export default { ...@@ -231,21 +257,34 @@ export default {
width: 150, width: 150,
formatter: (row) => { formatter: (row) => {
return ( return (
this.tableData.dict.weightPdu.goworkWeight - row.goworkScore row.goworkScore - this.tableData.dict.weightPdu.goworkWeight
).toFixed(2) > 0 ? ( ).toFixed(2) < 0 ? (
<span style="color:red"> <span style="color:red">
{row.goworkScore + {row.goworkScore +
"(-" + "" +
(
row.goworkScore -
this.tableData.dict.weightPdu.goworkWeight
).toFixed(2) +
""}
</span>
) : (
row.goworkScore - this.tableData.dict.weightPdu.goworkWeight
).toFixed(2) > 0 ? (
<span>
{row.goworkScore +
"" +
"+" +
( (
this.tableData.dict.weightPdu.goworkWeight - row.goworkScore -
row.goworkScore this.tableData.dict.weightPdu.goworkWeight
).toFixed(2) + ).toFixed(2) +
""} ""}
</span> </span>
) : ( ) : (
row.goworkScore + row.goworkScore +
`(${( `(${(
this.tableData.dict.weightPdu.goworkWeight - row.goworkScore row.goworkScore - this.tableData.dict.weightPdu.goworkWeight
).toFixed(2)})` ).toFixed(2)})`
); );
}, },
...@@ -257,21 +296,34 @@ export default { ...@@ -257,21 +296,34 @@ export default {
width: 150, width: 150,
formatter: (row) => { formatter: (row) => {
return ( return (
this.tableData.dict.weightPdu.effectWeight - row.effectScore row.effectScore - this.tableData.dict.weightPdu.effectWeight
).toFixed(2) > 0 ? ( ).toFixed(2) < 0 ? (
<span style="color:red"> <span style="color:red">
{row.effectScore + {row.effectScore +
"(-" + "" +
(
row.effectScore -
this.tableData.dict.weightPdu.effectWeight
).toFixed(2) +
""}
</span>
) : (
row.effectScore - this.tableData.dict.weightPdu.effectWeight
).toFixed(2) > 0 ? (
<span>
{row.effectScore +
"" +
"+" +
( (
this.tableData.dict.weightPdu.effectWeight - row.effectScore -
row.effectScore this.tableData.dict.weightPdu.effectWeight
).toFixed(2) + ).toFixed(2) +
""} ""}
</span> </span>
) : ( ) : (
row.effectScore + row.effectScore +
`(${( `(${(
this.tableData.dict.weightPdu.effectWeight - row.effectScore row.effectScore - this.tableData.dict.weightPdu.effectWeight
).toFixed(2)})` ).toFixed(2)})`
); );
}, },
...@@ -283,20 +335,32 @@ export default { ...@@ -283,20 +335,32 @@ export default {
width: 150, width: 150,
formatter: (row) => { formatter: (row) => {
return ( return (
this.tableData.dict.weightPdu.selfWeight - row.otherScore row.otherScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2) > 0 ? ( ).toFixed(2) < 0 ? (
<span style="color:red"> <span style="color:red">
{row.otherScore + {row.otherScore +
"(-" + "" +
(
row.otherScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2) +
""}
</span>
) : (
row.otherScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2) > 0 ? (
<span>
{row.otherScore +
"" +
"+" +
( (
this.tableData.dict.weightPdu.selfWeight - row.otherScore row.otherScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2) + ).toFixed(2) +
""} ""}
</span> </span>
) : ( ) : (
row.otherScore + row.otherScore +
`(${( `(${(
this.tableData.dict.weightPdu.selfWeight - row.otherScore row.otherScore - this.tableData.dict.weightPdu.selfWeight
).toFixed(2)})` ).toFixed(2)})`
); );
}, },
......
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