versione 0.3.16:
- Aggiunto bottone "Scambio Ospitalità" (nuova tabella)
This commit is contained in:
@@ -6,6 +6,7 @@ import { CProfile } from '@/components/CProfile'
|
||||
import { CDateTime } from '@/components/CDateTime'
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
import { CMyFieldRec } from '@/components/CMyFieldRec'
|
||||
import { CAccomodation } from '@/components/CAccomodation'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
@@ -19,7 +20,7 @@ import { colCitys, fieldsTable } from '@store/Modules/fieldsTable'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CMyCardPopup',
|
||||
components: { CProfile, CTitleBanner, CMyFieldDb, CDateTime, CMyPage, CMyFieldRec },
|
||||
components: { CProfile, CTitleBanner, CMyFieldDb, CDateTime, CMyPage, CMyFieldRec, CAccomodation },
|
||||
props: {
|
||||
table: {
|
||||
type: String,
|
||||
@@ -83,6 +84,14 @@ export default defineComponent({
|
||||
return tools.copyStringToClipboard($q, self.location.host + tools.getPathByTable(props.table, myrec.value._id), true)
|
||||
}
|
||||
|
||||
function showBadge() {
|
||||
if (shared_consts.TABLES_SHOW_ADTYPE.includes(props.table)) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -100,6 +109,7 @@ export default defineComponent({
|
||||
toolsext,
|
||||
col,
|
||||
condividipag,
|
||||
showBadge,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
alt="immagine bene"></q-img>
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
<div v-if="showBadge()" class="text-center">
|
||||
<q-chip :icon="fieldsTable.getIconByAdType(myrec.adType)"
|
||||
:color="fieldsTable.getColByAdType(myrec.adType)"
|
||||
text-color="white">{{
|
||||
@@ -50,6 +50,11 @@
|
||||
{{ tools.getValue(myrec, mycol.field, mycol.subfield) }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="mycol.name === 'numMaxPeopleHosp'">
|
||||
<div class="text-bacheca">
|
||||
<span class="accom_maxosp">{{tools.getValue(myrec, mycol.field, mycol.subfield) }}</span>{{ t('hosps.numMaxPeopleHosp') }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="mycol.name === 'dateTimeStart'" class="text-center cal">
|
||||
|
||||
<div v-if="myrec.dateTimeStart" class="cal__when">
|
||||
@@ -62,11 +67,18 @@
|
||||
}}</span> al <span class="datafine">{{ tools.getstrVeryShortDate(myrec.dateTimeEnd) }}</span>
|
||||
</span>--->
|
||||
</div>
|
||||
<div v-else-if="mycol.name === 'accomodation'">
|
||||
<CAccomodation
|
||||
v-if="!!myrec.accomodation"
|
||||
:mylist="myrec.accomodation"
|
||||
:isInModif="false"
|
||||
:edit="false"
|
||||
:canModify="false">
|
||||
</CAccomodation>
|
||||
</div>
|
||||
<div v-else-if="mycol.name === 'dateTimeEnd'">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<CMyFieldRec
|
||||
v-else
|
||||
:table="table"
|
||||
|
||||
Reference in New Issue
Block a user