| | |
| | | if (this.isShowZero) { |
| | | this.tableData.map(item => { |
| | | Object.keys(item).forEach(val => { |
| | | if (item[val] === null && val.includes('Hours')) { |
| | | if (item[val] === null && (val.includes('Hours') || val === 'total')) { |
| | | item[val] = 0 |
| | | } |
| | | }) |
| | |
| | | item.width = 160 |
| | | } else if (item.value.length === 6){ |
| | | item.width = 150 |
| | | } else if (item.value.length === 2){ |
| | | item.width = this.data.sort === false && item.label.includes('Hours') ? 52 : 86 |
| | | } else { |
| | | item.width = this.data.sort === false && item.label.includes('Hours') ? 46 : 86 |
| | | } |