| | |
| | | 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 |
| | | } |
| | | }) |
| | |
| | | getTimeList () { |
| | | this.configTimeVisibleLoading = true |
| | | this.$axios.post(this.$api.performanceShift.getList).then(res => { |
| | | if (res.code === 200) { |
| | | if (res.code == 201) return |
| | | if (res.data.length > 0) { |
| | | res.data.forEach(item => { |
| | | item.isEdit = false |
| | | item.time.push(item.startTime) |