Add feature print format setup action (#163)
* add feature for go to print format setup window from report viewer * change translation * add const to static routespull/3759/head
parent
96a9d7aa47
commit
97c13e23a5
|
@ -35,6 +35,9 @@
|
|||
{{ $t('components.contextMenuDownload') }}
|
||||
</a>
|
||||
</el-menu-item>
|
||||
<el-menu-item v-show="$route.name === 'Report Viewer'" index="9" @click="$router.push({ name: ROUTES.PRINT_FORMAT_SETUP_WINDOW.uuid })">
|
||||
{{ $t('components.contextMenuPrintFormatSetup') }}
|
||||
</el-menu-item>
|
||||
<el-menu-item v-if="getDataSelection.length > 0 && panelType === 'browser'" index="6" @click="exporBrowser">
|
||||
{{ $t('components.contextMennuExport') }}
|
||||
</el-menu-item>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { showNotification } from '@/utils/ADempiere/notification'
|
||||
import Item from './items'
|
||||
import { convertFieldListToShareLink } from '@/utils/ADempiere/valueUtil'
|
||||
import ROUTES from '@/utils/ADempiere/zoomWindow'
|
||||
|
||||
export const contextMixin = {
|
||||
components: {
|
||||
|
@ -56,7 +57,8 @@ export const contextMixin = {
|
|||
metadataMenu: {},
|
||||
recordUuid: this.$route.query.action,
|
||||
isReferencesLoaded: false,
|
||||
exportDefault: 'xls'
|
||||
exportDefault: 'xls',
|
||||
ROUTES
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -42,6 +42,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
handleClick(item) {
|
||||
console.log(item)
|
||||
this.$router.push({ name: item.name, query: { tabParent: 0 }})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -124,6 +124,7 @@ export default {
|
|||
contextMenuRefresh: 'Refresh',
|
||||
contextMennuExport: 'Export Smart Browser',
|
||||
contextMennuWindowReport: 'Window Report ',
|
||||
contextMenuPrintFormatSetup: 'Print Format Setup',
|
||||
dateStartPlaceholder: 'Start date',
|
||||
dateEndPlaceholder: 'End date',
|
||||
timePlaceholder: 'Select time',
|
||||
|
|
|
@ -120,6 +120,7 @@ export default {
|
|||
contextMenuRefresh: 'Actualizar',
|
||||
contextMennuExport: 'Exportar Smart Browser',
|
||||
contextMennuWindowReport: 'Informe de Ventana',
|
||||
contextMenuPrintFormatSetup: 'Configurar Formato de Impresión',
|
||||
RunProcess: 'Ejecutar',
|
||||
ChangeParameters: 'Cambiar Parametros',
|
||||
RunProcessAs: 'Ejecutar como',
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
const ROUTES = {
|
||||
PRINT_FORMAT_SETUP_WINDOW: {
|
||||
uuid: '8e5131dc-fb40-11e8-a479-7a0060f0aa01',
|
||||
action: undefined,
|
||||
tabParent: '0',
|
||||
tabChild: undefined
|
||||
},
|
||||
REQUEST_WINDOW: {
|
||||
uuid: '8e510176-fb40-11e8-a479-7a0060f0aa01',
|
||||
action: undefined,
|
||||
tabParent: '0',
|
||||
tabChild: undefined
|
||||
},
|
||||
WORKFLOW_WINDOW: {
|
||||
uuid: '8e5168e6-fb40-11e8-a479-7a0060f0aa01',
|
||||
action: undefined,
|
||||
tabParent: '0',
|
||||
tabChild: undefined
|
||||
}
|
||||
}
|
||||
|
||||
export default ROUTES
|
Loading…
Reference in New Issue