Skip to content

Commit

Permalink
Support Export Dictionary Forms (PanJiaChen#2395)
Browse files Browse the repository at this point in the history
* Support Export Dictio Forms

* Update exportDictionary.js

---------

Co-authored-by: Edwin Betancourt <[email protected]>
  • Loading branch information
elsiosanchez and EdwinBetanc0urt authored Jun 27, 2024
1 parent a80b6ce commit a0edb0a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 14 deletions.
51 changes: 39 additions & 12 deletions src/components/ADempiere/Process/ExportDictionaryDefinition.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,26 @@
:help="$t('page.exportDictionaryDefinition.help')"
/>
</el-col>
<el-col :span="24">
<el-button
plain
size="mini"
type="primary"
style="float: right;font-weight: bold;"
@click="runProcess"
>
{{ $t('actionMenu.runProcess') }}
<el-divider
direction="vertical"
style="margin-right: 0px;font-weight: bold;"
/>
<i
class="el-icon-arrow-down"
style="font-weight: bold;"
/>
</el-button>
</el-col>
</el-row>
<p style="text-align: end;">
<el-dropdown
:split-button="true"
type="primary"
size="mini"
trigger="click"
:class="{ 'action-container': true }"
>
{{ $t('actionMenu.runProcess') }}
</el-dropdown>
</p>
<el-card
shadow="hover"
class="box-card"
Expand All @@ -50,7 +58,6 @@
class="form-base"
:inline="true"
size="mini"
@submit.native.prevent="notSubmitForm"
>
<el-row :gutter="10">
<el-col :span="spanColumn">
Expand Down Expand Up @@ -105,6 +112,19 @@
/>
</el-form-item>
</el-col>
<el-col :span="spanColumn">
<el-form-item
:label="$t('page.exportDictionaryDefinition.form')"
>
<el-switch
v-model="isForm"
:active-text="$t('components.switchActiveText')"
:inactive-text="$t('components.switchInactiveText')"
active-color="#1890ff"
inactive-color="#DCDFE6"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-card>
Expand Down Expand Up @@ -166,6 +186,7 @@ export default defineComponent({
const isWindows = ref(true)
const isProcess = ref(true)
const isBrowsers = ref(true)
const isForm = ref(true)

/**
* Computed
Expand Down Expand Up @@ -198,6 +219,7 @@ export default defineComponent({
id: 54692,
parameters: {
ECA56_ExportMenu: isMenu.value,
ECA56_ExportForms: isForm.value,
ECA56_ExportWindows: isWindows.value,
ECA56_ExportProcess: isProcess.value,
ECA56_ExportBrowsers: isBrowsers.value
Expand Down Expand Up @@ -234,13 +256,15 @@ export default defineComponent({
isWindows.value = true
isProcess.value = true
isBrowsers.value = true
isForm.value = true
}

return {
// Constants
UUID,
// Ref
isMenu,
isForm,
isWindows,
isProcess,
isBrowsers,
Expand Down Expand Up @@ -274,4 +298,7 @@ export default defineComponent({
.panel-main {
padding-left: 0px;
}
.el-button--primary.is-plain {
font-weight: bold;
}
</style>
3 changes: 2 additions & 1 deletion src/lang/ADempiere/en/page/process/exportDictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const exportDictionaryDefinition = {
menus: 'Export Menu',
windows: 'Export Windows',
process: 'Export Processes',
browsers: 'Export Viewers'
browsers: 'Export Viewers',
form: 'Exportar Form'
}

export default exportDictionaryDefinition
3 changes: 2 additions & 1 deletion src/lang/ADempiere/es/page/process/exportDictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const exportDictionaryDefinition = {
menus: 'Exportar Menú',
windows: 'Exportar Ventanas',
process: 'Exportar Procesos',
browsers: 'Exportar Visores'
browsers: 'Exportar Visores',
form: 'Exportar Formas'
}

export default exportDictionaryDefinition

0 comments on commit a0edb0a

Please sign in to comment.