| | |
| | | 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" |
| | |
| | | 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: { |
| | |
| | | }, |
| | | selectFactorType: { |
| | | type: Array, |
| | | default: () => ['1', '2', '3'] |
| | | default: () => [] |
| | | }, |
| | | // 当前选中高亮的数据点索引 |
| | | locateIndex: Number |
| | |
| | | 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; |
| | | } |
| | | }); |
| | | } |
| | |
| | | .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); |
| | | } |
| | | |