- Add saldo to member's list
This commit is contained in:
@@ -56,6 +56,7 @@ const msg_website_it = {
|
|||||||
SignUpIscrizione: 'Diventa Socio CNM',
|
SignUpIscrizione: 'Diventa Socio CNM',
|
||||||
SignUp_alreadylista: 'Registrazione per quelli che erano già nella lista di Notevole (del 2019) !',
|
SignUp_alreadylista: 'Registrazione per quelli che erano già nella lista di Notevole (del 2019) !',
|
||||||
SignUp2: 'Registrazione',
|
SignUp2: 'Registrazione',
|
||||||
|
SignUp3: 'Reg',
|
||||||
SignUpBot: 'Registrati',
|
SignUpBot: 'Registrati',
|
||||||
SignIn: 'Login',
|
SignIn: 'Login',
|
||||||
status: 'Statistiche',
|
status: 'Statistiche',
|
||||||
|
|||||||
@@ -773,7 +773,7 @@ const baseroutes: IListRoutes[] = [
|
|||||||
{
|
{
|
||||||
active: functionality.ENABLE_REGISTRATION && functionality.ENABLE_REG_NEED_TELEGRAM,
|
active: functionality.ENABLE_REGISTRATION && functionality.ENABLE_REG_NEED_TELEGRAM,
|
||||||
order: 1000,
|
order: 1000,
|
||||||
path: '/signup/:invited/:usernameteleg/:idteleg',
|
path: '/signup/:invited/:usernameteleg/:idteleg/:regexpire',
|
||||||
materialIcon: 'how_to_reg',
|
materialIcon: 'how_to_reg',
|
||||||
name: 'pages.SignUp',
|
name: 'pages.SignUp',
|
||||||
component: () => import('@/views/login/signup/signup.vue'),
|
component: () => import('@/views/login/signup/signup.vue'),
|
||||||
@@ -813,6 +813,17 @@ const baseroutes: IListRoutes[] = [
|
|||||||
infooter: false,
|
infooter: false,
|
||||||
separator: false
|
separator: false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
active: true,
|
||||||
|
order: 1002,
|
||||||
|
path: '/signup/:invited/:regexpire',
|
||||||
|
materialIcon: 'how_to_reg',
|
||||||
|
name: 'pages.SignUp3',
|
||||||
|
component: () => import('@/views/login/signup/signup.vue'),
|
||||||
|
inmenu: false,
|
||||||
|
infooter: false,
|
||||||
|
separator: false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
active: functionality.ENABLE_REGISTRATION,
|
active: functionality.ENABLE_REGISTRATION,
|
||||||
order: 2000,
|
order: 2000,
|
||||||
|
|||||||
@@ -278,7 +278,10 @@ module.exports = configure((ctx) => ({
|
|||||||
pwa: {
|
pwa: {
|
||||||
workboxPluginMode: 'InjectManifest', // 'GenerateSW' or 'InjectManifest'
|
workboxPluginMode: 'InjectManifest', // 'GenerateSW' or 'InjectManifest'
|
||||||
workboxOptions: {}, // only for GenerateSW
|
workboxOptions: {}, // only for GenerateSW
|
||||||
|
extendGenerateSWOptions (cfg) {
|
||||||
|
cfg.skipWaiting = false
|
||||||
|
cfg.clientsClaim = false
|
||||||
|
},
|
||||||
// for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts])
|
// for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts])
|
||||||
// if using workbox in InjectManifest mode
|
// if using workbox in InjectManifest mode
|
||||||
chainWebpackCustomSW(chain) {
|
chainWebpackCustomSW(chain) {
|
||||||
@@ -320,6 +323,26 @@ module.exports = configure((ctx) => ({
|
|||||||
sizes: '96x96',
|
sizes: '96x96',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
src: 'images/riso-apple-icon-120x120.png',
|
||||||
|
sizes: '120x120',
|
||||||
|
type: 'image/png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: 'images/riso-apple-icon-144x144.png',
|
||||||
|
sizes: '144x144',
|
||||||
|
type: 'image/png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: 'images/riso-apple-icon-152x152.png',
|
||||||
|
sizes: '152x152',
|
||||||
|
type: 'image/png',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: 'images/riso-apple-icon-180x180.png',
|
||||||
|
sizes: '180x180',
|
||||||
|
type: 'image/png',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ import { useI18n } from '@/boot/i18n'
|
|||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CCurrencyValue',
|
name: 'CCurrencyValue',
|
||||||
props: {
|
props: {
|
||||||
|
small: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
label: {
|
label: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false,
|
required: false,
|
||||||
|
|||||||
@@ -1,8 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="value !== null" :class="`text-h5 bordo_stondato_stretto full-width`"
|
<div v-if="small">
|
||||||
:style="(!$q.screen.lt.sm ? `min-width: 250px; ` : ``) + (color_border ? `border-color: ` + color_border + `!important;`: '')">
|
<q-chip
|
||||||
|
dense class="cltexth4 chipbooked shadow-5 q-pa-sm2"
|
||||||
|
size="md"
|
||||||
|
:color="value > 0 ? `green` : value === 0 ? `gray` : `red`" text-color="white"
|
||||||
|
icon="fas fa-coins">
|
||||||
|
{{ tools.roundDec2(value) }} <span class="text-currency"> <em class="q-pa-xxs text-white rounded-borders shadow-2" :style="`background-color: ` + (color ? color : '#ff5500')">{{ symbol }}</em></span>
|
||||||
|
</q-chip>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<div v-if="value !== null" :class="`text-h5 ` + small ? `bordo_stondato_small`: `bordo_stondato_stretto` + ` full-width`"
|
||||||
|
:style="(!$q.screen.lt.sm && !small ? `min-width: 250px; ` : small ? ` max-width: 120px;` : ``) + (color_border ? `border-color: ` + color_border + `!important;`: '')">
|
||||||
<div class="text-center text-h7-dense text-italic text-grey-14">
|
<div class="text-center text-h7-dense text-italic text-grey-14">
|
||||||
{{ label }}
|
<span v-if="small">
|
||||||
|
<em class="q-px-xs text-white rounded-borders" :style="`background-color: ` + (color ? color : '#ff5500')">{{ symbol }}</em>
|
||||||
|
</span>
|
||||||
|
<span v-else>{{ label }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<q-field
|
<q-field
|
||||||
@@ -11,12 +24,12 @@
|
|||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
type="number"
|
type="number"
|
||||||
rounded
|
rounded
|
||||||
class="q-px-sm text-h5"
|
:class="!small ? `q-px-sm text-h5`: `q-px-xs text-h7`"
|
||||||
color="green"
|
:color="value > 0 ? `green` : `red`"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<!--<img src="https://cdn.quasar.dev/logo-v2/svg/logo.svg">-->
|
<!--<img src="https://cdn.quasar.dev/logo-v2/svg/logo.svg">-->
|
||||||
<q-btn v-if="tips"
|
<q-btn v-if="tips && !small"
|
||||||
icon="fas fa-info"
|
icon="fas fa-info"
|
||||||
color="primary" text-color="white"
|
color="primary" text-color="white"
|
||||||
round
|
round
|
||||||
@@ -25,15 +38,15 @@
|
|||||||
>
|
>
|
||||||
|
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-icon v-else name="fas fa-coins" size="sm"/>
|
<q-icon v-else name="fas fa-coins" :size="small ? `xs`: `sm`"/>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:control>
|
<template v-slot:control>
|
||||||
<div class="align_elem_right">{{valueextra}}{{ tools.roundDec2(value) }}
|
<div :class="`align_elem_right `+ small ? `text-h7` : ``">{{ valueextra }}{{ tools.roundDec2(value) }}
|
||||||
<q-tooltip :offset="[10, 10]" v-model="showingtooltip">{{ tips }}</q-tooltip>
|
<q-tooltip :offset="[10, 10]" v-model="showingtooltip">{{ tips }}</q-tooltip>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<div class="text-h5">
|
<div v-if="!small" :class="small ? `text-h7-dense` : `text-h5`">
|
||||||
<em class="q-px-sm text-white rounded-borders" :style="`background-color: ` + (color ? color : '#ff5500')">{{ symbol }}</em>
|
<em class="q-px-sm text-white rounded-borders" :style="`background-color: ` + (color ? color : '#ff5500')">{{ symbol }}</em>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -42,6 +55,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" src="./CCurrencyValue.ts">
|
<script lang="ts" src="./CCurrencyValue.ts">
|
||||||
|
|||||||
@@ -168,6 +168,13 @@ export default defineComponent({
|
|||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
filterextra: {
|
||||||
|
type: Array,
|
||||||
|
required: false,
|
||||||
|
default: () => {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
},
|
||||||
extraparams: {
|
extraparams: {
|
||||||
required: false,
|
required: false,
|
||||||
default: {},
|
default: {},
|
||||||
@@ -763,6 +770,8 @@ export default defineComponent({
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
filtercustom,
|
filtercustom,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
filterextra: props.filterextra,
|
||||||
|
// @ts-ignore
|
||||||
filter_gte,
|
filter_gte,
|
||||||
sortBy: myobj,
|
sortBy: myobj,
|
||||||
descending,
|
descending,
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<q-chip
|
<q-chip
|
||||||
v-if="circuit.status !== undefined && circuit.status !== 0" :color="circuitStore.getColorCircuitClass(circuit)"
|
v-if="circuit.status !== undefined && circuit.status !== 0" :color="circuitStore.getColorCircuitClass(circuit)"
|
||||||
text-color="white"
|
text-color="white"
|
||||||
size="md"
|
size="sm"
|
||||||
:icon="globalStore.getValueByTableSingle('statuscircuit', circuit.status, 'icon')">{{
|
:icon="globalStore.getValueByTableSingle('statuscircuit', circuit.status, 'icon')">{{
|
||||||
globalStore.getValueByTableSingle('statuscircuit', circuit.status)
|
globalStore.getValueByTableSingle('statuscircuit', circuit.status)
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<q-chip
|
<q-chip
|
||||||
v-if="circuit.status !== undefined && circuit.status !== 0" :color="circuitStore.getColorCircuitClass(circuit)"
|
v-if="circuit.status !== undefined && circuit.status !== 0" :color="circuitStore.getColorCircuitClass(circuit)"
|
||||||
text-color="white"
|
text-color="white"
|
||||||
size="md"
|
size="sm"
|
||||||
:icon="globalStore.getValueByTableSingle('statuscircuit', circuit.status, 'icon')">{{ globalStore.getValueByTableSingle('statuscircuit', circuit.status) }}
|
:icon="globalStore.getValueByTableSingle('statuscircuit', circuit.status, 'icon')">{{ globalStore.getValueByTableSingle('statuscircuit', circuit.status) }}
|
||||||
<q-btn
|
<q-btn
|
||||||
class="q-ml-sm"
|
class="q-ml-sm"
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
import { defineComponent, onMounted, PropType, ref, watch } from 'vue'
|
import { defineComponent, onMounted, PropType, ref, watch } from 'vue'
|
||||||
import { useUserStore } from '@store/UserStore'
|
import { useUserStore } from '@store/UserStore'
|
||||||
import { IImgGallery, IUserFields, IUserProfile } from 'model'
|
import { ICircuit, IImgGallery, IUserFields, IUserProfile } from 'model'
|
||||||
import { costanti } from '@costanti'
|
import { costanti } from '@costanti'
|
||||||
import { shared_consts } from '@/common/shared_vuejs'
|
import { shared_consts } from '@/common/shared_vuejs'
|
||||||
import { tools } from '@store/Modules/tools'
|
import { tools } from '@store/Modules/tools'
|
||||||
import { useQuasar } from 'quasar'
|
import { useQuasar } from 'quasar'
|
||||||
import { CSendCoins } from '@/components/CSendCoins'
|
import { CSendCoins } from '@/components/CSendCoins'
|
||||||
|
import { CSaldo } from '@/components/CSaldo'
|
||||||
import { useI18n } from '@/boot/i18n'
|
import { useI18n } from '@/boot/i18n'
|
||||||
import { useRoute, useRouter } from 'vue-router'
|
import { useRoute, useRouter } from 'vue-router'
|
||||||
|
import { useCircuitStore } from '@store/CircuitStore'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CMyUser',
|
name: 'CMyUser',
|
||||||
components: { CSendCoins },
|
components: { CSendCoins, CSaldo },
|
||||||
emits: ['setCmd'],
|
emits: ['setCmd'],
|
||||||
props: {
|
props: {
|
||||||
mycontact: {
|
mycontact: {
|
||||||
@@ -63,6 +65,7 @@ export default defineComponent({
|
|||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
const circuitStore = useCircuitStore()
|
||||||
const $q = useQuasar()
|
const $q = useQuasar()
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const $router = useRouter()
|
const $router = useRouter()
|
||||||
@@ -72,6 +75,7 @@ export default defineComponent({
|
|||||||
const showsendCoinTo = ref(false)
|
const showsendCoinTo = ref(false)
|
||||||
|
|
||||||
const contact = ref(<IUserFields | null>null)
|
const contact = ref(<IUserFields | null>null)
|
||||||
|
const circuit = ref(<ICircuit | null | undefined>null)
|
||||||
|
|
||||||
watch(() => props.mycontact, (newval, oldval) => {
|
watch(() => props.mycontact, (newval, oldval) => {
|
||||||
console.log('watch: mycontact')
|
console.log('watch: mycontact')
|
||||||
@@ -91,6 +95,8 @@ export default defineComponent({
|
|||||||
username.value = props.mycontact.username
|
username.value = props.mycontact.username
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
circuit.value = circuitStore.getCircuitByName(props.circuitname)
|
||||||
}
|
}
|
||||||
|
|
||||||
function getImgUser(profile: IUserFields) {
|
function getImgUser(profile: IUserFields) {
|
||||||
@@ -121,6 +127,7 @@ export default defineComponent({
|
|||||||
userStore,
|
userStore,
|
||||||
tools,
|
tools,
|
||||||
showsendCoinTo,
|
showsendCoinTo,
|
||||||
|
circuit,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -15,9 +15,21 @@
|
|||||||
<q-item-label v-if="contact.profile" caption lines="1"><em>{{ contact.profile.qualifica }}</em></q-item-label>
|
<q-item-label v-if="contact.profile" caption lines="1"><em>{{ contact.profile.qualifica }}</em></q-item-label>
|
||||||
<q-item-label caption lines="1"></q-item-label>
|
<q-item-label caption lines="1"></q-item-label>
|
||||||
<q-item-label v-if="labelFooter" lines="1"><em>{{ labelFooter }}</em></q-item-label>
|
<q-item-label v-if="labelFooter" lines="1"><em>{{ labelFooter }}</em></q-item-label>
|
||||||
|
<q-item-label v-if="contact.account" caption lines="2">
|
||||||
|
<CSaldo
|
||||||
|
:small="true"
|
||||||
|
:account="contact.account"
|
||||||
|
:symbol="tools.getSymbolByCircuit(circuit)"
|
||||||
|
:color="tools.getColorByCircuit(circuit)"
|
||||||
|
:saldo="contact.account.saldo"
|
||||||
|
>
|
||||||
|
</CSaldo>
|
||||||
|
</q-item-label>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
|
|
||||||
<q-item-section side>
|
<q-item-section side>
|
||||||
|
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="userStore.IsMyCircuitByUser(contact).length > 0 && contact.username !== userStore.my.username"
|
v-if="userStore.IsMyCircuitByUser(contact).length > 0 && contact.username !== userStore.my.username"
|
||||||
icon="fas fa-coins"
|
icon="fas fa-coins"
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ import { colTableNotifCoins } from '@store/Modules/fieldsTable'
|
|||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CSaldo',
|
name: 'CSaldo',
|
||||||
props: {
|
props: {
|
||||||
|
small: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
symbol: {
|
symbol: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
|
|||||||
@@ -1,17 +1,27 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<CCurrencyValue
|
<CCurrencyValue
|
||||||
|
v-if="small"
|
||||||
|
:small="true"
|
||||||
|
:symbol="symbol"
|
||||||
|
:color_border="saldo > 0 ? `green` : `red`"
|
||||||
|
:color="color"
|
||||||
|
:value="saldo"
|
||||||
|
:label="t('account.saldo')">
|
||||||
|
</CCurrencyValue>
|
||||||
|
<CCurrencyValue
|
||||||
|
v-else
|
||||||
:symbol="symbol"
|
:symbol="symbol"
|
||||||
:tips="t('account.saldo_tips', {fido: qtarem, symbol})"
|
:tips="t('account.saldo_tips', {fido: qtarem, symbol})"
|
||||||
:color="color"
|
:color="color"
|
||||||
:value="saldo"
|
:value="saldo"
|
||||||
:valueextra="account && account.notifspending.length > 0 ? `* `: ''"
|
:valueextra="account && account.notifspending && account.notifspending.length > 0 ? `* `: ''"
|
||||||
:label="t('account.saldo') + ` (` + t('account.dispon') + `: ` + qtarem + `)`">
|
:label="t('account.saldo') + ` (` + t('account.dispon') + `: ` + qtarem + `)`">
|
||||||
|
|
||||||
</CCurrencyValue>
|
</CCurrencyValue>
|
||||||
|
|
||||||
|
|
||||||
<div v-if="account && account.notifspending.length > 0" :class="`text-h5 bordo_stondato_stretto full-width`"
|
<div v-if="!small && account && account.notifspending && account.notifspending.length > 0" :class="`text-h5 bordo_stondato_stretto full-width`"
|
||||||
:style="(!$q.screen.lt.sm ? `min-width: 250px; ` : ``) + (color_border ? `border-color: ` + color_border + `!important;`: '')">
|
:style="(!$q.screen.lt.sm ? `min-width: 250px; ` : ``) + (color_border ? `border-color: ` + color_border + `!important;`: '')">
|
||||||
<div class="text-center text-h7-dense text-italic text-grey-14">
|
<div class="text-center text-h7-dense text-italic text-grey-14">
|
||||||
{{ t('movement.pendingtransaction') }}
|
{{ t('movement.pendingtransaction') }}
|
||||||
|
|||||||
@@ -281,7 +281,6 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function myRuleEmail(val: string) {
|
function myRuleEmail(val: string) {
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|||||||
@@ -235,6 +235,21 @@ $heightBtn: 100%;
|
|||||||
letter-spacing: .00937em;
|
letter-spacing: .00937em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-3d {
|
||||||
|
letter-spacing: .00937em;
|
||||||
|
font-size: 1rem;
|
||||||
|
text-shadow: 1rem 1rem 2rem #ff0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-currency {
|
||||||
|
padding: 2px 2px;
|
||||||
|
font-size: 0.65rem;
|
||||||
|
font-weight: bold !important;
|
||||||
|
line-height: 1.55rem;
|
||||||
|
text-shadow: .0525rem .0525rem .125rem rgb(0, 0, 0);
|
||||||
|
letter-spacing: .00937em;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 718px) {
|
@media (max-width: 718px) {
|
||||||
// PER VERSIONE MOBILE
|
// PER VERSIONE MOBILE
|
||||||
|
|
||||||
@@ -734,7 +749,11 @@ $heightBtn: 100%;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.text-h8{
|
.text-h8{
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-h9{
|
||||||
|
font-size: 0.65rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bordo_stondato, .bordo_stondato_blu{
|
.bordo_stondato, .bordo_stondato_blu{
|
||||||
@@ -771,6 +790,16 @@ $heightBtn: 100%;
|
|||||||
border: solid 3px #49b502;
|
border: solid 3px #49b502;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bordo_stondato_small{
|
||||||
|
margin: 0px;
|
||||||
|
border-radius: 2rem;
|
||||||
|
padding-left: 4px;
|
||||||
|
padding-right: 4px;
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
border: solid 2px #49b502;
|
||||||
|
}
|
||||||
|
|
||||||
.bordo_stondato_pending{
|
.bordo_stondato_pending{
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
border-radius: 3rem;
|
border-radius: 3rem;
|
||||||
@@ -1039,16 +1068,6 @@ $heightBtn: 100%;
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bordo_stondato_small{
|
|
||||||
margin: 4px;
|
|
||||||
border-radius: 1rem;
|
|
||||||
padding-left: 2px;
|
|
||||||
padding-right: 2px;
|
|
||||||
padding-top: 2px;
|
|
||||||
padding-bottom: 2px;
|
|
||||||
border: solid 2px #49b502;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accom_num, .accom_maxosp {
|
.accom_num, .accom_maxosp {
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
background-color: green;
|
background-color: green;
|
||||||
@@ -1171,3 +1190,11 @@ $heightBtn: 100%;
|
|||||||
padding: 2px;
|
padding: 2px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.q-pa-xxs {
|
||||||
|
padding: 2px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.q-pa-sm2 {
|
||||||
|
padding: 12px 12px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -573,6 +573,7 @@ export interface IParamsQuery {
|
|||||||
filtersearch: string
|
filtersearch: string
|
||||||
filtersearch2: string
|
filtersearch2: string
|
||||||
filtercustom: string
|
filtercustom: string
|
||||||
|
filterextra?: string
|
||||||
filter_gte: string
|
filter_gte: string
|
||||||
lookup1?: IParLookup
|
lookup1?: IParLookup
|
||||||
lookup2?: IParLookup
|
lookup2?: IParLookup
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ export default defineComponent({
|
|||||||
filtersearch: '',
|
filtersearch: '',
|
||||||
filtersearch2: '',
|
filtersearch2: '',
|
||||||
filtercustom: '',
|
filtercustom: '',
|
||||||
|
filterextra: '',
|
||||||
filter_gte: '',
|
filter_gte: '',
|
||||||
sortBy: myobj,
|
sortBy: myobj,
|
||||||
descending,
|
descending,
|
||||||
|
|||||||
@@ -68,6 +68,10 @@ export const useCircuitStore = defineStore('CircuitStore', {
|
|||||||
return 'red'
|
return 'red'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getCircuitByName(circuitname: string): ICircuit | undefined | null {
|
||||||
|
return this.listcircuits.find((rec: ICircuit) => rec.name === circuitname)
|
||||||
|
},
|
||||||
|
|
||||||
async loadCircuits() {
|
async loadCircuits() {
|
||||||
return Api.SendReq('/users/circuits', 'POST', null)
|
return Api.SendReq('/users/circuits', 'POST', null)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
@@ -2377,6 +2377,12 @@ export const colTableUsersISP = [
|
|||||||
AddCol({
|
AddCol({
|
||||||
name: 'profile.teleg_id', field: 'profile', subfield: 'teleg_id', label_trans: 'reg.teleg_id',
|
name: 'profile.teleg_id', field: 'profile', subfield: 'teleg_id', label_trans: 'reg.teleg_id',
|
||||||
}),
|
}),
|
||||||
|
AddCol({
|
||||||
|
name: 'tokenreg', label_trans: 'reg.tokenreg',
|
||||||
|
}),
|
||||||
|
AddCol({
|
||||||
|
name: 'date_tokenreg', label_trans: 'reg.date_tokenreg',
|
||||||
|
}),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'profile.teleg_id_old',
|
name: 'profile.teleg_id_old',
|
||||||
field: 'profile',
|
field: 'profile',
|
||||||
|
|||||||
@@ -49,13 +49,13 @@ export default defineComponent({
|
|||||||
const path = computed(() => $route.params.path ? $route.params.path.toString() : '')
|
const path = computed(() => $route.params.path ? $route.params.path.toString() : '')
|
||||||
const idnotif = computed(() => $route.query.idnotif ? $route.query.idnotif.toString() : '')
|
const idnotif = computed(() => $route.query.idnotif ? $route.query.idnotif.toString() : '')
|
||||||
|
|
||||||
const filtroutente = ref(<any[]>[])
|
const filtroutente = ref([] as any[])
|
||||||
const showPic = ref(false)
|
const showPic = ref(false)
|
||||||
|
|
||||||
const circuit = ref(<ICircuit | null>{})
|
const circuit = ref({} as ICircuit | null)
|
||||||
const account = computed(() => circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null)
|
const account = computed(() => circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null)
|
||||||
const mystatus = ref(<number>0)
|
const mystatus = ref(0 as number)
|
||||||
const users_in_circuit = ref(<IFriends[]>[])
|
const users_in_circuit = ref([] as IFriends[])
|
||||||
|
|
||||||
const qtarem = computed(() => account.value ? circuitStore.getRemainingCoinsToSend(account.value) : 0)
|
const qtarem = computed(() => account.value ? circuitStore.getRemainingCoinsToSend(account.value) : 0)
|
||||||
const saldo = computed(() => account.value ? account.value.saldo : 0)
|
const saldo = computed(() => account.value ? account.value.saldo : 0)
|
||||||
@@ -69,11 +69,12 @@ export default defineComponent({
|
|||||||
const tab = ref('membri')
|
const tab = ref('membri')
|
||||||
|
|
||||||
const arrfilterand: any = ref([])
|
const arrfilterand: any = ref([])
|
||||||
|
const filterextra: any = ref([])
|
||||||
const filtercustom: any = ref([])
|
const filtercustom: any = ref([])
|
||||||
const filtercustom_rich: any = ref([])
|
const filtercustom_rich: any = ref([])
|
||||||
const searchList = ref(<ISearchList[]>[])
|
const searchList = ref([] as ISearchList[])
|
||||||
|
|
||||||
const cities = ref(<ICity[]>[])
|
const cities = ref([] as ICity[])
|
||||||
|
|
||||||
watch(() => path.value, (to: any, from: any) => {
|
watch(() => path.value, (to: any, from: any) => {
|
||||||
loadCircuit()
|
loadCircuit()
|
||||||
@@ -105,8 +106,8 @@ export default defineComponent({
|
|||||||
|
|
||||||
searchList.value = []
|
searchList.value = []
|
||||||
if (circuit.value) {
|
if (circuit.value) {
|
||||||
filtercustom.value = [
|
filterextra.value = [
|
||||||
{
|
/*{
|
||||||
'profile.mycircuits':
|
'profile.mycircuits':
|
||||||
{
|
{
|
||||||
$elemMatch: {
|
$elemMatch: {
|
||||||
@@ -115,6 +116,71 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
{
|
||||||
|
$match: {idapp: process.env.APP_ID,
|
||||||
|
'profile.mycircuits': {
|
||||||
|
$elemMatch: {circuitname: {$eq: circuit.value.name}},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
$lookup: {
|
||||||
|
from: 'circuits',
|
||||||
|
as: 'circuit',
|
||||||
|
let: {circuitname: circuit.value.name, idapp: '$idapp'},
|
||||||
|
pipeline: [
|
||||||
|
{
|
||||||
|
$match:
|
||||||
|
{
|
||||||
|
$expr:
|
||||||
|
{
|
||||||
|
$and:
|
||||||
|
[
|
||||||
|
{$eq: ['$name', '$$circuitname']},
|
||||||
|
{$eq: ['$idapp', '$$idapp']},
|
||||||
|
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
{ $unwind: '$circuit'},
|
||||||
|
{
|
||||||
|
$project: { username: 1, profile: 1, idapp: 1, 'circuit.name': 1, 'circuit._id': 1 }
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
$lookup: {
|
||||||
|
from: 'accounts',
|
||||||
|
as: 'account',
|
||||||
|
let: {username: '$username', idapp: '$idapp', circuitId: '$circuit._id'},
|
||||||
|
pipeline: [
|
||||||
|
{
|
||||||
|
$match:
|
||||||
|
{
|
||||||
|
$expr:
|
||||||
|
{
|
||||||
|
$and:
|
||||||
|
[
|
||||||
|
{$eq: ['$$username', '$username']},
|
||||||
|
{$eq: ['$$idapp', '$idapp']},
|
||||||
|
{$eq: ['$$circuitId', '$circuitId']},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{ $unwind: '$account'},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
arrfilterand.value = []
|
arrfilterand.value = []
|
||||||
@@ -145,11 +211,11 @@ export default defineComponent({
|
|||||||
|
|
||||||
|
|
||||||
function extraparams() {
|
function extraparams() {
|
||||||
let lk_tab = 'users'
|
const lk_tab = 'users'
|
||||||
let lk_LF = 'userId'
|
const lk_LF = 'userId'
|
||||||
let lk_FF = '_id'
|
const lk_FF = '_id'
|
||||||
let lk_as = 'user'
|
const lk_as = 'user'
|
||||||
let af_objId_tab = 'myId'
|
const af_objId_tab = 'myId'
|
||||||
|
|
||||||
return {
|
return {
|
||||||
lookup1: {
|
lookup1: {
|
||||||
@@ -232,6 +298,7 @@ export default defineComponent({
|
|||||||
t,
|
t,
|
||||||
animation,
|
animation,
|
||||||
arrfilterand,
|
arrfilterand,
|
||||||
|
filterextra,
|
||||||
filtercustom,
|
filtercustom,
|
||||||
filtercustom_rich,
|
filtercustom_rich,
|
||||||
searchList,
|
searchList,
|
||||||
|
|||||||
@@ -132,6 +132,7 @@
|
|||||||
noresultLabel="movimenti non trovati con questa ricerca"
|
noresultLabel="movimenti non trovati con questa ricerca"
|
||||||
:arrfilters="arrfilterand"
|
:arrfilters="arrfilterand"
|
||||||
:filtercustom="filtercustom_rich"
|
:filtercustom="filtercustom_rich"
|
||||||
|
:filterextra="filterextra"
|
||||||
:prop_searchList="searchList"
|
:prop_searchList="searchList"
|
||||||
:prop_pagination="{ sortBy: 'transactionDate', descending: true, page: 1, rowsNumber: 20, rowsPerPage: 20 }"
|
:prop_pagination="{ sortBy: 'transactionDate', descending: true, page: 1, rowsNumber: 20, rowsPerPage: 20 }"
|
||||||
:showType="costanti.SHOW_MOVEMENTS"
|
:showType="costanti.SHOW_MOVEMENTS"
|
||||||
@@ -373,6 +374,7 @@
|
|||||||
noresultLabel="Username non trovato"
|
noresultLabel="Username non trovato"
|
||||||
:arrfilters="arrfilterand"
|
:arrfilters="arrfilterand"
|
||||||
:filtercustom="filtercustom"
|
:filtercustom="filtercustom"
|
||||||
|
:filterextra="filterextra"
|
||||||
:prop_searchList="searchList"
|
:prop_searchList="searchList"
|
||||||
:showType="costanti.SHOW_USERINFO"
|
:showType="costanti.SHOW_USERINFO"
|
||||||
:showCol="false"
|
:showCol="false"
|
||||||
@@ -403,6 +405,7 @@
|
|||||||
:butt_modif_new="false"
|
:butt_modif_new="false"
|
||||||
noresultLabel="Username non trovato"
|
noresultLabel="Username non trovato"
|
||||||
:arrfilters="arrfilterand"
|
:arrfilters="arrfilterand"
|
||||||
|
:filterextra="filterextra"
|
||||||
:filtercustom="filtercustom_rich"
|
:filtercustom="filtercustom_rich"
|
||||||
:prop_searchList="searchList"
|
:prop_searchList="searchList"
|
||||||
:showType="costanti.SHOW_USERINFO"
|
:showType="costanti.SHOW_USERINFO"
|
||||||
@@ -435,6 +438,7 @@
|
|||||||
noresultLabel="Username non trovato"
|
noresultLabel="Username non trovato"
|
||||||
:arrfilters="arrfilterand"
|
:arrfilters="arrfilterand"
|
||||||
:filtercustom="filtercustom_rich"
|
:filtercustom="filtercustom_rich"
|
||||||
|
:filterextra="filterextra"
|
||||||
:prop_searchList="searchList"
|
:prop_searchList="searchList"
|
||||||
:showType="costanti.SHOW_USERINFO"
|
:showType="costanti.SHOW_USERINFO"
|
||||||
keyMain=""
|
keyMain=""
|
||||||
|
|||||||
Reference in New Issue
Block a user