เพิ่ม href => PDF
This commit is contained in:
parent
dbcf1f0106
commit
955e651dae
2 changed files with 8 additions and 2 deletions
|
|
@ -135,7 +135,7 @@
|
||||||
{{ props.row.fileName }}
|
{{ props.row.fileName }}
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td key="btnMicrosoft" :props="props">
|
<q-td key="btnMicrosoft" :props="props">
|
||||||
<q-btn flat dense round color="red" icon="picture_as_pdf">
|
<q-btn type="a" target="_blank" :href="props.row.pathName" flat dense round color="red" icon="picture_as_pdf">
|
||||||
<q-tooltip>ไฟล์ PDF</q-tooltip>
|
<q-tooltip>ไฟล์ PDF</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-btn flat dense round color="blue" icon="mdi-file-word">
|
<q-btn flat dense round color="blue" icon="mdi-file-word">
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ const mixin = useCounterMixin()
|
||||||
const { success, messageError,hideLoader,dialogConfirm } = mixin
|
const { success, messageError,hideLoader,dialogConfirm } = mixin
|
||||||
const fileUpload = ref<any>(null);
|
const fileUpload = ref<any>(null);
|
||||||
const reason = ref<string>("");
|
const reason = ref<string>("");
|
||||||
|
const file = ref<string>("");
|
||||||
const documentTitle = ref<string>("");
|
const documentTitle = ref<string>("");
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const filterKeyword = ref<string>("");
|
const filterKeyword = ref<string>("");
|
||||||
|
|
@ -56,6 +57,7 @@ const rows2 = ref<any>([]);
|
||||||
interface TypeData {
|
interface TypeData {
|
||||||
fileName:string
|
fileName:string
|
||||||
annotation:string
|
annotation:string
|
||||||
|
pathName:string
|
||||||
}
|
}
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
roundId: {
|
roundId: {
|
||||||
|
|
@ -73,7 +75,8 @@ const getRequest = async () => {
|
||||||
data.map((item:TypeData) =>{
|
data.map((item:TypeData) =>{
|
||||||
rows2.value.push({
|
rows2.value.push({
|
||||||
fileName:item.fileName,
|
fileName:item.fileName,
|
||||||
annotation:item.annotation
|
annotation:item.annotation,
|
||||||
|
file:item.pathName
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -239,6 +242,9 @@ const save = () => {
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td auto-width>
|
<q-td auto-width>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
type="a"
|
||||||
|
:href="props.row.file"
|
||||||
|
target="_blank"
|
||||||
dense
|
dense
|
||||||
size="14px"
|
size="14px"
|
||||||
flat
|
flat
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue