| | |
| | | @current-change="handleCurrentChange" |
| | | /> |
| | | </div> |
| | | <RecordSetDialog v-model="chartDlgIsShow" :otype="chartDlgMapRow?.OTYPE" :oname="chartDlgMapRow?.ONAME" :indexName="indexName"/> |
| | | <RecordSetDialog v-model="chartDlgIsShow" :otype="chartDlgMapRow?.OTYPE" :oname="chartDlgMapRow?.ONAME" :indexName="indexName" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | } from './constants'; |
| | | import type { Monitor, MonitorValue } from './types'; |
| | | import RecordSetDialog from '../recordSet/RecordSetDialog.vue'; |
| | | import { isSharePage } from '/@/stores/chatRoom'; |
| | | |
| | | const props = defineProps(chatComProps) as { |
| | | data: Monitor; |
| | | }; |
| | | if (!props.data?.rows || props.data?.rows?.length === 0) { |
| | | // 为空时,随便加一列,防止出现 height 逐渐变短的问题 |
| | | props.data.rows.push({ |
| | | id: 'aaaaa', |
| | | title: '', |
| | | }); |
| | | } |
| | | |
| | | const total = props.data?.values?.length ?? 0; |
| | | const pageIndex = ref(null); |
| | | const pageSize = ref(null); |
| | |
| | | }; |
| | | let maxColsNum = ref<number>(null); |
| | | const resizeEvent = ({ width, height }) => { |
| | | |
| | | if (width === 0 || height === 0) { |
| | | return; |
| | | } |
| | | |
| | | // 刷新时,重新打开, height可能太小 |
| | | if(height<100){ |
| | | height = 0.7 * document.body.clientHeight |
| | | } |
| | | // 按最大宽度算最大列数 |
| | | maxColsNum.value = Math.floor( |
| | |
| | | const chartDlgMapRow = ref(null); |
| | | /** @description 指标名称 */ |
| | | const indexName = ref(null); |
| | | const valueClick = (item,type) => { |
| | | const valueClick = (item, type) => { |
| | | if (isSharePage.value) return; |
| | | chartDlgMapRow.value = item; |
| | | chartDlgIsShow.value = true; |
| | | indexName.value = type; |