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

推修改汇总表

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