| | |
| | | // 结束时间 |
| | | endTime: '' |
| | | }, |
| | | tableHeight: '600' |
| | | tableHeight: '600', |
| | | |
| | | orderProp: 'dayAvg', |
| | | order: 'descending' |
| | | } |
| | | }, |
| | | setup() { |
| | |
| | | } |
| | | } |
| | | |
| | | // 在线率,有效率 不满足标准时 变颜色 |
| | | if (columnIndex == 7) { |
| | | if (row.dayOnline < 0.9) { |
| | | return 'red-color' |
| | | } |
| | | } |
| | | |
| | | if (columnIndex == 8) { |
| | | if (row.dayValid < 0.9) { |
| | | return 'red-color' |
| | |
| | | |
| | | // 点击统计按钮 |
| | | fetchData(p) { |
| | | const { prop, order } = p ? p : { prop: 'dayAvg', order: 'descending' } |
| | | if (p) { |
| | | this.orderProp = p.prop |
| | | this.order = p.order |
| | | } |
| | | let params = { |
| | | page: this.currentPage, |
| | | pageSize: this.pageSize, |
| | | siteName: '', |
| | | orderProp: prop, |
| | | orderProp: this.orderProp, |
| | | //排序 ascending 正序,descending 降序 |
| | | asc: order == 'ascending' |
| | | asc: this.order == 'ascending' |
| | | } |
| | | if (this.form.beginTime) { |
| | | params['beginTime'] = this.form.beginTime |
| | |
| | | }, |
| | | openDetail(row) { |
| | | const encodedSiteName = encodeURIComponent(row.name) |
| | | this.$router.push(`/exceptionDetail/${encodedSiteName}/${row.lst}`) |
| | | const timeType = '0' |
| | | const jumpPage = '2' |
| | | this.$router.push(`/exceptionDetail/${encodedSiteName}/${row.lst}/${timeType}/${jumpPage}`) |
| | | } |
| | | } |
| | | } |