Iscrizione Conacreis e Arcadei
This commit is contained in:
@@ -14,13 +14,20 @@ import MixinBase from '@src/mixins/mixin-base'
|
||||
import { IParamsQuery, ISignupIscrizioneArcadeiOptions, ISignupIscrizioneConacreisOptions } from '@src/model'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Iscrittiarcadei',
|
||||
components: { CImgText, CCard, CMyPage, CTitleBanner, CGridTableRec },
|
||||
setup(props) {
|
||||
const userStore = useUserStore()
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
const $q = useQuasar()
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const arrfilterand: any = ref([])
|
||||
const myrec: any = ref([])
|
||||
@@ -34,8 +41,7 @@ export default defineComponent({
|
||||
|
||||
const myfilter = ref('')
|
||||
|
||||
function mounted()
|
||||
{
|
||||
function mounted() {
|
||||
arrfilterand.value = [
|
||||
{
|
||||
label: 'Manca il pagamento',
|
||||
@@ -53,13 +59,7 @@ export default defineComponent({
|
||||
|
||||
}
|
||||
|
||||
function getcolIscrittiArcadei()
|
||||
{
|
||||
return colTableIscrittiArcadei
|
||||
}
|
||||
|
||||
function loadrec(): ISignupIscrizioneArcadeiOptions[]
|
||||
{
|
||||
function loadrec(): any {
|
||||
const sortBy = 'numshared'
|
||||
const descending = 1
|
||||
const myobj: any = {}
|
||||
@@ -86,10 +86,8 @@ export default defineComponent({
|
||||
})
|
||||
}
|
||||
|
||||
async function exportLista()
|
||||
{
|
||||
|
||||
myrec = await loadrec()
|
||||
async function exportLista() {
|
||||
const myrecload = await loadrec()
|
||||
|
||||
const sep = ';'
|
||||
|
||||
@@ -100,7 +98,7 @@ export default defineComponent({
|
||||
+ 'localita' + sep + 'Prov' + sep + 'cap' + sep + 'nazione_nascita' + sep + 'data_nascita' + sep
|
||||
+ 'luogo_nascita' + sep + 'provincia_nascita' + sep + 'email' + sep + 'telefono' + sep + 'quota_versata' + '\n'
|
||||
let index = 1
|
||||
for (const rec of myrec) {
|
||||
for (const rec of myrecload) {
|
||||
mystr += rec.annoTesseramento + sep
|
||||
mystr += (!!rec.numTesseraInterna ? rec.numTesseraInterna : ' ') + sep
|
||||
mystr += (!!rec.codiceConacreis ? rec.codiceConacreis + sep : ' ') + sep
|
||||
@@ -128,13 +126,21 @@ export default defineComponent({
|
||||
index++
|
||||
}
|
||||
|
||||
tools.copyStringToClipboard(this, mystr, false)
|
||||
tools.copyStringToClipboard($q, mystr, false)
|
||||
}
|
||||
|
||||
savefilter(filter: any)
|
||||
function savefilter(filter: any)
|
||||
{
|
||||
console.log('filter', filter)
|
||||
myfilter.value = filter
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
savefilter,
|
||||
exportLista,
|
||||
colTableIscrittiArcadei,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
<template>
|
||||
<CMyPage title="Iscritti Arcadei" imgbackground="../../statics/images/iscritti_conacreis.jpg"
|
||||
sizes="max-height: 120px">
|
||||
<span>{{
|
||||
setmeta({
|
||||
title: 'Iscritti Arcadei',
|
||||
description: "",
|
||||
keywords: ''
|
||||
})
|
||||
}}
|
||||
</span>
|
||||
|
||||
|
||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||
<CTitleBanner title="Iscritti Arcadei"></CTitleBanner>
|
||||
@@ -27,7 +18,7 @@
|
||||
|
||||
<CGridTableRec prop_mytable="iscrittiarcadei"
|
||||
prop_mytitle="Iscritti Arcadei"
|
||||
:prop_mycolumns="getcolIscrittiArcadei"
|
||||
:prop_mycolumns="colTableIscrittiArcadei"
|
||||
prop_colkey="name"
|
||||
nodataLabel="Nessun Iscritto Arcadei"
|
||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato"
|
||||
|
||||
Reference in New Issue
Block a user