Add action to qfile icon
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
4dc31bfdce
commit
c8153b6414
|
@ -40,6 +40,7 @@ const thermographsOptions = ref([]);
|
||||||
const dmsTypesOptions = ref([]);
|
const dmsTypesOptions = ref([]);
|
||||||
const companiesOptions = ref([]);
|
const companiesOptions = ref([]);
|
||||||
const warehousesOptions = ref([]);
|
const warehousesOptions = ref([]);
|
||||||
|
const inputFileRef = ref(null);
|
||||||
|
|
||||||
const thermographForm = reactive({
|
const thermographForm = reactive({
|
||||||
thermographId: null,
|
thermographId: null,
|
||||||
|
@ -300,13 +301,18 @@ const updateThermograph = async () => {
|
||||||
<VnRow class="row q-gutter-md q-mb-md">
|
<VnRow class="row q-gutter-md q-mb-md">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<QFile
|
<QFile
|
||||||
|
ref="inputFileRef"
|
||||||
:label="t('travel.thermographs.file')"
|
:label="t('travel.thermographs.file')"
|
||||||
multiple
|
multiple
|
||||||
:accept="allowedFileTypes"
|
:accept="allowedFileTypes"
|
||||||
v-model="thermographForm.files"
|
v-model="thermographForm.files"
|
||||||
>
|
>
|
||||||
<template #append>
|
<template #append>
|
||||||
<QIcon name="vn:attach" class="cursor-pointer">
|
<QIcon
|
||||||
|
name="vn:attach"
|
||||||
|
class="cursor-pointer"
|
||||||
|
@click="inputFileRef.pickFiles()"
|
||||||
|
>
|
||||||
<QTooltip>{{ t('Select files') }}</QTooltip>
|
<QTooltip>{{ t('Select files') }}</QTooltip>
|
||||||
</QIcon>
|
</QIcon>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue