Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Fix: Default xlsx (#2496)
Browse files Browse the repository at this point in the history
* Fix: Default XLSX

* Fix: Default XLSX
  • Loading branch information
Ricargame authored Jul 25, 2024
1 parent f89b461 commit 62f7696
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/views/ADempiere/ReportViewerEngine/dialog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<el-col style="width: 100%; text-align: center;">
<el-select
v-model="printFormatValue"
@visible-change="optionPrintFormat"
>
<el-option
v-for="(item, key) in printFormat"
Expand Down Expand Up @@ -191,7 +190,9 @@ export default defineComponent({
setup(props) {
const checkedItemGeneral = ref(0)
const checkedItem = ref(0)
const printFormat = ref([])
const printFormat = computed(() => {
return REPORT_EXPORT_TYPES.filter(type => type.type === 'xlsx')
})
const printFormatValue = ref('xlsx')
const linkShare = ref('')
const isLoading = ref(false)
Expand Down Expand Up @@ -294,10 +295,6 @@ export default defineComponent({
link.download = props.reportOutput.name
link.click()
}
function optionPrintFormat() {
const xlsTypes = REPORT_EXPORT_TYPES.filter(type => type.type === 'xlsx')
printFormat.value = xlsTypes
}
const exportData = computed(() => {
return store.getters.getExportReport
})
Expand Down Expand Up @@ -358,7 +355,6 @@ export default defineComponent({
getOptionFormat,
viewShowDialog,
setCheckedItemGeneral,
optionPrintFormat,
sendNotify,
sendLink,
copyValue,
Expand Down

0 comments on commit 62f7696

Please sign in to comment.