|
@@ -350,12 +350,13 @@ const tableColumn = ref([
|
|
|
{ key: 'changeBuildPictureTotal', name: '施工图变更后数量', align: 'center' },
|
|
|
])
|
|
|
const tableData = ref([])
|
|
|
+
|
|
|
//设置某一行的样式
|
|
|
const tableRowStyle = ({ row }) => {
|
|
|
- let poseNum = new BigNumber(row.poseNum) //a
|
|
|
- let contractTotal = new BigNumber(row.contractTotal) //b
|
|
|
+ let contract = new BigNumber('0') //a
|
|
|
+ let residueNum = new BigNumber(row.residueNum) //b
|
|
|
//a 大于 b = 1,a 等于 b = 0,a 小于 b = -1, a 或 b 的值异常时 = null
|
|
|
- const isCompared = poseNum.comparedTo(contractTotal)
|
|
|
+ const isCompared = contract.comparedTo(residueNum)
|
|
|
if (!isCompared || isCompared === 1) {
|
|
|
return '--el-table-tr-bg-color: #fe0000; --el-table-row-hover-bg-color: #fe0000; color: white;'
|
|
|
}
|