- Nave
- Requirements - Send Msg to Passeggeri
This commit is contained in:
@@ -5,20 +5,29 @@ import { GlobalStore } from '@store'
|
||||
import { tools } from '../../../store/Modules/tools'
|
||||
import { UserStore } from '../../../store/Modules'
|
||||
import { CTitleBanner } from '../../../components/CTitleBanner'
|
||||
import { CDateTime } from '../../../components/CDateTime'
|
||||
import { CMyFieldDb } from '../../../components/CMyFieldDb'
|
||||
|
||||
@Component({
|
||||
components: { CTitleBanner }
|
||||
components: { CTitleBanner, CDateTime, CMyFieldDb }
|
||||
})
|
||||
export default class Dbop extends Vue {
|
||||
public $t
|
||||
public ris: any
|
||||
public ris: any = ''
|
||||
public riga: number = 0
|
||||
public numpersone: number = 7
|
||||
public date_start: Date = new Date()
|
||||
public col: number = 0
|
||||
public placca: string = ''
|
||||
public incaricamento: boolean = false
|
||||
|
||||
get tools(){
|
||||
return tools
|
||||
}
|
||||
|
||||
public async EseguiFunz(miafunz) {
|
||||
this.$q.dialog({
|
||||
message: 'Continuare ' + miafunz + ' ?',
|
||||
message: this.$t('dialog.continue') + ' ' + miafunz + ' ?',
|
||||
cancel: {
|
||||
label: this.$t('dialog.cancel')
|
||||
},
|
||||
@@ -31,12 +40,31 @@ export default class Dbop extends Vue {
|
||||
const mydata = {
|
||||
dbop: miafunz,
|
||||
riga: this.riga,
|
||||
col: this.col
|
||||
col: this.col,
|
||||
date_start: this.date_start,
|
||||
numpersone: this.numpersone
|
||||
}
|
||||
this.ris = await UserStore.actions.execDbOp({ mydata })
|
||||
|
||||
this.incaricamento = true
|
||||
this.$q.loading.show({ message: this.$t('otherpages.update') })
|
||||
|
||||
const ris = await UserStore.actions.execDbOp({ mydata })
|
||||
|
||||
this.$q.loading.hide()
|
||||
await GlobalStore.actions.loadSite()
|
||||
|
||||
this.incaricamento = false
|
||||
|
||||
console.log('this.ris', this.ris)
|
||||
|
||||
this.ris = ''
|
||||
|
||||
if (miafunz === 'visuPlacca') {
|
||||
this.placca = this.ris.placca
|
||||
this.placca = ris.placca
|
||||
} else if (miafunz === 'visuListaIngresso' || miafunz === 'visuListaNave' || miafunz === 'visuNave' || miafunz === 'creaNave') {
|
||||
this.placca = ris.mystr
|
||||
} else {
|
||||
this.ris = ris
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<CTitleBanner title="Operazioni su DB:"></CTitleBanner>
|
||||
<div class="row justify-center q-gutter-sm q-list--bordered center_img" style="max-width: 400px">
|
||||
<div class="row justify-center q-gutter-sm q-list--bordered center_img" style="max-width: 600px">
|
||||
<div class="row">
|
||||
<q-btn label="Passa i codici Telefoni sul campo cell" color="primary"
|
||||
@click="EseguiFunz('changeCellInt')"></q-btn>
|
||||
@@ -11,17 +11,84 @@
|
||||
@click="EseguiFunz('changeEmailLowerCase')"></q-btn>
|
||||
<br></div>
|
||||
<div class="row">
|
||||
<q-btn label="Crea Lista" color="primary" @click="EseguiFunz('creaLista')"></q-btn>
|
||||
<br></div>
|
||||
<q-btn label="Crea Utenti Test" color="primary" @click="EseguiFunz('creaUtentiTest')"></q-btn><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn label="Crea Billettera" color="primary" @click="EseguiFunz('creaBillettera')"></q-btn>
|
||||
<br></div>
|
||||
<q-btn label="IMPOSTARE A TUTTI PAYPAL" color="primary" @click="EseguiFunz('ImpostaATuttiPaypal')"></q-btn><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn label="NUM_TESS A 1" color="primary" @click="EseguiFunz('numtessUno')"></q-btn><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn label="Inizializza ListaIngresso" color="negative" @click="EseguiFunz('initListaIngresso')"></q-btn><br>
|
||||
<q-btn label="Crea ListaIngresso" color="negative" @click="EseguiFunz('creaLista')"></q-btn>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn label="Elimina Navi" color="negative" @click="EseguiFunz('delNavi')"></q-btn><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn label="Elimina Navi non Partite" color="negative" @click="EseguiFunz('delNaviNoStarted')"></q-btn><br>
|
||||
</div>
|
||||
<div>
|
||||
<CDateTime
|
||||
:value.sync="date_start"
|
||||
:label="$t('cal.eventstartdatetime')"
|
||||
:readonly="false">
|
||||
</CDateTime>
|
||||
<q-input v-model="numpersone" type="number" autofocus label="Num Persone to Add" style="width: 50px;"></q-input>
|
||||
<q-btn label="Crea Nave" color="negative" @click="EseguiFunz('creaNave')"></q-btn>
|
||||
</div>
|
||||
<div v-if="!incaricamento" class="row">
|
||||
<CMyFieldDb title="Riga"
|
||||
mykey="riga"
|
||||
:serv="false"
|
||||
:type="tools.FieldType.number">
|
||||
</CMyFieldDb>
|
||||
<CMyFieldDb title="Col"
|
||||
mykey="col"
|
||||
:serv="false"
|
||||
:type="tools.FieldType.number">
|
||||
</CMyFieldDb>
|
||||
<CMyFieldDb title="Riga Doni"
|
||||
mykey="rigadoni"
|
||||
:serv="false"
|
||||
:type="tools.FieldType.number">
|
||||
</CMyFieldDb>
|
||||
<CMyFieldDb title="Col Doni"
|
||||
mykey="coldoni"
|
||||
:serv="false"
|
||||
:type="tools.FieldType.number">
|
||||
</CMyFieldDb>
|
||||
<CMyFieldDb title="Visu_TEST"
|
||||
mykey="VISU_TEST"
|
||||
:serv="false"
|
||||
:type="tools.FieldType.boolean">
|
||||
</CMyFieldDb>
|
||||
<CMyFieldDb title="VISU_NAVE_BOT"
|
||||
mykey="VISU_NAVE_BOT"
|
||||
:serv="false"
|
||||
:type="tools.FieldType.boolean">
|
||||
</CMyFieldDb>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<q-btn label="Visualizza Lista Nave" color="primary" @click="EseguiFunz('visuListaNave')"></q-btn><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn label="Visualizza ListaIngresso" color="primary" @click="EseguiFunz('visuListaIngresso')"></q-btn><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-btn label="CHECK SE INSERIRE UTENTI IN Nave" color="primary" @click="EseguiFunz('checkInserimentiUtentiInNave')"></q-btn><br>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<q-input v-model="riga" type="number" autofocus label="Riga" style="width: 50px;"></q-input>
|
||||
<q-input v-model="col" type="number" autofocus label="Col" style="width: 50px;"></q-input>
|
||||
<q-btn label="Visualizza Placca" color="primary" @click="EseguiFunz('visuPlacca')"></q-btn>
|
||||
<q-input v-model="placca" autofocus label="Col" style="width: 300px; height: 400px;"></q-input>
|
||||
<q-btn label="Visualizza Nave da 8" color="primary" @click="EseguiFunz('visuPlacca')"></q-btn><br>
|
||||
<q-btn label="Visualizza Nave" color="primary" @click="EseguiFunz('visuNave')"></q-btn><br>
|
||||
</div>
|
||||
<div class="row">
|
||||
<q-input v-model="placca" type="textarea" autofocus label="Placca" autogrow style="width: 500px; height: 400px;"></q-input>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,39 +1,14 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Prop, Watch } from 'vue-property-decorator'
|
||||
import { CSignIn } from '../../../components/CSignIn'
|
||||
import { toolsext } from '../../../store/Modules/toolsext'
|
||||
import { UserStore } from '../../../store/Modules'
|
||||
import globalroutines from '../../../globalroutines/index'
|
||||
import { tools } from '../../../store/Modules/tools'
|
||||
|
||||
// import {Loading, QSpinnerFacebook, QSpinnerGears} from 'quasar'
|
||||
import CSigninNoreg from '../../../components/CSigninNoreg/CSigninNoreg'
|
||||
|
||||
@Component({
|
||||
components: { CSignIn }
|
||||
components: { CSigninNoreg }
|
||||
})
|
||||
|
||||
export default class Signin extends Vue {
|
||||
public $v
|
||||
public $q
|
||||
|
||||
public loginOk() {
|
||||
tools.loginOk(this, true)
|
||||
}
|
||||
|
||||
public loginInCorso() {
|
||||
tools.loginInCorso(this)
|
||||
}
|
||||
|
||||
public checkErrors(riscode) {
|
||||
tools.SignIncheckErrors(this, riscode, true)
|
||||
}
|
||||
|
||||
public showNotif(msgcode) {
|
||||
tools.showNotif(this.$q, this.$t(msgcode))
|
||||
}
|
||||
|
||||
get mythis() {
|
||||
return this
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
<template>
|
||||
<q-page padding class="signin">
|
||||
<CSignIn :mythis="mythis"
|
||||
:showregbutt="true"
|
||||
@loginOk="loginOk"
|
||||
@loginInCorso="loginInCorso"
|
||||
@checkErrors="checkErrors"
|
||||
@showNotif="showNotif">
|
||||
</CSignIn>
|
||||
<CSigninNoreg :showregbutt="true">
|
||||
|
||||
</CSigninNoreg>
|
||||
|
||||
</q-page>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,39 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Prop, Watch } from 'vue-property-decorator'
|
||||
import { CSignIn } from '../../../components/CSignIn'
|
||||
import { toolsext } from '../../../store/Modules/toolsext'
|
||||
import { UserStore } from '../../../store/Modules'
|
||||
import globalroutines from '../../../globalroutines/index'
|
||||
import { tools } from '../../../store/Modules/tools'
|
||||
|
||||
// import {Loading, QSpinnerFacebook, QSpinnerGears} from 'quasar'
|
||||
|
||||
@Component({
|
||||
components: { CSignIn }
|
||||
})
|
||||
|
||||
export default class Signin_noreg extends Vue {
|
||||
public $v
|
||||
public $q
|
||||
|
||||
public loginOk() {
|
||||
tools.loginOk(this, true)
|
||||
}
|
||||
|
||||
public loginInCorso() {
|
||||
tools.loginInCorso(this)
|
||||
}
|
||||
|
||||
public checkErrors(riscode) {
|
||||
tools.SignIncheckErrors(this, riscode, true)
|
||||
}
|
||||
|
||||
public showNotif(msgcode) {
|
||||
tools.showNotif(this.$q, this.$t(msgcode))
|
||||
}
|
||||
|
||||
get mythis() {
|
||||
return this
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
<template>
|
||||
<q-page padding class="signin">
|
||||
<CSignIn :mythis="mythis"
|
||||
@loginOk="loginOk"
|
||||
@loginInCorso="loginInCorso"
|
||||
:showregbutt="false"
|
||||
@checkErrors="checkErrors"
|
||||
@showNotif="showNotif">
|
||||
</CSignIn>
|
||||
<CSignInNoreg>
|
||||
</CSignInNoreg>
|
||||
</q-page>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -7,8 +7,12 @@ import { serv_constants } from '../../../store/Modules/serv_constants'
|
||||
|
||||
import './vreg.scss'
|
||||
import { ILinkReg } from '../../../model/other'
|
||||
import { CSigninNoreg } from '../../../components/CSigninNoreg'
|
||||
import { GlobalStore } from '../../../store'
|
||||
|
||||
@Component({})
|
||||
@Component({
|
||||
components: { CSigninNoreg }
|
||||
})
|
||||
export default class Vreg extends Vue {
|
||||
public risultato: string = '---'
|
||||
public riscode: number = 0
|
||||
@@ -57,4 +61,8 @@ export default class Vreg extends Vue {
|
||||
console.log('ERR = ' + err)
|
||||
})
|
||||
}
|
||||
|
||||
public openrighttoolbar() {
|
||||
GlobalStore.state.RightDrawerOpen = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,11 @@
|
||||
</q-banner>
|
||||
</transition>
|
||||
|
||||
<div class="text-center q-mt-md">
|
||||
<q-btn rounded size="lg" color="primary" @click="openrighttoolbar">{{$t('login.enter')}}
|
||||
</q-btn>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</q-page>
|
||||
|
||||
@@ -2,6 +2,8 @@ import { Component, Mixins, Prop, Watch } from 'vue-property-decorator'
|
||||
import MixinBase from '../../../mixins/mixin-base'
|
||||
import { CMyFieldDb, CTitleBanner, CProfile, CStatus } from '@components'
|
||||
import { UserStore } from '../../../store/Modules'
|
||||
import { GlobalStore } from '../../../store'
|
||||
import { tools } from '../../../store/Modules/tools'
|
||||
|
||||
@Component({
|
||||
components: { CProfile, CTitleBanner, CMyFieldDb, CStatus }
|
||||
@@ -18,8 +20,48 @@ export default class Profile extends MixinBase {
|
||||
get getpayment() {
|
||||
return UserStore.state.my.profile.paymenttypes
|
||||
}
|
||||
|
||||
get profile() {
|
||||
return UserStore.state.my.profile
|
||||
}
|
||||
|
||||
public eliminaAccount() {
|
||||
|
||||
this.$q.dialog({
|
||||
message: this.$t('reg.cancellami'),
|
||||
cancel: {
|
||||
label: this.$t('dialog.cancel')
|
||||
},
|
||||
ok: {
|
||||
label: this.$t('dialog.yes'),
|
||||
push: true
|
||||
},
|
||||
title: this.$t('pages.profile')
|
||||
}).onOk(async () => {
|
||||
this.$q.dialog({
|
||||
message: this.$t('reg.cancellami_2'),
|
||||
cancel: {
|
||||
label: this.$t('dialog.cancel')
|
||||
},
|
||||
ok: {
|
||||
label: this.$t('dialog.yes'),
|
||||
push: true
|
||||
},
|
||||
title: this.$t('pages.profile')
|
||||
})
|
||||
.onOk(async () => {
|
||||
GlobalStore.actions.DeleteRec({ table: tools.TABUSER, id: UserStore.state.my._id })
|
||||
.then((ris) => {
|
||||
if (ris) {
|
||||
tools.showPositiveNotif(this.$q, this.$t('reg.account_cancellato'))
|
||||
UserStore.actions.logout()
|
||||
this.$router.replace('/')
|
||||
} else
|
||||
tools.showNegativeNotif(this.$q, this.$t('db.recfailed'))
|
||||
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -92,6 +92,13 @@
|
||||
</CMyFieldDb>
|
||||
|
||||
</CTitleBanner>
|
||||
|
||||
<br><br>
|
||||
<div class="text-center">
|
||||
<q-btn rounded size="md" color="negative" @click="eliminaAccount" :label="$t('reg.cancella_account')">
|
||||
</q-btn>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user