- Doppia modalità di Registrazione con lista extra utenti

- fixed grid pagination
This commit is contained in:
Paolo Arena
2020-01-13 23:53:27 +01:00
parent 9b9dcbfde1
commit 6541a3a84e
29 changed files with 365 additions and 133 deletions

View File

@@ -37,23 +37,7 @@ export default class MixinBase extends MixinMetaTags {
}
public getValDb(keystr, serv, def?, table?, subkey?) {
if (table === 'users') {
if (keystr === 'profile') {
return UserStore.state.my.profile[subkey]
} else {
return UserStore.state.my[keystr]
}
}else {
const ris = GlobalStore.getters.getValueSettingsByKey(keystr, serv)
if (ris === '')
if (def !== undefined)
return def
else
return ''
else
return ris
}
return tools.getValDb(keystr, serv, def, table, subkey)
}
public async setValDb(key, value, type, serv: boolean, table?, subkey?) {

View File

@@ -3,9 +3,36 @@ import Vue from 'vue'
import Component from 'vue-class-component'
import { CalendarStore } from '../store/Modules'
import { UserStore } from '@modules'
import MixinMetaTags from './mixin-metatags'
import { CImgText, CTitle, CCardOperator } from '@components'
import { tools } from '@src/store/Modules/tools'
@Component({
components: { CImgText, CTitle, CCardOperator }
})
export default class MixinOperator extends MixinMetaTags {
public $q
public $t: any
get mythis() {
return this
}
get tools() {
return tools
}
get isEstate(){
const now = new Date()
return (now.getMonth() === 5) || (now.getMonth() === 6) || (now.getMonth() === 7) || (now.getMonth() === 8)
}
get isEstateRiprenderanno(){
const now = new Date()
return (now.getMonth() === 9)
}
@Component
export default class MixinOperator extends Vue {
public getOperators() {
return CalendarStore.state.operators
}