1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-07 18:25:45 +08:00

Add support to dashboard as chart (#938)

This commit is contained in:
Yamel Senih 2021-06-22 18:13:49 -04:00 committed by GitHub
parent 587e8cb9c1
commit c027493ca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 9 deletions

View File

@ -41,8 +41,8 @@ export function requestLisDashboards({
return {
recordCount: dashboardsListResponse.record_count,
dashboardsList: dashboardsListResponse.records.map(favorite => {
return convertDashboard(favorite)
dashboardsList: dashboardsListResponse.records.map(dashboard => {
return convertDashboard(dashboard)
}),
nextPageToken: dashboardsListResponse.next_page_token
}

View File

@ -22,7 +22,7 @@
accordion
>
<el-collapse-item
:name="dashboard.dashboardName"
:name="dashboard.name"
:disabled="!dashboard.isCollapsible"
class="custom-collapse-item"
>
@ -33,7 +33,7 @@
</template>
<component
:is="renderDashboard"
:ref="dashboard.dashboardName"
:ref="dashboard.name"
:metadata="dashboard"
/>
</el-collapse-item>
@ -53,7 +53,7 @@ export default {
return {
dashboard: this.metadata,
unsupportedDashboards: ['activities', 'views', 'performance'],
activeDashboard: this.metadata.isOpenByDefault ? this.metadata.dashboardName : undefined
activeDashboard: this.metadata.isOpenByDefault ? this.metadata.name : undefined
}
},
computed: {

View File

@ -1,13 +1,15 @@
{
"windowUuid": "953269ba-a67b-11eb-bcbc-0242ac130002",
"browserUuid": "95326a6e-a67b-11eb-bcbc-0242ac130002",
"dashboardName": "dashboard name",
"dashboardDescription": "dashboard description",
"dashboardHtml": "dashboard html",
"name": "dashboard name",
"description": "dashboard description",
"html": "dashboard html",
"columnNo": 0,
"lineNo": 1,
"isCollapsible": true,
"isOpenByDefault": true,
"isEventRequired": false,
"fileName": "dashboard file name"
"fileName": "dashboard file name",
"dashboardType": "dashboard",
"chartType": ""
}