feat: panel、chart增加一些参数
This commit is contained in:
@@ -58,7 +58,9 @@ export default {
|
||||
NpmNetworkQuantity
|
||||
},
|
||||
props: {
|
||||
chart: Object
|
||||
chart: Object,
|
||||
timeFilter: Object,
|
||||
extraParams: Object
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<template v-if="panelType === panelTypeAndRouteMapping.networkAppPerformance">
|
||||
<chart
|
||||
v-if="item.type === typeMapping.npm.npmTabs || item.params.tabIndex === npmTabIndex"
|
||||
:time-filter="timeFilter"
|
||||
:id="item.id"
|
||||
:chart="item"
|
||||
@npmTabChange="npmTabChange"
|
||||
@@ -30,6 +31,8 @@
|
||||
</template>
|
||||
<chart
|
||||
v-else
|
||||
:time-filter="timeFilter"
|
||||
:extra-params="extraParams"
|
||||
:id="item.id"
|
||||
:chart="item"
|
||||
></chart>
|
||||
@@ -51,7 +54,8 @@ export default {
|
||||
panelType: Number,
|
||||
chartList: Array,
|
||||
panelLock: Boolean,
|
||||
entity: Object
|
||||
entity: Object,
|
||||
extraParams: Object
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
:chart-list="chartList"
|
||||
:panel-type="panelType"
|
||||
:panel-lock="panelLock"
|
||||
:extra-params="extraParams"
|
||||
:entity="entity"
|
||||
></chart-list>
|
||||
</div>
|
||||
@@ -50,7 +51,8 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
chartList: [], // 普通panel的chart
|
||||
panelLock: true
|
||||
panelLock: true,
|
||||
extraParams: {}
|
||||
}
|
||||
},
|
||||
async mounted () {
|
||||
|
||||
Reference in New Issue
Block a user