| | |
| | | ref="tableRef" |
| | | :data="showData" |
| | | v-loading="loading" |
| | | table-layout="auto" |
| | | table-layout="fixed" |
| | | height="calc(94vh - var(--bevel-length-2))" |
| | | size="small" |
| | | :show-overflow-tooltip="true" |
| | |
| | | :show-summary="false" |
| | | :highlight-current-row="true" |
| | | @row-click="handleRowClick" |
| | | @sort-change="handleSort" |
| | | > |
| | | <el-table-column |
| | | :fixed="true" |
| | |
| | | :formatter="timeFormatter" |
| | | align="center" |
| | | width="66" |
| | | sortable="custom" |
| | | > |
| | | </el-table-column> |
| | | <template v-for="item in tableColumn" :key="item.name"> |
| | |
| | | :prop="item.name" |
| | | :label="item.label" |
| | | align="center" |
| | | width="64" |
| | | width="79" |
| | | sortable="custom" |
| | | /> |
| | | </template> |
| | | </el-table> |
| | |
| | | import { FactorDatas } from '@/model/FactorDatas'; |
| | | import { checkboxOptions } from '@/constant/checkbox-options'; |
| | | import { TYPE0 } from '@/constant/device-type'; |
| | | import { windDir } from '@/constant/wind-dir'; |
| | | |
| | | export default { |
| | | props: { |
| | |
| | | if (Object.hasOwnProperty.call(this.factorDatas.factor, key)) { |
| | | const f = this.factorDatas.factor[key]; |
| | | f.datas.forEach((v, i) => { |
| | | const name = f.factorName; |
| | | let value = v.factorData; |
| | | if (name == 'WIND_DIRECTION') { |
| | | value = windDir(value); |
| | | } |
| | | if (list.length <= i) { |
| | | list.push({ |
| | | index: i, |
| | | [f.factorName]: v.factorData |
| | | [name]: value |
| | | }); |
| | | } else { |
| | | list[i][f.factorName] = v.factorData; |
| | | list[i][name] = value; |
| | | } |
| | | }); |
| | | } |
| | |
| | | // console.log(row); |
| | | // console.log(col); |
| | | // console.log(event.target.getBoundingClientRect().height); |
| | | }, |
| | | handleSort({ column, prop, order }) { |
| | | console.log(column); |
| | | console.log(prop); |
| | | console.log(order); |
| | | } |
| | | } |
| | | }; |
| | |
| | | .el-table { |
| | | --el-table-bg-color: transparent; |
| | | --el-table-row-hover-bg-color: #23dad0a2; |
| | | --el-table-current-row-bg-color: #7dff5d96; |
| | | --el-table-current-row-bg-color: #23dad0a2; |
| | | /* --el-table-current-row-bg-color: #7dff5d96; */ |
| | | --el-table-text-color: var(--font-color); |
| | | } |
| | | |