NEZ-2023 feat:chart支持根据variable值显示隐藏

This commit is contained in:
zyh
2022-07-15 15:06:56 +08:00
parent c2191a77e8
commit 3dd3768b18
13 changed files with 666 additions and 45 deletions

View File

@@ -127,6 +127,7 @@
:from="fromRoute.panel"
:panel-data="panelData"
:show-panel="showPanel"
:variables="variables"
@close="closeChartBox"
@reload="panelReload"
@reloadOnlyPanel="panelReloadOnlyPanel"
@@ -225,11 +226,18 @@ export default {
enable: {
legend: true,
valueMapping: false,
thresholds: false
thresholds: false,
visibility: false
},
thresholdShow: true,
thresholds: [{ value: undefined, color: randomcolor() }],
showHeader: 1
showHeader: 1,
visibility: {
varName: '',
operator: '',
varValue: '',
result: ''
}
},
elements: [{ expression: '', legend: '', type: 'expert', id: '', name: 'A', state: 1 }],
panel: '',