fix: modified download btn to show the file instead to downloading it directly
gitea/salix-front/pipeline/pr-master Something is wrong with the build of this commit
Details
gitea/salix-front/pipeline/pr-master Something is wrong with the build of this commit
Details
This commit is contained in:
parent
e30232741f
commit
e134cbf36d
|
@ -5,7 +5,6 @@ import { useRoute, useRouter } from 'vue-router';
|
||||||
|
|
||||||
import { QBadge, QBtn, QCheckbox } from 'quasar';
|
import { QBadge, QBtn, QCheckbox } from 'quasar';
|
||||||
|
|
||||||
import { downloadFile } from 'src/composables/downloadFile';
|
|
||||||
import { toDateTimeFormat } from 'src/filters/date';
|
import { toDateTimeFormat } from 'src/filters/date';
|
||||||
|
|
||||||
import FetchData from 'components/FetchData.vue';
|
import FetchData from 'components/FetchData.vue';
|
||||||
|
@ -87,7 +86,7 @@ const tableColumnComponents = {
|
||||||
file: {
|
file: {
|
||||||
component: QBtn,
|
component: QBtn,
|
||||||
props: () => ({ flat: true }),
|
props: () => ({ flat: true }),
|
||||||
event: ({ row }) => downloadFile(row.dmsFk),
|
event: ({ row }) => openReport(`dms/${row.dmsFk}/downloadFile`, {}, '_blank'),
|
||||||
},
|
},
|
||||||
employee: {
|
employee: {
|
||||||
component: QBtn,
|
component: QBtn,
|
||||||
|
|
Loading…
Reference in New Issue