mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
* Separate Services - Dictionary: dictionary - Common request: common - ADempiere Generic API:common/api - Dashboard Content: dashboard - Dashboard favorites: dashboard/addons/user - Dashboard Pending Documents: dashboard/addons/tasks - User Management: user - User enrollment: user/enrollment - User Log: user/log - Workflow metadata: workflow - User Interface Common logic: user-interface/common - User Interface Window tools: user-interface/window - User Interface Smart Browser tools: user-interface/smart-browser - User Interface Process tools: user-interface/process - User Interface Attachment Management: user-interface/component/attachment - User Interface Components Preference: user-interface/component/preference - User Interface Components Private Access: user-interface/component/private-access - User Interface Components Record Access: user-interface/component/record-access - User Interface Components Notes: user-interface/component/notes - User Interface Components Translation: user-interface/component/translation - User Interface Forms / POS: form/addons/point-of-sales * Minor change * Remove persistence * Untrack files * Remove persistence * resolve conflicts * Update files
51 lines
1.8 KiB
JavaScript
51 lines
1.8 KiB
JavaScript
// ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution
|
|
// Copyright (C) 2017-Present E.R.P. Consultores y Asociados, C.A.
|
|
// Contributor(s): Yamel Senih ysenih@erpya.com www.erpya.com
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
// This file is for get all information for dashboard of ADempiere client,
|
|
// please if you want to implement a custom dashboard create a new fielwith api definition
|
|
// Get Instance for connection
|
|
import { request } from '@/utils/ADempiere/request'
|
|
|
|
// List all dashboard for role
|
|
export function requestLisDashboards({
|
|
roleId,
|
|
roleUuid,
|
|
pageToken,
|
|
pageSize
|
|
}) {
|
|
return request({
|
|
url: '/dashboard/dashboards',
|
|
method: 'get',
|
|
params: {
|
|
role_id: roleId,
|
|
role_uuid: roleUuid,
|
|
// Page Data
|
|
pageToken,
|
|
pageSize
|
|
}
|
|
})
|
|
.then(dashboardsListResponse => {
|
|
const { convertDashboard } = require('@/utils/ADempiere/apiConverts/dashboard.js')
|
|
|
|
return {
|
|
recordCount: dashboardsListResponse.record_count,
|
|
dashboardsList: dashboardsListResponse.records.map(favorite => {
|
|
return convertDashboard(favorite)
|
|
}),
|
|
nextPageToken: dashboardsListResponse.next_page_token
|
|
}
|
|
})
|
|
}
|