- CMyPopupEdit
- Star - Insert and Edit - Update quasar 3.2.4
This commit is contained in:
@@ -9,6 +9,7 @@ import { useGlobalStore } from '@store/globalStore'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { colmySkills } from '@store/Modules/fieldsTable'
|
||||
import { CGridTableRec } from '@/components/CGridTableRec'
|
||||
import { IMySkill, ISkill } from 'model'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CSkill',
|
||||
@@ -47,10 +48,25 @@ export default defineComponent({
|
||||
const data = await globalStore.saveSubRec(mydata)
|
||||
}
|
||||
|
||||
function getdefaultnewrec(): any {
|
||||
return {
|
||||
_id: 0,
|
||||
idSkill: 0,
|
||||
idStatusSkill: [],
|
||||
idCity: [],
|
||||
NumLevel: 0,
|
||||
photos: [],
|
||||
note: '',
|
||||
subTitle: '',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
tools,
|
||||
costanti,
|
||||
colmySkills,
|
||||
getdefaultnewrec,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,42 +1,21 @@
|
||||
<template>
|
||||
<div>
|
||||
Competenze:<br>
|
||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||
<CGridTableRec
|
||||
prop_mytable="myskills"
|
||||
prop_mytitle="Mie Competenze"
|
||||
prop_mytitle=""
|
||||
:prop_mycolumns="colmySkills"
|
||||
prop_colkey="idSkill"
|
||||
:vertical="true"
|
||||
nodataLabel="Nessuna Competenza inserita"
|
||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato">
|
||||
:prop_search="false"
|
||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato"
|
||||
:defaultnewrec="getdefaultnewrec">
|
||||
|
||||
</CGridTableRec>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!--
|
||||
<q-btn
|
||||
flat dense color="primary"
|
||||
:label="$t('grid.addrecord')"
|
||||
@click="createNewRecordInUserTable">
|
||||
|
||||
</q-btn>
|
||||
|
||||
<CMyFieldDb
|
||||
title="Competenza"
|
||||
table="users"
|
||||
mykey="profile"
|
||||
mysubkey="myskills"
|
||||
indrec=0
|
||||
mysubsubkey="idSkill"
|
||||
:type="costanti.FieldType.binary">
|
||||
</CMyFieldDb>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Servizi:<br>
|
||||
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CSkill.ts">
|
||||
|
||||
Reference in New Issue
Block a user