fix Registrazione data
fix linkref fix controllo login fix pagination CGridTableRec added CstatusReg e Cstatus
This commit is contained in:
15
src/components/CNextZoom/CNextZoom.scss
Normal file
15
src/components/CNextZoom/CNextZoom.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
.zoom_data{
|
||||
font-size:1rem;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.id_conf{
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.note{
|
||||
font-style: italic;
|
||||
}
|
||||
30
src/components/CNextZoom/CNextZoom.ts
Normal file
30
src/components/CNextZoom/CNextZoom.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { Component, Prop, Watch } from 'vue-property-decorator'
|
||||
import { INotData } from '../../model/index'
|
||||
import { tools } from '../../store/Modules/tools'
|
||||
import { NotevoleStore } from '@store'
|
||||
import MixinBase from '@src/mixins/mixin-base'
|
||||
import { validationMixin } from 'vuelidate'
|
||||
import { validations } from '../CSignUpNotevole/CSignUp-validate'
|
||||
import { CTitleBanner } from '@components'
|
||||
import { CCardState } from '../CCardState'
|
||||
import { UserStore } from '../../store/Modules'
|
||||
import { GlobalStore } from '../../store'
|
||||
|
||||
@Component({
|
||||
name: 'CStatusReg',
|
||||
components: { CTitleBanner, CCardState }
|
||||
})
|
||||
|
||||
export default class CNextZoom extends MixinBase {
|
||||
public $t
|
||||
|
||||
get listacalzoom() {
|
||||
return GlobalStore.state.calzoom
|
||||
}
|
||||
|
||||
get nextconf() {
|
||||
if (!!this.listacalzoom) {
|
||||
return tools.getstrTime(this.listacalzoom[0].date_start)
|
||||
}
|
||||
}
|
||||
}
|
||||
52
src/components/CNextZoom/CNextZoom.vue
Normal file
52
src/components/CNextZoom/CNextZoom.vue
Normal file
@@ -0,0 +1,52 @@
|
||||
<template>
|
||||
<div>
|
||||
<div>
|
||||
<CTitleBanner class="q-pa-xs" :title="$t('pages.nextzoom')" bgcolor="bg-primary" clcolor="text-white"
|
||||
mystyle="" myclass="myshad" canopen="true">
|
||||
|
||||
|
||||
<div class="flex flex-center">
|
||||
|
||||
<div class="column animazione">
|
||||
<transition-group name="fade" mode="out-in"
|
||||
appear
|
||||
enter-active-class="animazione fadeIn"
|
||||
leave-active-class="animazione fadeOut">
|
||||
<div>
|
||||
Mancano: {{ nextconf }}
|
||||
</div>
|
||||
<q-item v-for="(confer, index) in listacalzoom" :key="confer._id" class="q-mb-xs animated" v-ripple>
|
||||
|
||||
<q-item-section avatar>
|
||||
<q-avatar v-if="tools.geticon(confer.lang)" :class="tools.geticon(confer.lang)" size="xs">
|
||||
</q-avatar>
|
||||
<q-avatar v-else color="primary" text-color="white" class="text-center">
|
||||
{{ tools.capitalize(confer.lang) }}
|
||||
</q-avatar>
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label class="title">{{ confer.title }} </q-item-label>
|
||||
<q-item-label class="id_conf">ID: {{ confer.id_conf_zoom }} </q-item-label>
|
||||
<q-item-label class="note">ID: {{ confer.note }} </q-item-label>
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section side>
|
||||
<q-item-label class="zoom_data">{{ tools.getstrDateMonthTimeShort(confer.date_start) }}</q-item-label>
|
||||
<!--<q-item-label class="zoom_data">{{ tools.getstrTime(confer.date_end) }}</q-item-label>-->
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</transition-group>
|
||||
</div>
|
||||
</div>
|
||||
</CTitleBanner>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CNextZoom.ts">
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './CNextZoom.scss';
|
||||
</style>
|
||||
1
src/components/CNextZoom/index.ts
Normal file
1
src/components/CNextZoom/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export {default as CNextZoom} from './CNextZoom.vue'
|
||||
@@ -124,20 +124,6 @@ export default class CStatusReg extends MixinBase {
|
||||
return 0
|
||||
}
|
||||
|
||||
public geticon(reg) {
|
||||
if (reg.profile.nationality === 'IT')
|
||||
return 'fa-flag-it'
|
||||
else if (reg.profile.nationality === 'ES')
|
||||
return 'fa-flag-es'
|
||||
else if (reg.profile.nationality === 'US')
|
||||
return 'fa-flag-us'
|
||||
else if ((reg.profile.nationality === 'GB') || (reg.profile.nationality === 'UK'))
|
||||
return 'fa-flag-gb'
|
||||
else if (reg.profile.nationality === 'DE')
|
||||
return 'fa-flag-de'
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
get visustat() {
|
||||
return this.datastat.num_reg > 0 || this.datastat.num_reg_lista > 0
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<q-item v-for="(user, index) in lastsreg" :key="user.username" class="q-mb-xs animated" v-ripple>
|
||||
|
||||
<q-item-section avatar>
|
||||
<q-avatar v-if="geticon(user)" :class="geticon(user)">
|
||||
<q-avatar v-if="tools.geticon(user.profile.nationality)" :class="tools.geticon(user.profile.nationality)">
|
||||
|
||||
</q-avatar>
|
||||
<q-avatar v-else color="primary" text-color="white" class="text-center">
|
||||
|
||||
@@ -43,3 +43,4 @@ export * from './CStatus'
|
||||
export * from './CStatusReg'
|
||||
export * from './CCardState'
|
||||
export * from './CMyInnerPage'
|
||||
export * from './CNextZoom'
|
||||
|
||||
Reference in New Issue
Block a user