Files
myprojplanet_vite/src/views/user/myservice/myservice.ts

86 lines
2.4 KiB
TypeScript
Raw Normal View History

2022-01-26 01:31:07 +01:00
import { CMyFieldDb } from '@/components/CMyFieldDb'
import { CTitleBanner } from '@/components/CTitleBanner'
import { CProfile } from '@/components/CProfile'
import { CDateTime } from '@/components/CDateTime'
import { CMyPage } from '@/components/CMyPage'
import { CMyCardPopup } from '@/components/CMyCardPopup'
import { CCheckIfIsLogged } from '@/components/CCheckIfIsLogged'
2023-04-07 21:48:33 +02:00
import { CMyCardService } from '@/components/CMyCardService'
2022-01-26 01:31:07 +01:00
import { tools } from '@store/Modules/tools'
import { computed, defineComponent, onMounted, ref, watch } from 'vue'
import { useUserStore } from '@store/UserStore'
import { useRoute, useRouter } from 'vue-router'
import { useGlobalStore } from '@store/globalStore'
import { useI18n } from '@/boot/i18n'
import { toolsext } from '@store/Modules/toolsext'
import { useQuasar } from 'quasar'
import { costanti } from '@costanti'
import { IMySkill, IUserFields } from 'model'
import { shared_consts } from '@/common/shared_vuejs'
import { fieldsTable } from '@store/Modules/fieldsTable'
import { colCitys } from '@store/Modules/fieldsTable'
export default defineComponent({
name: 'myservice',
2023-04-07 21:48:33 +02:00
components: { CProfile, CTitleBanner, CMyFieldDb, CMyCardService, CDateTime, CMyPage, CCheckIfIsLogged, CMyCardPopup },
2022-01-26 01:31:07 +01:00
props: {},
setup() {
const userStore = useUserStore()
const globalStore = useGlobalStore()
const $route = useRoute()
const $q = useQuasar()
const { t } = useI18n()
const animation = ref('fade')
const table = ref(shared_consts.TABLES_MYSKILLS)
2023-04-04 15:27:03 +02:00
const idSkill = computed(() => $route.params.idSkill ? $route.params.idSkill.toString() : '')
2022-01-26 01:31:07 +01:00
const filtroutente = ref(<any[]>[])
const showPic = ref(false)
const myskill = ref(<IMySkill>{})
const username = computed(() => (myskill.value && myskill.value.username) ? myskill.value.username : 'Servizio')
2022-01-26 01:31:07 +01:00
function profile() {
return userStore.my.profile
}
function myusername() {
return userStore.my.username
}
function checkifShow(col: string) {
//++Todo: checkifShow Permessi !
return true
}
return {
profile,
tools,
costanti,
myskill,
toolsext,
2022-01-26 01:31:07 +01:00
shared_consts,
checkifShow,
globalStore,
filtroutente,
showPic,
myusername,
userStore,
t,
animation,
fieldsTable,
colCitys,
table,
username,
idSkill,
2022-01-26 01:31:07 +01:00
}
}
})