| | |
| | | type: String, |
| | | required: false, |
| | | }, |
| | | tableHeight:{ |
| | | type:Number, |
| | | default:document.body.clientHeight * 0.7, |
| | | tableHeight: { |
| | | type: Number, |
| | | default: document.body.clientHeight * 0.7, |
| | | }, |
| | | showFilter: { |
| | | type: Boolean, |
| | |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | reportIndex:{ |
| | | reportIndex: { |
| | | type: Number, |
| | | default: 0, |
| | | }, |
| | |
| | | const getVisibleParams = (data) => { |
| | | // const visibleList = props.data?.params?.filter((item) => !item?.hide) ?? []; |
| | | // index 作为 id |
| | | const dataFilter = data?.filter ?? []; |
| | | const dataFilter = data?.filter ?? []; |
| | | const visibleList = (data?.filter ?? []).map((item, index) => { |
| | | // 不修改原始地址 |
| | | item.id = index + ''; |
| | |
| | | } |
| | | : axisLabelFormatter; |
| | | |
| | | |
| | | |
| | | const tooltipValueFormatter = (value) => { |
| | | const realValue = originChartType === ChartTypeEnum.Score ? scoreMap[value] : value; |
| | | return realValue + (props.data.unit ? ` ${props.data.unit}` : ''); |
| | |
| | | return `${name}(${props.data.unit})`; |
| | | } |
| | | return name; |
| | | } |
| | | }; |
| | | const cols = currentSeries.value.map((item, index) => ({ |
| | | title: getColName(item.name ?? `值${index + 1}`), |
| | | type: 'text', |
| | |
| | | updateCurrent(summary?.[props.summaryIndex], true); |
| | | }; |
| | | |
| | | const clearChart = () => { |
| | | chartInstance.value.setOption( |
| | | { |
| | | title: { |
| | | text: '', |
| | | }, |
| | | series: [], |
| | | }, |
| | | true |
| | | ); |
| | | }; |
| | | |
| | | defineExpose({ |
| | | drawChart, |
| | | isMultiCompare, |
| | | handleMultiCompare, |
| | | handleData, |
| | | updateAll, |
| | | |
| | | clearChart, |
| | | updateIndexSummary, |
| | | }); |
| | | </script> |