2020-01-21 01:38:28 +01:00
|
|
|
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'
|
2020-02-02 04:07:24 +01:00
|
|
|
import { CCopyBtn } from '../CCopyBtn'
|
|
|
|
|
|
|
|
|
|
import { date } from 'quasar'
|
2020-01-21 01:38:28 +01:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
name: 'CStatusReg',
|
2020-02-02 04:07:24 +01:00
|
|
|
components: { CTitleBanner, CCardState, CCopyBtn }
|
2020-01-21 01:38:28 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default class CNextZoom extends MixinBase {
|
|
|
|
|
public $t
|
|
|
|
|
|
|
|
|
|
get listacalzoom() {
|
2020-02-19 16:10:05 +01:00
|
|
|
return GlobalStore.state.calzoom
|
2020-01-21 01:38:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
get nextconf() {
|
|
|
|
|
if (!!this.listacalzoom) {
|
|
|
|
|
return tools.getstrTime(this.listacalzoom[0].date_start)
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-02-02 04:07:24 +01:00
|
|
|
|
|
|
|
|
get showzoom() {
|
|
|
|
|
if (GlobalStore.state.calzoom.length > 0) {
|
|
|
|
|
const mydate = GlobalStore.state.calzoom.slice(-1)[0].date_start
|
|
|
|
|
const mydate_end = GlobalStore.state.calzoom.slice(-1)[0].date_end
|
|
|
|
|
const datenow = tools.getDateNow()
|
2020-03-10 21:42:30 +01:00
|
|
|
// console.log('date.getDateDiff(datenow, mydate, \'minutes\')', date.getDateDiff(datenow, mydate, 'minutes'))
|
2020-02-02 04:07:24 +01:00
|
|
|
// if begin is in the past, take the day now
|
|
|
|
|
if ((date.getDateDiff(datenow, mydate, 'minutes') > -10) && (date.getDateDiff(datenow, mydate_end, 'minutes') < 0)) {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
2020-01-21 01:38:28 +01:00
|
|
|
}
|