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

Commit

Permalink
Fix: Preview link (#2512)
Browse files Browse the repository at this point in the history
* Fix: Preview Link

* Fix: Preview Link

* Fix: Preview Link

* Fix: Preview Link
  • Loading branch information
Ricargame authored Jul 26, 2024
1 parent d803103 commit 6fe9db8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
19 changes: 7 additions & 12 deletions src/views/ADempiere/ReportViewerEngine/dialog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,6 @@
</el-card>
</el-col>
<el-col style="margin-top: 1%">
<span v-if="checkedItemGeneral === 1" style="float:left">
<a :href="link" target="_blank">
{{ $t('report.reportEnginer.urlPublic') }}
</a>
</span>
<el-button
class="button-base-icon"
icon="el-icon-check"
Expand Down Expand Up @@ -250,10 +245,6 @@ export default defineComponent({
const isLoading = ref(false)
const validTime = ref(3600)
const titleDocument = ref(props.reportOutput.name)
const markdownContent = ref('')
const link = computed(() => {
return linkShare.value ? linkShare.value : 'www.010203923023/.com'
})
const markdownContent = computed({
// getter
get() {
Expand Down Expand Up @@ -338,7 +329,12 @@ export default defineComponent({
seconds: validTime.value
})
.then(response => {
linkShare.value = response
let link = ''
if (!isEmptyValue(response)) {
link = response
markdownContent.replace('www.123892138.com', link)
}
linkShare.value = link
copyValue()
showNotificationReport({
title: 'Reporte Compartido',
Expand Down Expand Up @@ -441,8 +437,7 @@ export default defineComponent({
previwerBody,
downloadFile,
markdownContent,
toUser,
link
toUser
}
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

<script>
import store from '@/store'
import language from '@/lang'
import { defineComponent, computed } from '@vue/composition-api'
import PrintOptions from './printFormatReport.vue'
Expand Down Expand Up @@ -61,9 +62,12 @@ export default defineComponent({
return store.getters.getListMailTemplates
})
function viewShowDialog() {
let menuDefault = ''
if (!isEmptyValue(storedMailTemplatesList.value) && !isEmptyValue(storedMailTemplatesList.value.menus)) {
store.commit('setDefaultBody', storedMailTemplatesList.value.menus[0].mail_text)
menuDefault = storedMailTemplatesList.value.menus[0].mail_text
}
const link = language.t('report.reportEnginer.urlPublic')
store.commit('setDefaultBody', menuDefault + `\n\n\n[${link}](www.123892138.com)\n`)
store.commit('setShowDialog', true)
}
return {
Expand Down

0 comments on commit 6fe9db8

Please sign in to comment.