- la ricerca trova anche i "On Line" anche se metto la provincia o regione.

This commit is contained in:
Surya Paolo
2024-02-19 18:51:18 +01:00
parent e1bc367418
commit 70f5beb1cb
6 changed files with 67 additions and 35 deletions

View File

@@ -447,7 +447,7 @@ export default defineComponent({
*/ */
{ {
label: 'Stato', label: 'Scambio',
table: 'statusSkills', table: 'statusSkills',
key: 'idStatusSkill', key: 'idStatusSkill',
value: 0, value: 0,
@@ -455,7 +455,7 @@ export default defineComponent({
type: costanti.FieldType.multiselect, type: costanti.FieldType.multiselect,
filter: null, filter: null,
useinput: false, useinput: false,
icon: 'mood', icon: 'fas fa-exchange-alt',
filteradv: true, filteradv: true,
}, },
{ {
@@ -493,7 +493,7 @@ export default defineComponent({
searchList_Events.value = [ searchList_Events.value = [
/*{ /*{
label: 'Stato', label: 'Scambio',
table: 'statusSkills', table: 'statusSkills',
key: 'idStatusSkill', key: 'idStatusSkill',
value: 0, value: 0,

View File

@@ -269,23 +269,6 @@
</div> </div>
</q-item-section> </q-item-section>
<q-item-section avatar>
<q-item-label>
<span
v-for="(recstatus, index) in myrec.idStatusSkill"
:key="index"
>
<q-chip
dense
:color="globalStore.getColByStatusSkills(recstatus)"
text-color="white"
>
{{ globalStore.getStatusSkillById(recstatus) }}
</q-chip>
</span>
</q-item-label>
</q-item-section>
<q-item-section> <q-item-section>
<q-item-label v-if="myrec.typeHosp" class="text-bold text-h7"> <q-item-label v-if="myrec.typeHosp" class="text-bold text-h7">
<q-chip dense color="green" text-color="white" <q-chip dense color="green" text-color="white"

View File

@@ -11,6 +11,7 @@ import { useI18n } from '@/boot/i18n'
import { CMyCardPopup } from '@/components/CMyCardPopup' import { CMyCardPopup } from '@/components/CMyCardPopup'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useCalendarStore } from '@src/store/CalendarStore' import { useCalendarStore } from '@src/store/CalendarStore'
import { useGlobalStore } from '@src/store/globalStore'
export default defineComponent({ export default defineComponent({
name: 'CMyRecCard', name: 'CMyRecCard',
@@ -42,6 +43,7 @@ export default defineComponent({
const userStore = useUserStore() const userStore = useUserStore()
const calendarStore = useCalendarStore() const calendarStore = useCalendarStore()
const globalStore = useGlobalStore()
// const $q = useQuasar() // const $q = useQuasar()
const { t } = useI18n() const { t } = useI18n()
const $router = useRouter() const $router = useRouter()
@@ -129,6 +131,7 @@ export default defineComponent({
isPartecipero, isPartecipero,
calendarStore, calendarStore,
disabilita, disabilita,
globalStore,
} }
}, },
}) })

View File

@@ -35,8 +35,8 @@
@click="cmdExt(costanti.CMD_SHOW_PAGE, myrec)" @click="cmdExt(costanti.CMD_SHOW_PAGE, myrec)"
/> />
<div> <div>
{{tools.getstrDateTimeEvent($t, myrec, false)}}</div> {{ tools.getstrDateTimeEvent($t, myrec, false) }}
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -103,7 +103,11 @@
</q-avatar> </q-avatar>
</q-item-section> </q-item-section>
<q-item-section v-else-if="!myrec.organisedBy" avatar @click="naviga(`/my/` + myrec.username)"> <q-item-section
v-else-if="!myrec.organisedBy"
avatar
@click="naviga(`/my/` + myrec.username)"
>
<q-badge <q-badge
v-if="showBadge()" v-if="showBadge()"
class="q-my-xs self-center" class="q-my-xs self-center"
@@ -150,11 +154,36 @@
></span ></span
> >
</span> </span>
<span
v-for="(recstatus, index) in myrec.idStatusSkill"
:key="index"
class="q-ml-xs"
style="vertical-align: middle"
>
<q-badge
v-if="(recstatus === costanti.STATUSSKILL_ONLINE) || myrec.idStatusSkill.length > 1"
dense
:color="globalStore.getColByStatusSkills(recstatus)"
text-color="white"
>
<q-icon
:name="globalStore.getStatusSkillIconById(recstatus)"
color="white"
/>&nbsp;
{{ globalStore.getStatusSkillById(recstatus) }}
</q-badge>
</span>
<!--<span class="dateevent" v-if="myrec.dateTimeStart">dal <span class="datainizio">{{tools.getstrVeryShortDate(myrec.dateStart) }}</span> al <span class="datafine">{{ tools.getstrVeryShortDate(myrec.dateEnd) }}</span> <!--<span class="dateevent" v-if="myrec.dateTimeStart">dal <span class="datainizio">{{tools.getstrVeryShortDate(myrec.dateStart) }}</span> al <span class="datafine">{{ tools.getstrVeryShortDate(myrec.dateEnd) }}</span>
</span>--> </span>-->
</q-item-label> </q-item-label>
<q-item-label lines="4" :class="(table === shared_consts.TABLES_MYBACHECAS) ? 'text-bold':''" v-if="myrec.descr"
<q-item-label
lines="4"
:class="table === shared_consts.TABLES_MYBACHECAS ? 'text-bold' : ''"
v-if="myrec.descr"
>{{ myrec.descr }}<br /> >{{ myrec.descr }}<br />
</q-item-label> </q-item-label>
<q-item-label lines="1" style="" class="text_user_city"> <q-item-label lines="1" style="" class="text_user_city">
@@ -173,7 +202,12 @@
</div> </div>
<div class="q-mx-sm"> <div class="q-mx-sm">
( (
<span v-if="table === shared_consts.TABLES_MYBACHECAS && tools.getNumPartecipantes(myrec) > 0"> <span
v-if="
table === shared_consts.TABLES_MYBACHECAS &&
tools.getNumPartecipantes(myrec) > 0
"
>
<span class="q-mx-xxs text-bold">{{ <span class="q-mx-xxs text-bold">{{
tools.getNumPartecipantes(myrec) tools.getNumPartecipantes(myrec)
}}</span> }}</span>
@@ -181,12 +215,16 @@
><q-icon dense color="blue" name="far fa-check-circle" /> ><q-icon dense color="blue" name="far fa-check-circle" />
</span> </span>
</span> </span>
<span class="q-mx-xxs">{{ myrec.numseen ? myrec.numseen : 0 }}</span> <span class="q-mx-xxs">{{
myrec.numseen ? myrec.numseen : 0
}}</span>
<span class="q-mx-xxs" <span class="q-mx-xxs"
><q-icon dense color="blue" name="far fa-eye" /> ><q-icon dense color="blue" name="far fa-eye" />
</span> </span>
<span class="q-mx-xxs">&nbsp;</span> <span class="q-mx-xxs">&nbsp;</span>
<span class="" v-if="myrec">{{ myrec.numfav ? myrec.numfav : 0 }}</span> <span class="" v-if="myrec">{{
myrec.numfav ? myrec.numfav : 0
}}</span>
<span class="q-mx-xxs" <span class="q-mx-xxs"
><q-icon ><q-icon
dense dense

View File

@@ -427,4 +427,6 @@ export const costanti = {
TESTO_BORDATO: 5, TESTO_BORDATO: 5,
}, },
STATUSSKILL_ONLINE: 2,
} }

View File

@@ -239,6 +239,12 @@ export const useGlobalStore = defineStore('GlobalStore', {
}, },
getStatusSkillIconById: (state: IGlobalState) => (id: number) => {
const ctrec = state.statusSkills.find((mystatus: IStatusSkill) => mystatus._id === id)
return (ctrec) ? ctrec.icon : ''
},
isNewVersionAvailable: (state: IGlobalState) => { isNewVersionAvailable: (state: IGlobalState) => {
// console.log('cfgServer', cfgServer) // console.log('cfgServer', cfgServer)
const serversrec = state.cfgServer.find((x) => (x.chiave === toolsext.SERVKEY_VERS) && (x.idapp === process.env.APP_ID)) const serversrec = state.cfgServer.find((x) => (x.chiave === toolsext.SERVKEY_VERS) && (x.idapp === process.env.APP_ID))