2022-02-03 00:33:05 +01:00
|
|
|
<template>
|
2023-10-21 15:28:01 +02:00
|
|
|
<CNotifAtTop />
|
2022-02-03 00:33:05 +01:00
|
|
|
<div class="q-gutter-sm q-pa-sm q-pb-md">
|
2022-06-17 12:28:43 +02:00
|
|
|
<div v-if="!mygrp && !loading">
|
2022-08-10 17:06:46 +02:00
|
|
|
<div v-if="mystatus === 403">
|
2023-01-03 16:51:45 +01:00
|
|
|
<h3>
|
2024-04-09 21:57:04 +02:00
|
|
|
Non hai i permessi per accedere al Gruppo.
|
|
|
|
|
<br />Occorre prima registrarsi alla App
|
2023-01-03 16:51:45 +01:00
|
|
|
</h3>
|
2022-08-10 17:06:46 +02:00
|
|
|
</div>
|
|
|
|
|
<div v-else>
|
|
|
|
|
<h3>Gruppo non Esistente</h3>
|
|
|
|
|
</div>
|
2022-03-01 23:50:47 +01:00
|
|
|
</div>
|
2022-06-17 12:28:43 +02:00
|
|
|
<div v-else>
|
|
|
|
|
<div>
|
2025-03-13 18:19:35 +01:00
|
|
|
<div v-if="mygrp.descr" class="fit column no-wrap justify-evenly items-center content-start">
|
2024-04-09 21:57:04 +02:00
|
|
|
<div class>
|
2022-06-17 12:28:43 +02:00
|
|
|
<q-avatar size="140px">
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-img :src="getImgGrp()" :alt="mygrpname()" img-class="imgprofile" height="140px"
|
|
|
|
|
@click="showPic = true" />
|
2022-06-17 12:28:43 +02:00
|
|
|
</q-avatar>
|
|
|
|
|
</div>
|
2022-02-03 00:33:05 +01:00
|
|
|
|
2022-06-17 12:28:43 +02:00
|
|
|
<div class="text-h6">
|
2024-04-09 21:57:04 +02:00
|
|
|
<span v-if="checkifShow('name')">{{ mygrp.title }}</span>
|
2022-06-17 12:28:43 +02:00
|
|
|
</div>
|
2025-03-13 18:19:35 +01:00
|
|
|
<div v-if="mygrp.title !== mygrp.groupname" class="col-12 text-h7 text-blue text-shadow-2">
|
2024-06-19 00:21:06 +02:00
|
|
|
{{ mygrp.groupname }}
|
|
|
|
|
</div>
|
2022-06-17 12:28:43 +02:00
|
|
|
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-banner v-if="userStore.IsRefusedGroupByGroupname(mygrp.groupname)" rounded class="bg-red text-white"
|
|
|
|
|
style="text-align: center">
|
2025-03-01 14:14:43 +01:00
|
|
|
<em style="font-weight: bold">{{ $t("db.youarerefusedgroup") }}</em>
|
2024-04-09 21:57:04 +02:00
|
|
|
<br />
|
2022-08-08 16:34:30 +02:00
|
|
|
</q-banner>
|
|
|
|
|
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-btn v-if="circuitslistOpt.length > 0" icon-right="img: /images/1ris_rosso_100.png" color="green" size="md"
|
2025-03-13 18:58:17 +01:00
|
|
|
class="q-ma-md" :label="t('circuit.sendcoins')" dense rounded @click="showsendCoinTo = true">
|
2024-06-19 00:21:06 +02:00
|
|
|
</q-btn>
|
|
|
|
|
|
2022-06-17 12:28:43 +02:00
|
|
|
<div>
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-btn v-if="
|
|
|
|
|
!userStore.IsMyGroupByGroupname(mygrp.groupname) &&
|
|
|
|
|
!userStore.IsAskedGroupByGroupname(mygrp.groupname) &&
|
|
|
|
|
!userStore.IsRefusedGroupByGroupname(mygrp.groupname)
|
|
|
|
|
" icon="fas fa-user-plus" color="primary" :label="$t('groups.ask_group')" @click="
|
|
|
|
|
tools.setRequestGroup(
|
|
|
|
|
$q,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
mygrp.groupname,
|
|
|
|
|
true
|
|
|
|
|
)
|
|
|
|
|
" />
|
|
|
|
|
<q-btn v-if="userStore.IsMyGroupByGroupname(mygrp.groupname)" rounded icon="fas fa-ellipsis-h">
|
2022-06-17 12:28:43 +02:00
|
|
|
<q-menu>
|
|
|
|
|
<q-list v-if="true" style="min-width: 150px">
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-item v-if="userStore.IsMyGroupByGroupname(mygrp.groupname)" clickable v-close-popup @click="
|
|
|
|
|
tools.removeFromMyGroups(
|
|
|
|
|
$q,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
mygrp.groupname,
|
|
|
|
|
$t('db.domanda_exit_fromgroup', {
|
|
|
|
|
groupname: mygrp.groupname,
|
|
|
|
|
})
|
|
|
|
|
)
|
|
|
|
|
">
|
2022-06-17 12:28:43 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-03 16:51:45 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
2022-06-17 12:28:43 +02:00
|
|
|
</q-item-section>
|
2024-04-09 21:57:04 +02:00
|
|
|
<q-item-section>
|
2025-03-01 14:14:43 +01:00
|
|
|
{{ $t("groups.exit_group") }}
|
2024-04-09 21:57:04 +02:00
|
|
|
</q-item-section>
|
2022-06-17 12:28:43 +02:00
|
|
|
</q-item>
|
|
|
|
|
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-list v-if="
|
|
|
|
|
userStore.IsMyGroupByGroupname(mygrp.groupname) &&
|
|
|
|
|
tools.iAmAdminGroup(mygrp.groupname)
|
|
|
|
|
" style="min-width: 200px">
|
|
|
|
|
<q-item clickable v-close-popup @click="
|
|
|
|
|
tools.setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.GROUPSCMD.DELETE_GROUP,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
'',
|
|
|
|
|
mygrp.groupname
|
|
|
|
|
)
|
|
|
|
|
">
|
2022-06-17 12:28:43 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-03 16:51:45 +01:00
|
|
|
<q-icon color="negative" name="fas fa-trash-alt" />
|
2022-06-17 12:28:43 +02:00
|
|
|
</q-item-section>
|
2024-04-09 21:57:04 +02:00
|
|
|
<q-item-section>
|
2025-03-01 14:14:43 +01:00
|
|
|
{{ $t("groups.delete_group") }}
|
2024-04-09 21:57:04 +02:00
|
|
|
</q-item-section>
|
2022-06-17 12:28:43 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-btn v-if="
|
|
|
|
|
userStore.IsAskedGroupByGroupname(mygrp.groupname) &&
|
|
|
|
|
!userStore.IsMyGroupByGroupname(mygrp.groupname)
|
|
|
|
|
" icon="fas fa-user-minus" outline flat :label="$t('shared.cancel_ask_short')" @click="
|
|
|
|
|
tools.cancelReqGroups(
|
|
|
|
|
$q,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
mygrp.groupname
|
|
|
|
|
)
|
|
|
|
|
" />
|
2022-06-17 12:28:43 +02:00
|
|
|
</div>
|
2022-08-09 17:31:49 +02:00
|
|
|
</div>
|
2024-04-09 21:57:04 +02:00
|
|
|
<div class="absolute-top-right q-mr-sm q-my-md q-pt-lg">
|
|
|
|
|
<div class="column">
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-btn flat round color="blue" icon="share" style="z-index: 1"
|
|
|
|
|
@click.stop="tools.copyToClip($q, getlinkpage(), true)"></q-btn>
|
2024-04-09 21:57:04 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2025-03-13 18:19:35 +01:00
|
|
|
<div v-if="mygrp.descr" class="no-wrap justify-evenly items-center content-start">
|
2022-06-17 12:28:43 +02:00
|
|
|
<!--
|
2022-03-06 01:44:54 +01:00
|
|
|
<q-btn
|
2022-06-17 12:28:43 +02:00
|
|
|
v-if="tools.iAmAdminGroup(groupname)" icon="fas fa-pencil-alt"
|
|
|
|
|
color="blue"
|
|
|
|
|
size="md"
|
|
|
|
|
:label="$t('otherpages.modifgrp')"
|
|
|
|
|
to="/editgrp">
|
2022-03-06 01:44:54 +01:00
|
|
|
</q-btn>
|
2022-06-17 12:28:43 +02:00
|
|
|
-->
|
2022-03-01 23:50:47 +01:00
|
|
|
|
2022-06-17 12:28:43 +02:00
|
|
|
<q-tabs v-model="tabgrp" class="text-blue">
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-tab :label="t('shared.info1')" name="info" icon="fas fa-info"></q-tab>
|
|
|
|
|
<q-tab v-if="
|
|
|
|
|
tools.iCanShowGroupsMember(mygrp) ||
|
|
|
|
|
tools.iAmAdminGroup(groupname)
|
|
|
|
|
" :label="t('shared.subscribes')" name="members" icon="fas fa-users"></q-tab>
|
|
|
|
|
<q-tab v-if="tools.iCanShowAnnunci(mygrp)" :label="t('profile.annunci')" name="annunci"
|
|
|
|
|
icon="fas fa-pencil-alt"></q-tab>
|
|
|
|
|
<q-tab v-if="
|
|
|
|
|
tools.iCanShowGroupsMember(mygrp) ||
|
|
|
|
|
tools.iAmAdminGroup(groupname)
|
|
|
|
|
" :label="t('groups.circuits')" name="circuits" icon="img: /images/1ris_rosso_100.png"></q-tab>
|
2022-06-17 12:28:43 +02:00
|
|
|
</q-tabs>
|
2022-03-06 01:44:54 +01:00
|
|
|
|
2025-01-09 15:17:21 +01:00
|
|
|
<q-tab-panels v-model="tabgrp" animated keep-alive>
|
2022-06-17 12:28:43 +02:00
|
|
|
<q-tab-panel name="info">
|
2025-01-28 23:32:37 +01:00
|
|
|
<q-card v-if="mygrp.title">
|
|
|
|
|
<q-card-section>
|
|
|
|
|
<div class="col-12 text-h7">
|
|
|
|
|
<span v-if="checkifShow('descr')">{{ mygrp.descr }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-6 q-ma-xs">
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-btn v-if="getLinkGrpTelegram()" icon="fab fa-telegram" color="blue" type="a" size="md" rounded
|
|
|
|
|
:label="$t('msgs.telegrammsg')" :href="getLinkGrpTelegram()" target="__blank"></q-btn>
|
2025-01-28 23:32:37 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="col-6 q-ma-xs">
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-btn v-if="getLinkWebSite()" icon="fas fa-globe" color="blue" type="a" size="md" rounded :label="$t('reg.website') +
|
|
|
|
|
' ' +
|
|
|
|
|
tools.getMainUrl(getLinkWebSite())
|
|
|
|
|
" :href="getLinkWebSite()" target="__blank"></q-btn>
|
2025-01-28 23:32:37 +01:00
|
|
|
</div>
|
|
|
|
|
</q-card-section>
|
|
|
|
|
</q-card>
|
2022-06-17 12:28:43 +02:00
|
|
|
<div>
|
|
|
|
|
<q-card>
|
2022-08-09 17:31:49 +02:00
|
|
|
<q-card-section>
|
2025-03-13 18:19:35 +01:00
|
|
|
<div v-if="
|
|
|
|
|
mygrp.visibility.includes(
|
|
|
|
|
shared_consts.Visibility_Group.PRIVATE
|
|
|
|
|
)
|
|
|
|
|
" class="row">
|
2022-08-10 17:06:46 +02:00
|
|
|
<div class="q-pa-xs">
|
2022-08-11 13:38:31 +02:00
|
|
|
<q-icon name="fas fa-lock"></q-icon>
|
2022-08-10 17:06:46 +02:00
|
|
|
</div>
|
|
|
|
|
<div>
|
2024-06-19 00:21:06 +02:00
|
|
|
<div class="title_param">
|
2025-03-01 14:14:43 +01:00
|
|
|
{{ $t("groups.private") }}
|
2024-06-19 00:21:06 +02:00
|
|
|
</div>
|
2025-03-01 14:14:43 +01:00
|
|
|
{{ $t("groups.private_descr") }}
|
2022-08-10 17:06:46 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2025-03-13 18:19:35 +01:00
|
|
|
<div v-if="
|
|
|
|
|
mygrp.visibility.includes(
|
|
|
|
|
shared_consts.Visibility_Group.HIDDEN
|
|
|
|
|
)
|
|
|
|
|
" class="row">
|
2022-08-10 17:06:46 +02:00
|
|
|
<div class="q-pa-xs">
|
2022-08-11 13:38:31 +02:00
|
|
|
<q-icon name="fas fa-eye-slash"></q-icon>
|
2022-08-10 17:06:46 +02:00
|
|
|
</div>
|
|
|
|
|
<div>
|
2025-03-01 14:14:43 +01:00
|
|
|
<div class="title_param">{{ $t("groups.hidden") }}</div>
|
|
|
|
|
{{ $t("groups.hidden_descr") }}
|
2022-08-10 17:06:46 +02:00
|
|
|
</div>
|
2022-08-09 17:31:49 +02:00
|
|
|
</div>
|
|
|
|
|
<div class="members">
|
2025-03-01 14:14:43 +01:00
|
|
|
{{ $t("products.category") }}
|
2025-01-28 23:32:37 +01:00
|
|
|
<q-item>
|
|
|
|
|
<q-item-section>
|
|
|
|
|
<q-item-label class="full-width">
|
2025-03-13 18:19:35 +01:00
|
|
|
<div v-for="(rec, ind) of mygrp.recCatGrp" :key="ind">
|
|
|
|
|
<q-chip dense class="text-center shadow-5 glossy chipmodif text-white"
|
|
|
|
|
:style="`background-color: ${rec.color};`">
|
2025-01-28 23:32:37 +01:00
|
|
|
<q-icon :name="rec.icon" left />
|
2025-03-13 18:19:35 +01:00
|
|
|
{{ rec.descr }}</q-chip>
|
2025-01-28 23:32:37 +01:00
|
|
|
</div>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
|
2022-08-09 17:31:49 +02:00
|
|
|
<q-icon name="fas fa-users"></q-icon>
|
2023-01-03 16:51:45 +01:00
|
|
|
{{ numUsers() }}
|
|
|
|
|
{{
|
|
|
|
|
numUsers() === 1
|
2025-03-01 14:14:43 +01:00
|
|
|
? t("shared.member")
|
|
|
|
|
: t("shared.members")
|
2023-01-03 16:51:45 +01:00
|
|
|
}}
|
2022-08-09 17:31:49 +02:00
|
|
|
</div>
|
|
|
|
|
<div class="admins">
|
|
|
|
|
<q-icon name="fas fa-user-cog"></q-icon>
|
2023-01-03 16:51:45 +01:00
|
|
|
{{ numAdmins() }}
|
|
|
|
|
{{
|
|
|
|
|
numAdmins() === 1
|
2025-03-01 14:14:43 +01:00
|
|
|
? t("shared.admin")
|
|
|
|
|
: t("shared.admins")
|
2023-01-03 16:51:45 +01:00
|
|
|
}}
|
2022-08-09 17:31:49 +02:00
|
|
|
</div>
|
2025-01-28 23:32:37 +01:00
|
|
|
|
2022-08-09 17:31:49 +02:00
|
|
|
<div v-for="(user, index) of mygrp.admins" :key="index">
|
2025-03-13 18:19:35 +01:00
|
|
|
<CMyUser :mycontact="user" :visu="costanti.FIND_PEOPLE" @setCmd="tools.setCmd"></CMyUser>
|
2022-08-09 17:31:49 +02:00
|
|
|
</div>
|
2025-01-28 23:32:37 +01:00
|
|
|
|
|
|
|
|
<div v-if="cities.length > 0" class="row">
|
|
|
|
|
<div class="q-pa-xs">
|
|
|
|
|
<q-icon name="fas fa-map-marker-alt"></q-icon>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="title_param">
|
|
|
|
|
<div v-for="(city, index) of cities" :key="index">
|
|
|
|
|
{{ city.comune }} ({{ city.prov }})
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="element">
|
|
|
|
|
<q-icon name="fas fa-lightbulb"></q-icon>
|
|
|
|
|
{{
|
2025-03-01 14:14:43 +01:00
|
|
|
$t("shared.createdby", {
|
2025-01-28 23:32:37 +01:00
|
|
|
username: mygrp.createdBy,
|
|
|
|
|
date: tools.getstrDateYY(mygrp.date_created),
|
|
|
|
|
})
|
|
|
|
|
}}
|
|
|
|
|
</div>
|
2025-03-13 18:19:35 +01:00
|
|
|
<div v-if="
|
|
|
|
|
!!mygrp.date_updated &&
|
|
|
|
|
tools.getstrshortDate(mygrp.date_updated) !==
|
|
|
|
|
tools.getstrshortDate(mygrp.createdBy)
|
|
|
|
|
" class="element">
|
2025-01-28 23:32:37 +01:00
|
|
|
<q-icon name="fas fa-pencil-alt"></q-icon>
|
|
|
|
|
{{
|
2025-03-01 14:14:43 +01:00
|
|
|
$t("shared.lastmodify", {
|
2025-01-28 23:32:37 +01:00
|
|
|
date: tools.getstrDateYY(mygrp.date_updated),
|
|
|
|
|
})
|
|
|
|
|
}}
|
|
|
|
|
</div>
|
2022-08-09 17:31:49 +02:00
|
|
|
</q-card-section>
|
2022-06-17 12:28:43 +02:00
|
|
|
</q-card>
|
2022-02-03 00:33:05 +01:00
|
|
|
|
2023-01-03 16:51:45 +01:00
|
|
|
<br />
|
2022-06-17 12:28:43 +02:00
|
|
|
</div>
|
2023-04-17 00:11:45 +02:00
|
|
|
<q-card v-if="mygrp.note">
|
|
|
|
|
<q-card-section>
|
2025-01-28 23:32:37 +01:00
|
|
|
<div class="text-h7">Pagina:</div>
|
2023-04-17 00:11:45 +02:00
|
|
|
</q-card-section>
|
|
|
|
|
<q-separator />
|
2022-02-08 23:06:22 +01:00
|
|
|
|
2023-04-17 00:11:45 +02:00
|
|
|
<q-card-section>
|
|
|
|
|
<div v-if="mygrp.note">
|
|
|
|
|
<br />
|
|
|
|
|
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
|
|
|
|
<div v-if="mygrp.note" v-html="mygrp.note"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</q-card-section>
|
|
|
|
|
</q-card>
|
2022-06-17 12:28:43 +02:00
|
|
|
</q-tab-panel>
|
|
|
|
|
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-tab-panel name="members" style="max-width: 500px" v-if="tools.iCanShowGroupsMember(mygrp)">
|
|
|
|
|
<q-tabs v-show="tools.iAmAdminGroup(groupname)" v-model="tabmembers" class="text-blue">
|
2022-08-15 15:10:00 +02:00
|
|
|
<q-tab label="Tutti" name="all" icon="fas fa-users"></q-tab>
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-tab v-if="tools.iAmAdminGroup(groupname)" label="Richieste" name="rich"
|
|
|
|
|
icon="fas fa-user-plus"></q-tab>
|
|
|
|
|
<q-tab v-if="tools.iAmAdminGroup(groupname)" label="Rifiutati" name="refused" icon="fas fa-user-minus"
|
|
|
|
|
outline></q-tab>
|
2022-08-15 15:10:00 +02:00
|
|
|
</q-tabs>
|
|
|
|
|
|
2025-01-09 15:17:21 +01:00
|
|
|
<q-tab-panels v-model="tabmembers" animated keep-alive>
|
2023-01-03 16:51:45 +01:00
|
|
|
<q-tab-panel name="rich">
|
2025-03-13 18:19:35 +01:00
|
|
|
<CGridTableRec prop_mytable="mygroups" prop_mytitle :prop_mycolumns="colmyUserPeople"
|
|
|
|
|
prop_colkey="_id" col_title :vertical="costanti.VISUTABLE_USER_TABGROUP"
|
|
|
|
|
nodataLabel="Nessuna Richiesta in sospeso" :prop_search="false" hint="Username da trovare"
|
|
|
|
|
:finder="false" :choose_visutype="false" :finder_noNull="false"
|
|
|
|
|
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS" :butt_modif_new="false"
|
|
|
|
|
noresultLabel="Username non trovato" :arrfilters="arrfilterand" :filtercustom="filtercustom_rich"
|
|
|
|
|
:prop_searchList="searchList" :showType="costanti.SHOW_USERINFO" :showCol="false"
|
|
|
|
|
:extraparams="extraparams_rich()" :extrafield="groupname"
|
|
|
|
|
:visufind="costanti.REQ_ADD_USER_TO_GROUP"></CGridTableRec>
|
2023-01-03 16:51:45 +01:00
|
|
|
</q-tab-panel>
|
|
|
|
|
<q-tab-panel name="refused">
|
2025-03-13 18:19:35 +01:00
|
|
|
<CGridTableRec prop_mytable="mygroups" prop_mytitle :prop_mycolumns="colmyUserPeople"
|
|
|
|
|
prop_colkey="_id" col_title :vertical="costanti.VISUTABLE_SCHEDA_GROUP"
|
|
|
|
|
nodataLabel="Nessun utente Rifiutato" :prop_search="false" hint="Username da trovare"
|
|
|
|
|
:finder="false" :choose_visutype="false" :finder_noNull="false"
|
|
|
|
|
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS" :butt_modif_new="false"
|
|
|
|
|
noresultLabel="Username non trovato" :arrfilters="arrfilterand" :filtercustom="filtercustom_rich"
|
|
|
|
|
:prop_searchList="searchList" :showType="costanti.SHOW_USERINFO" :showCol="false"
|
|
|
|
|
:extraparams="extraparams_refused()" :extrafield="groupname"
|
|
|
|
|
:visufind="costanti.REQ_ADD_USER_TO_GROUP"></CGridTableRec>
|
2023-01-03 16:51:45 +01:00
|
|
|
</q-tab-panel>
|
2022-08-15 15:10:00 +02:00
|
|
|
</q-tab-panels>
|
2023-01-03 16:51:45 +01:00
|
|
|
</q-tab-panel>
|
|
|
|
|
<q-tab-panel name="circuits">
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-select v-if="circuitslistOpt.length > 0" v-model="circuitIndex" :options="circuitslistOpt" emit-value
|
|
|
|
|
map-options :behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'">
|
2024-04-09 21:57:04 +02:00
|
|
|
<template v-slot:prepend></template>
|
2023-03-18 00:57:43 +01:00
|
|
|
<template v-slot:option="scope">
|
|
|
|
|
<q-item v-bind="scope.itemProps">
|
|
|
|
|
<q-item-section>
|
|
|
|
|
<q-item-label>{{ scope.opt.label }}</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</template>
|
|
|
|
|
</q-select>
|
|
|
|
|
|
2025-03-13 18:19:35 +01:00
|
|
|
<q-tabs v-if="circuitslistOpt.length > 0" v-model="tabcircuit" class="text-blue" no-caps>
|
|
|
|
|
<q-tab :label="t('shared.info1')" name="info" icon="fas fa-info"></q-tab>
|
|
|
|
|
<q-tab :label="t('circuit.movements')" name="mov" icon="img: /images/1ris_rosso_100.png"></q-tab>
|
2023-03-18 00:57:43 +01:00
|
|
|
</q-tabs>
|
|
|
|
|
</q-tab-panel>
|
2025-01-14 18:34:58 +01:00
|
|
|
<q-tab-panel name="annunci"></q-tab-panel>
|
2023-03-18 00:57:43 +01:00
|
|
|
</q-tab-panels>
|
|
|
|
|
|
2023-04-17 00:11:45 +02:00
|
|
|
<div v-if="tabgrp === 'circuits' && tabcircuit === 'info'">
|
2025-01-09 15:17:21 +01:00
|
|
|
<q-tab-panels v-model="tabcircuit" animated keep-alive>
|
2023-08-27 23:56:18 +02:00
|
|
|
<q-tab-panel name="info" style="max-width: 500px">
|
|
|
|
|
<div v-for="(circuit, ind) of circuitslist" :key="ind">
|
|
|
|
|
<div class="circuit_name">{{ circuit.name }}:</div>
|
2025-03-13 18:19:35 +01:00
|
|
|
<CInfoAccount :circuitname="circuit.name" :grp="mygrp" :account="circuit.account"
|
|
|
|
|
:admin="tools.iAmAdminCircuit(circuit.name)" />
|
2023-08-27 23:56:18 +02:00
|
|
|
</div>
|
|
|
|
|
</q-tab-panel>
|
|
|
|
|
</q-tab-panels>
|
2023-04-17 00:11:45 +02:00
|
|
|
</div>
|
|
|
|
|
<div v-if="tabgrp === 'circuits' && tabcircuit === 'mov'">
|
|
|
|
|
<div v-if="circuitslist && circuitslist.length > 0">
|
|
|
|
|
<q-toggle v-model="tabellare" label="Tabella"></q-toggle>
|
|
|
|
|
|
2025-03-13 18:19:35 +01:00
|
|
|
<CGridTableRec v-if="tabellare && !loading" prop_mytable="movements" prop_mytitle
|
|
|
|
|
:prop_mycolumns="colmyMovementTable" prop_colkey="_id" col_title="Lista Movimenti" :vertical="0"
|
|
|
|
|
nodataLabel="Nessun Movimento effettuato" :prop_search="true" :enableExport="true"
|
|
|
|
|
hint="nota da trovare (tabella)" :finder="false" :choose_visutype="false" :finder_noNull="false"
|
|
|
|
|
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS" :butt_modif_new="false"
|
|
|
|
|
noresultLabel="movimenti non trovati con questa ricerca" filterextra :prop_pagination="{
|
2023-04-17 00:11:45 +02:00
|
|
|
sortBy: 'transactionDate',
|
|
|
|
|
descending: true,
|
|
|
|
|
page: 1,
|
2023-10-01 01:24:55 +02:00
|
|
|
rowsNumber: 0,
|
2023-04-17 00:11:45 +02:00
|
|
|
rowsPerPage: 20,
|
2025-03-13 18:19:35 +01:00
|
|
|
}" :showType="costanti.SHOW_MOVEMENTS" :showCol="true" :showHeaderCol="true" :extraparams="getExtraparams_movs_grp(circuitslist[circuitIndex])
|
|
|
|
|
" extrafield :visufind="costanti.FRIENDS"></CGridTableRec>
|
|
|
|
|
<CGridTableRec v-else-if="!loading" prop_mytable="movements" prop_mytitle :prop_mycolumns="colmyMovement"
|
|
|
|
|
prop_colkey="_id" col_title="Lista Movimenti" :vertical="costanti.VISUTABLE_LISTA"
|
|
|
|
|
nodataLabel="Nessun Movimento effettuato" :enableExport="true" :prop_search="true"
|
|
|
|
|
hint="nota da trovare" :finder="false" :choose_visutype="false" :finder_noNull="false"
|
|
|
|
|
:options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS" :butt_modif_new="false"
|
|
|
|
|
noresultLabel="movimenti non trovati con questa ricerca" :prop_pagination="{
|
2023-04-17 00:11:45 +02:00
|
|
|
sortBy: 'transactionDate',
|
|
|
|
|
descending: true,
|
|
|
|
|
page: 1,
|
|
|
|
|
rowsNumber: 20,
|
|
|
|
|
rowsPerPage: 20,
|
2025-03-13 18:19:35 +01:00
|
|
|
}" :showType="costanti.SHOW_MOVEMENTS" :showCol="false" :showHeaderCol="false" :extraparams="getExtraparams_movs_grp(circuitslist[circuitIndex])
|
|
|
|
|
" extrafield :visufind="costanti.FRIENDS"></CGridTableRec>
|
2023-04-17 00:11:45 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-01-14 18:34:58 +01:00
|
|
|
<div v-if="tabgrp === 'annunci'">
|
|
|
|
|
<div v-for="(card, ind) of mycards" :key="ind" :name="card.table">
|
2025-03-13 18:19:35 +01:00
|
|
|
<div v-if="card.table !== 'mygroups' && card.table !== 'circuits'">
|
|
|
|
|
<div v-if="card.table !== 'mygroups' && card.table !== 'circuits'">
|
2025-01-14 18:34:58 +01:00
|
|
|
<div v-if="card.table === shared_consts.TABLES_MYBACHECAS">
|
|
|
|
|
<q-tabs v-model="tabevents" class="text-teal">
|
|
|
|
|
<q-tab label="Eventi Passati" name="past"></q-tab>
|
|
|
|
|
<q-tab label="Prossimi Eventi" name="new"></q-tab>
|
|
|
|
|
</q-tabs>
|
|
|
|
|
|
|
|
|
|
<q-tab-panels v-model="tabevents" animated>
|
|
|
|
|
<q-tab-panel name="past">
|
2025-03-13 18:19:35 +01:00
|
|
|
<CSkill :groupname="mygrp.groupname" :table="card.table"
|
2025-01-14 18:34:58 +01:00
|
|
|
:filtercustom="filtrotables(card.table, tabevents)"
|
2025-03-13 18:19:35 +01:00
|
|
|
:butt_modif_new="tools.iAmAdminGroup(groupname)" :visuinpage="true" :noaut="false"
|
|
|
|
|
:title="card.title" />
|
2025-01-14 18:34:58 +01:00
|
|
|
</q-tab-panel>
|
|
|
|
|
<q-tab-panel name="new">
|
2025-03-13 18:19:35 +01:00
|
|
|
<CSkill :groupname="mygrp.groupname" :table="card.table"
|
2025-01-14 18:34:58 +01:00
|
|
|
:filtercustom="filtrotables(card.table, tabevents)"
|
2025-03-13 18:19:35 +01:00
|
|
|
:butt_modif_new="tools.iAmAdminGroup(groupname)" :visuinpage="true" :noaut="false"
|
|
|
|
|
:title="card.title" />
|
2025-01-14 18:34:58 +01:00
|
|
|
</q-tab-panel>
|
|
|
|
|
</q-tab-panels>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>
|
2025-03-13 18:19:35 +01:00
|
|
|
<CSkill :groupname="mygrp.groupname" :table="card.table"
|
|
|
|
|
:filtercustom="filtrotables(card.table, '')" :butt_modif_new="tools.iAmAdminGroup(groupname)"
|
|
|
|
|
:visuinpage="true" :noaut="false" :title="card.title" />
|
2025-01-14 18:34:58 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-04-17 00:11:45 +02:00
|
|
|
</div>
|
|
|
|
|
<div v-if="tabgrp === 'members' && tabmembers === 'all'">
|
2025-03-13 18:19:35 +01:00
|
|
|
<CGridTableRec ref="tabMembri" prop_mytable="users" prop_mytitle :prop_mycolumns="colmyUserPeople"
|
|
|
|
|
prop_colkey="_id" col_title="username" :vertical="costanti.VISUTABLE_LISTA" nodataLabel="Nessun Iscritto"
|
|
|
|
|
:prop_search="true" hint="Username da trovare" :finder="false" :choose_visutype="true"
|
|
|
|
|
:finder_noNull="false" :options="shared_consts.OPTIONS_SEARCH_USER_ALL_WORDS" :butt_modif_new="false"
|
|
|
|
|
noresultLabel="Username non trovato" :arrfilters="arrfilterand" :filtercustom="filtercustom"
|
|
|
|
|
:prop_searchList="searchList" :showType="costanti.SHOW_USERINFO" :showCol="false" :extrafield="groupname"
|
|
|
|
|
:extraparams="tools.extraparams(shared_consts.TABMYGROUPS)" :visufind="tools.iAmAdminGroup(groupname)
|
|
|
|
|
? costanti.REQ_REMOVE_USER_TO_GROUP
|
|
|
|
|
: costanti.FIND_PEOPLE
|
|
|
|
|
"></CGridTableRec>
|
2023-04-17 00:11:45 +02:00
|
|
|
</div>
|
2022-06-17 12:28:43 +02:00
|
|
|
</div>
|
2025-03-13 18:19:35 +01:00
|
|
|
<div v-else class="fit column no-wrap justify-evenly items-center content-start">
|
|
|
|
|
<q-skeleton type="QAvatar" size="140px" height="140px" :animation="animation" />
|
2022-06-17 12:28:43 +02:00
|
|
|
<q-card flat bordered style="width: 250px">
|
|
|
|
|
<div class="text-h6">
|
2023-01-03 16:51:45 +01:00
|
|
|
<q-skeleton :animation="animation" />
|
2022-06-17 12:28:43 +02:00
|
|
|
</div>
|
2024-06-19 00:21:06 +02:00
|
|
|
<div class="col-12 text-h7 text-grey text-center">
|
|
|
|
|
{{ groupname }}
|
|
|
|
|
</div>
|
2022-06-17 12:28:43 +02:00
|
|
|
<div class="col-12 text-h7">
|
2023-01-03 16:51:45 +01:00
|
|
|
<q-skeleton :animation="animation" />
|
2022-03-01 23:50:47 +01:00
|
|
|
</div>
|
2022-02-08 23:06:22 +01:00
|
|
|
|
2022-06-17 12:28:43 +02:00
|
|
|
<div class="col-12 text-h8 q-mt-sm">
|
2023-01-03 16:51:45 +01:00
|
|
|
<q-skeleton :animation="animation" />
|
2022-06-17 12:28:43 +02:00
|
|
|
</div>
|
|
|
|
|
<div class="col-12 text-h8 q-mt-sm">
|
2023-01-03 16:51:45 +01:00
|
|
|
<q-skeleton :animation="animation" />
|
2022-06-17 12:28:43 +02:00
|
|
|
</div>
|
|
|
|
|
</q-card>
|
|
|
|
|
</div>
|
2022-03-01 23:50:47 +01:00
|
|
|
</div>
|
2023-10-01 01:24:55 +02:00
|
|
|
<div v-if="!tools.isLogged()">
|
|
|
|
|
<CCheckIfIsLogged></CCheckIfIsLogged>
|
|
|
|
|
</div>
|
2023-01-03 16:51:45 +01:00
|
|
|
<q-dialog v-model="showPic" full-height full-width>
|
|
|
|
|
<img :src="getImgGrp()" :alt="groupname" class="full-width" />
|
2022-06-17 12:28:43 +02:00
|
|
|
</q-dialog>
|
|
|
|
|
</div>
|
2022-02-03 00:33:05 +01:00
|
|
|
</div>
|
2025-01-14 18:34:58 +01:00
|
|
|
<div v-if="showsendCoinTo">
|
2025-03-13 18:19:35 +01:00
|
|
|
<CSendCoins :showprop="showsendCoinTo" :to_group="mygrp" circuitname="" @close="showsendCoinTo = false">
|
2024-06-19 00:21:06 +02:00
|
|
|
</CSendCoins>
|
2025-01-14 18:34:58 +01:00
|
|
|
</div>
|
2022-02-03 00:33:05 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./mygroup.ts">
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2025-03-01 14:14:43 +01:00
|
|
|
@import "./mygroup.scss";
|
2022-02-03 00:33:05 +01:00
|
|
|
</style>
|