PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,24 +1,26 @@
|
||||
import { defineComponent, onMounted, PropType, ref, watch, computed } from 'vue'
|
||||
import type { PropType } from 'vue';
|
||||
import { defineComponent, onMounted, ref, watch, computed } from 'vue'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { ICircuit, IImgGallery, IUserFields, IUserProfile } from 'model'
|
||||
import type { ICircuit, IUserFields } from 'model';
|
||||
import { IImgGallery, IUserProfile } from 'model'
|
||||
import { costanti } from '@costanti'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import { tools } from '@tools'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||
import { CSendCoins } from '@/components/CSendCoins'
|
||||
import { CSkill } from '@/components/CSkill'
|
||||
import { CMyFieldRec } from '@/components/CMyFieldRec'
|
||||
import { CSaldo } from '@/components/CSaldo'
|
||||
import { CMySelectCity } from '@/components/CMySelectCity'
|
||||
import { CMyFieldDb } from '@/components/CMyFieldDb'
|
||||
import { CMyCircuit } from '@/components/CMyCircuit'
|
||||
import { CMySelect } from '@/components/CMySelect'
|
||||
import { CMyUserOnlyView } from '@/components/CMyUserOnlyView'
|
||||
import { CMyUser } from '@/components/CMyUser'
|
||||
import { CUserInfoAccount } from '@/components/CUserInfoAccount'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { CTitleBanner } from '@src/components/CTitleBanner'
|
||||
import { CSendCoins } from '@src/components/CSendCoins'
|
||||
import { CSkill } from '@src/components/CSkill'
|
||||
import { CMyFieldRec } from '@src/components/CMyFieldRec'
|
||||
import { CSaldo } from '@src/components/CSaldo'
|
||||
import { CMySelectCity } from '@src/components/CMySelectCity'
|
||||
import { CMyFieldDb } from '@src/components/CMyFieldDb'
|
||||
import { CMyCircuit } from '@src/components/CMyCircuit'
|
||||
import { CMySelect } from '@src/components/CMySelect'
|
||||
import { CMyUserOnlyView } from '@src/components/CMyUserOnlyView'
|
||||
import { CMyUser } from '@src/components/CMyUser'
|
||||
import { CUserInfoAccount } from '@src/components/CUserInfoAccount'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { useCircuitStore } from '@store/CircuitStore'
|
||||
|
||||
@@ -127,14 +129,14 @@ export default defineComponent({
|
||||
})
|
||||
|
||||
|
||||
let arrStep = ref([
|
||||
const arrStep = ref([
|
||||
{
|
||||
indstep: 0,
|
||||
step: STEP_CITY,
|
||||
title: t('tutorial.step_residence_title'),
|
||||
extratitle: function () { return ': ' + (contact.value!.profile.resid_province ? contact.value!.profile.resid_province : '') },
|
||||
label: t('tutorial.step_residence'),
|
||||
checkOk: function (): boolean { return contact.value ? !!contact.value!.profile.resid_province && contact.value.profile.resid_province !== '' && contact.value.profile.resid_province !== '0' : false },
|
||||
checkOk: function (): boolean { return contact.value ? !!contact.value.profile.resid_province && contact.value.profile.resid_province !== '' && contact.value.profile.resid_province !== '0' : false },
|
||||
checkOkReal: function (): boolean { return this.checkOk() },
|
||||
icon: 'house',
|
||||
required: true,
|
||||
@@ -170,7 +172,7 @@ export default defineComponent({
|
||||
}
|
||||
return false
|
||||
},
|
||||
icon: 'img: images/1ris_rosso_100.png',
|
||||
icon: 'img: /images/1ris_rosso_100.png',
|
||||
required: false,
|
||||
},
|
||||
/*{
|
||||
@@ -203,7 +205,7 @@ export default defineComponent({
|
||||
|
||||
|
||||
watch(() => indstep.value, (newval: number, oldval: number) => {
|
||||
if (indstep.value >= 0 && arrStep.value.length >indstep.value && arrStep.value[indstep.value])
|
||||
if (indstep.value >= 0 && arrStep.value.length > indstep.value && arrStep.value[indstep.value])
|
||||
step.value = arrStep.value[indstep.value].step
|
||||
else
|
||||
step.value = 0
|
||||
@@ -230,7 +232,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (step.value === STEP_NAME_SURNAME + 1) {
|
||||
let index = indstep.value
|
||||
const index = indstep.value
|
||||
console.log('Salva ', arrStep.value[index])
|
||||
if ((contact.value ? !!contact.value.name : false) && contact.value!.name) {
|
||||
// nome esistente
|
||||
@@ -288,7 +290,7 @@ export default defineComponent({
|
||||
}
|
||||
return false
|
||||
},
|
||||
icon: 'img: images/1ris_rosso_100.png',
|
||||
icon: 'img: /images/1ris_rosso_100.png',
|
||||
required: false,
|
||||
}
|
||||
|
||||
@@ -395,15 +397,15 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function getLabelByStatusStep(step: string) {
|
||||
let mystr = ''
|
||||
const mystr = ''
|
||||
|
||||
return mystr
|
||||
|
||||
}
|
||||
|
||||
const checkifDisabled = computed(() => {
|
||||
let ret = true
|
||||
let mystep = indstep.value
|
||||
const ret = true
|
||||
const mystep = indstep.value
|
||||
if (mystep > 0) {
|
||||
return !arrStep.value[mystep].checkOk()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user