- add set cookies to table

- fix filters
This commit is contained in:
Paolo Arena
2021-12-16 10:56:57 +01:00
parent 48297094ae
commit c6e0c23650
16 changed files with 496 additions and 214 deletions

View File

@@ -960,14 +960,16 @@ export default defineComponent({
function extraparams() {
return {
lk_tab: 'users',
lk_LF: 'userId',
lk_FF: '_id',
lk_as: 'user',
af_objId_tab: 'userId',
lk_proj: {
todoId: 1, userId: 1, descr: 1, date: 1, time_start: 1, time_end: 1, hours: 1,
username: 1, name: 1, surname: 1
lookup1: {
lk_tab: 'users',
lk_LF: 'userId',
lk_FF: '_id',
lk_as: 'user',
af_objId_tab: 'userId',
lk_proj: {
todoId: 1, userId: 1, descr: 1, date: 1, time_start: 1, time_end: 1, hours: 1,
username: 1, name: 1, surname: 1
}
}
}
}

View File

@@ -3,7 +3,7 @@ import { CTitleBanner } from '@/components/CTitleBanner'
import { CProfile } from '@/components/CProfile'
import { CSkill } from '@/components/CSkill'
import { tools } from '@store/Modules/tools'
import { defineComponent } from 'vue'
import { defineComponent, onMounted, ref } from 'vue'
import { useUserStore } from '@store/UserStore'
import { useRouter } from 'vue-router'
import { useGlobalStore } from '@store/globalStore'
@@ -24,6 +24,8 @@ export default defineComponent({
const $q = useQuasar()
const { t } = useI18n();
const filtroutente = ref(<any[]>[])
function getpayment() {
return userStore.my.profile.paymenttypes
}
@@ -71,12 +73,21 @@ export default defineComponent({
})
}
function mounted() {
filtroutente.value = [
{ userId: userStore.my._id}
]
}
onMounted(mounted)
return {
eliminaAccount,
profile,
getpayment,
tools,
costanti,
filtroutente,
}
}
})

View File

@@ -45,14 +45,27 @@
:type="costanti.FieldType.string">
</CMyFieldDb>
</div>
<CMyFieldDb
<!--<CMyFieldDb
:title="$t('reg.nationality')"
table="users"
mykey="profile"
mysubkey="nationality"
:type="costanti.FieldType.nationality">
</CMyFieldDb>
</CMyFieldDb>-->
<div class="myrow">
<CMyFieldDb
:title="$t('reg.dateofbirth')"
table="users"
mykey="profile"
mysubkey="dateofbirth"
:type="costanti.FieldType.date">
</CMyFieldDb>
</div>
<div class="myrow">
<CMyFieldDb
:title="$t('reg.intcode_cell')"
table="users"
@@ -88,7 +101,8 @@
class="q-pa-xs" title="Competenze e Talenti" bgcolor="bg-primary" clcolor="text-white"
myclass="myshad" :canopen="true">
<CSkill>
<CSkill
:filtercustom="filtroutente">
</CSkill>