nuova veste grafica: myskills, mygoods, mybachecas, myhosps,
- cambiato id (da numero a stringa)
This commit is contained in:
@@ -5,7 +5,7 @@ import { CDateTime } from '@/components/CDateTime'
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
import { CMyCardPopup } from '@/components/CMyCardPopup'
|
||||
import { CCheckIfIsLogged } from '@/components/CCheckIfIsLogged'
|
||||
import { CSkill } from '@/components/CSkill'
|
||||
import { CMyCardService } from '@/components/CMyCardService'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { computed, defineComponent, onMounted, ref, watch } from 'vue'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
@@ -24,7 +24,7 @@ import { colCitys } from '@store/Modules/fieldsTable'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'myservice',
|
||||
components: { CProfile, CTitleBanner, CMyFieldDb, CSkill, CDateTime, CMyPage, CCheckIfIsLogged, CMyCardPopup },
|
||||
components: { CProfile, CTitleBanner, CMyFieldDb, CMyCardService, CDateTime, CMyPage, CCheckIfIsLogged, CMyCardPopup },
|
||||
props: {},
|
||||
setup() {
|
||||
const userStore = useUserStore()
|
||||
@@ -54,37 +54,12 @@ export default defineComponent({
|
||||
return userStore.my.username
|
||||
}
|
||||
|
||||
function loadSkill() {
|
||||
// Carica il profilo di quest'utente
|
||||
if (idSkill.value) {
|
||||
|
||||
userStore.loadSkill(idSkill.value).then((ris) => {
|
||||
myskill.value = ris
|
||||
if (ris.userId) {
|
||||
filtroutente.value = [{ userId: ris.userId , _id: ris._id }]
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
watch(() => idSkill.value, (to: any, from: any) => {
|
||||
loadSkill()
|
||||
})
|
||||
|
||||
function mounted() {
|
||||
loadSkill()
|
||||
}
|
||||
|
||||
function checkifShow(col: string) {
|
||||
//++Todo: checkifShow Permessi !
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
profile,
|
||||
tools,
|
||||
|
||||
Reference in New Issue
Block a user