eztech-core-components 1.0.51 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/comps/CorePdfDialog.vue +7 -1
- package/package.json +1 -1
- package/utils/table-helper.js +1 -1
package/comps/CorePdfDialog.vue
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<iframe
|
|
7
7
|
v-else-if="href"
|
|
8
8
|
id="pdfFrame"
|
|
9
|
-
:src="href"
|
|
9
|
+
:src="href + pdfUrlParams"
|
|
10
10
|
width="100%"
|
|
11
11
|
height="900px"
|
|
12
12
|
frameborder="0"
|
|
@@ -27,6 +27,12 @@ export default {
|
|
|
27
27
|
},
|
|
28
28
|
computed: {
|
|
29
29
|
...mapGetters('settings', ['env', 'pdfUrl', 'pdfTitle', 'isPdfPrint', 'pdfPageSize']),
|
|
30
|
+
pdfUrlParams () {
|
|
31
|
+
if (this.pdfUrl.includes('#')) {
|
|
32
|
+
return '#' + this.pdfUrl.split('#')[1]
|
|
33
|
+
}
|
|
34
|
+
return ''
|
|
35
|
+
},
|
|
30
36
|
visible: {
|
|
31
37
|
get () {
|
|
32
38
|
return !!this.pdfUrl
|
package/package.json
CHANGED
package/utils/table-helper.js
CHANGED
|
@@ -869,7 +869,7 @@ export const tableMethods = {
|
|
|
869
869
|
const link = document.createElement('a')
|
|
870
870
|
link.href = href
|
|
871
871
|
// link.target = '_blank'
|
|
872
|
-
link.setAttribute('download', `
|
|
872
|
+
link.setAttribute('download', `cv_${this.temp.surname}_${this.temp.given_name}_${this.$moment().format('YYYYMMDD_HHmmss')}.pdf`)
|
|
873
873
|
document.body.appendChild(link)
|
|
874
874
|
link.click()
|
|
875
875
|
document.body.removeChild(link)
|