diff --git a/nezha-fronted/src/components/chart/assetInfoData.js b/nezha-fronted/src/components/chart/assetInfoData.js new file mode 100644 index 000000000..84d232f7d --- /dev/null +++ b/nezha-fronted/src/components/chart/assetInfoData.js @@ -0,0 +1,48 @@ +const data = { + msg: 'success', + code: 200, + data: { + id: 'assetID', + name: 'template', + manageIp: '127.0.0.1', + type: { + name: 'Server' + }, + state: { + name: 'In use' + }, + brand: { + name: 'Dell' + }, + dc: { + name: 'JBXXG' + }, + model: { + name: 'ADC-Serve' + }, + fields: [], + cabinet: { + name: '机柜' + }, + pingInfo: { + status: 0, + rtt: null + }, + endpointNum: 0, + alert: [ + { + priority: 'P1', + num: 2 + }, + { + priority: 'P2', + num: 0 + }, + { + priority: 'P3', + num: 0 + } + ] + } +} +export default data diff --git a/nezha-fronted/src/components/chart/chart.vue b/nezha-fronted/src/components/chart/chart.vue index c88136028..198167c7e 100644 --- a/nezha-fronted/src/components/chart/chart.vue +++ b/nezha-fronted/src/components/chart/chart.vue @@ -161,6 +161,7 @@ :chart-option="chartOption" :is-fullscreen="isFullscreen" @chartIsNoData="chartIsNoData" + :from="from" > - +