Corretto Chip List
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tdclass, .trclass{
|
.tdclass, .trclass{
|
||||||
height: 20px !important;
|
min-height: 20px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.q-table td {
|
.q-table td {
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
function SaveValdb(newVal: any, valinitial: any) {
|
function SaveValdb(newVal: any, valinitial: any) {
|
||||||
// console.log('SaveValdb', newVal)
|
console.log('SaveValdb', newVal)
|
||||||
// console.log('SaveValue', newVal, 'rowsel', rowsel)
|
// console.log('SaveValue', newVal, 'rowsel', rowsel)
|
||||||
|
|
||||||
colsel.value = colclicksel.value
|
colsel.value = colclicksel.value
|
||||||
@@ -359,7 +359,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
|
|
||||||
function showandsel(row: any, col: any, newval: any, valinitial: any) {
|
function showandsel(row: any, col: any, newval: any, valinitial: any) {
|
||||||
// console.log('showandsel', row, col, newval)
|
console.log('showandsel', row, col, newval)
|
||||||
rowsel = row
|
rowsel = row
|
||||||
colsel.value = col
|
colsel.value = col
|
||||||
idsel = row._id
|
idsel = row._id
|
||||||
@@ -377,7 +377,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
function SaveValue(newVal: any, valinitial: any) {
|
function SaveValue(newVal: any, valinitial: any) {
|
||||||
console.log('SaveValue', newVal, 'rowsel', rowsel, 'colsel', colsel.value)
|
// console.log('SaveValue', newVal, 'rowsel', rowsel, 'colsel', colsel.value)
|
||||||
|
|
||||||
if (colsel.value) {
|
if (colsel.value) {
|
||||||
// Update value in table memory
|
// Update value in table memory
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<q-btn
|
<q-btn
|
||||||
v-if="mytable && visButtRow()" rounded dense color="primary"
|
v-if="mytable && visButtRow()" rounded dense color="primary"
|
||||||
size="lg"
|
size="lg"
|
||||||
:label="getlabelAddRow"
|
:label="getlabelAddRow()"
|
||||||
@click="createNewRecordDialog"></q-btn>
|
@click="createNewRecordDialog"></q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -127,7 +127,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
|
|
||||||
<q-tr :props="props" class="trclass">
|
<q-tr :props="props" class="trclass">
|
||||||
<q-td auto-width class="tdclass">
|
<q-td auto-width class="tdclass">
|
||||||
<q-checkbox dense v-model="props.selected"></q-checkbox>
|
<q-checkbox dense v-model="props.selected"></q-checkbox>
|
||||||
@@ -167,6 +166,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
|
<br>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
function SaveValueInt(newVal: any, valinitial: any) {
|
function SaveValueInt(newVal: any, valinitial: any) {
|
||||||
|
|
||||||
console.log('SaveValueInt', newVal, valinitial)
|
// console.log('SaveValueInt', newVal, valinitial)
|
||||||
|
|
||||||
// Update value in table memory
|
// Update value in table memory
|
||||||
if (props.subfield !== '') {
|
if (props.subfield !== '') {
|
||||||
@@ -282,7 +282,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
function getclassCol(col: any) {
|
function getclassCol(col: any) {
|
||||||
if (col) {
|
if (col) {
|
||||||
let mycl = (props.col.disable || isviewfield) ? '' : 'colmodif'
|
let mycl = (props.col.disable || isviewfield()) ? '' : 'colmodif'
|
||||||
mycl += ((props.col.fieldtype === costanti.FieldType.date) || (props.col.fieldtype === costanti.FieldType.onlydate)) ? ' coldate flex flex-container' : ''
|
mycl += ((props.col.fieldtype === costanti.FieldType.date) || (props.col.fieldtype === costanti.FieldType.onlydate)) ? ' coldate flex flex-container' : ''
|
||||||
|
|
||||||
return mycl
|
return mycl
|
||||||
|
|||||||
@@ -186,7 +186,7 @@
|
|||||||
</CDateTime>
|
</CDateTime>
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="col.fieldtype === costanti.FieldType.onlydate">
|
<span v-else-if="col.fieldtype === costanti.FieldType.onlydate">
|
||||||
Data4:
|
|
||||||
<CDateTime
|
<CDateTime
|
||||||
:label="col.label"
|
:label="col.label"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
v-if="canEdit && col.fieldtype !== costanti.FieldType.html"
|
v-if="canEdit && col.fieldtype !== costanti.FieldType.html"
|
||||||
v-model="myvalue"
|
v-model="myvalue"
|
||||||
:disable="col.disable"
|
:disable="col.disable"
|
||||||
:title="col.title"
|
:title="col.title ? col.title : col.titlepopupedit"
|
||||||
buttons
|
buttons
|
||||||
persistent
|
persistent
|
||||||
@save="SaveValueInt"
|
@save="SaveValueInt"
|
||||||
@@ -271,7 +271,6 @@
|
|||||||
v-slot="scope">
|
v-slot="scope">
|
||||||
|
|
||||||
<div v-if="col.fieldtype === costanti.FieldType.boolean">
|
<div v-if="col.fieldtype === costanti.FieldType.boolean">
|
||||||
Boolean:
|
|
||||||
<q-checkbox v-model="scope.value" :label="col.title">
|
<q-checkbox v-model="scope.value" :label="col.title">
|
||||||
</q-checkbox>
|
</q-checkbox>
|
||||||
{{ visuValByType(myvalue, col, row) }}
|
{{ visuValByType(myvalue, col, row) }}
|
||||||
@@ -309,10 +308,11 @@
|
|||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="col.fieldtype === costanti.FieldType.binary">
|
<div v-else-if="col.fieldtype === costanti.FieldType.binary">
|
||||||
|
|
||||||
<CMyToggleList
|
<CMyToggleList
|
||||||
:label="col.title"
|
:label="col.titlepopupedit"
|
||||||
:options="globalStore.getTableJoinByName(col.jointable)"
|
:options="globalStore.getTableJoinByName(col.jointable)"
|
||||||
v-model:value="myvalue"
|
v-model:value="scope.value"
|
||||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||||
:optlab="fieldsTable.getLabelByTable(col.jointable)">
|
:optlab="fieldsTable.getLabelByTable(col.jointable)">
|
||||||
</CMyToggleList>
|
</CMyToggleList>
|
||||||
@@ -320,7 +320,7 @@
|
|||||||
<div v-else-if="col.fieldtype === costanti.FieldType.select">
|
<div v-else-if="col.fieldtype === costanti.FieldType.select">
|
||||||
<CMySelect
|
<CMySelect
|
||||||
:label="col.title"
|
:label="col.title"
|
||||||
v-model:value="myvalue"
|
v-model:value="scope.value"
|
||||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||||
:options="globalStore.getTableJoinByName(col.jointable)"
|
:options="globalStore.getTableJoinByName(col.jointable)"
|
||||||
@@ -339,7 +339,7 @@
|
|||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<div style="font-size: 1rem;">
|
<div style="font-size: 1rem;">
|
||||||
<!--<vue-country-code
|
<!--<vue-country-code
|
||||||
:defaultCountry="myvalue"
|
:defaultCountry="scope.value"
|
||||||
:disabledFetchingCountry="true"
|
:disabledFetchingCountry="true"
|
||||||
@onSelect="selectcountry"
|
@onSelect="selectcountry"
|
||||||
:preferredCountries="tools.getprefCountries"
|
:preferredCountries="tools.getprefCountries"
|
||||||
@@ -358,7 +358,7 @@
|
|||||||
|
|
||||||
<!-- <vue-tel-input
|
<!-- <vue-tel-input
|
||||||
@country-changed="intcode_change"
|
@country-changed="intcode_change"
|
||||||
:value="myvalue"
|
:value="scope.value"
|
||||||
@input="oninput"
|
@input="oninput"
|
||||||
:placeholder="$t('reg.cell')"
|
:placeholder="$t('reg.cell')"
|
||||||
:enabledCountryCode="true"
|
:enabledCountryCode="true"
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="cltoggle" v-for="(rec, index) in myarrvalues" :key="index">
|
<div class="cltoggle" v-for="(rec, index) in myarrvalues" :key="index">
|
||||||
<q-toggle
|
<q-toggle
|
||||||
v-model="rec.valbool"
|
v-if="rec.label"
|
||||||
:label="rec.label"
|
v-model="rec.valbool"
|
||||||
:color="tools.getColorByIndexBest(index)"
|
:label="rec.label"
|
||||||
keep-color
|
:color="tools.getColorByIndexBest(index)"
|
||||||
@update:model-value="changeval">
|
keep-color
|
||||||
</q-toggle>
|
@update:model-value="changeval">
|
||||||
</div>
|
</q-toggle>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" src="./CMyToggleList.ts">
|
<script lang="ts" src="./CMyToggleList.ts">
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import './CMyToggleList.scss';
|
@import './CMyToggleList.scss';
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ const msg_website_it = {
|
|||||||
ecommerce: 'Prodotti',
|
ecommerce: 'Prodotti',
|
||||||
ecommerce_menu: 'ECommerce1',
|
ecommerce_menu: 'ECommerce1',
|
||||||
hours: 'Ore',
|
hours: 'Ore',
|
||||||
|
department: 'Uffici'
|
||||||
},
|
},
|
||||||
msg: {
|
msg: {
|
||||||
myAppName: 'FreePlanet',
|
myAppName: 'FreePlanet',
|
||||||
|
|||||||
@@ -895,7 +895,7 @@ export const fieldsTable = {
|
|||||||
AddCol({ name: 'lasttimeonline', label_trans: 'reg.lasttimeonline', fieldtype: costanti.FieldType.date }),
|
AddCol({ name: 'lasttimeonline', label_trans: 'reg.lasttimeonline', fieldtype: costanti.FieldType.date }),
|
||||||
// AddCol({ name: 'idapp', label_trans: 'reg.idapp', fieldtype: costanti.FieldType.string }),
|
// AddCol({ name: 'idapp', label_trans: 'reg.idapp', fieldtype: costanti.FieldType.string }),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'perm', label_trans: 'reg.perm', fieldtype: costanti.FieldType.binary, jointable: 'permissions',
|
name: 'perm', label_trans: 'reg.perm', fieldtype: costanti.FieldType.binary, jointable: 'permissions', titlepopupedit: 'Permessi'
|
||||||
}),
|
}),
|
||||||
AddCol({ name: 'ipaddr', label_trans: 'reg.ipaddr' }),
|
AddCol({ name: 'ipaddr', label_trans: 'reg.ipaddr' }),
|
||||||
AddCol(DeleteRec),
|
AddCol(DeleteRec),
|
||||||
@@ -1061,7 +1061,7 @@ export const fieldsTable = {
|
|||||||
AddCol({ name: 'lasttimeonline', label_trans: 'reg.lasttimeonline', fieldtype: costanti.FieldType.date }),
|
AddCol({ name: 'lasttimeonline', label_trans: 'reg.lasttimeonline', fieldtype: costanti.FieldType.date }),
|
||||||
// AddCol({ name: 'idapp', label_trans: 'reg.idapp', fieldtype: costanti.FieldType.string }),
|
// AddCol({ name: 'idapp', label_trans: 'reg.idapp', fieldtype: costanti.FieldType.string }),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'perm', label_trans: 'reg.perm', fieldtype: costanti.FieldType.binary, jointable: 'permissions',
|
name: 'perm', label_trans: 'reg.perm', fieldtype: costanti.FieldType.binary, jointable: 'permissions', titlepopupedit: 'Permessi'
|
||||||
}),
|
}),
|
||||||
AddCol({ name: 'ipaddr', label_trans: 'reg.ipaddr' }),
|
AddCol({ name: 'ipaddr', label_trans: 'reg.ipaddr' }),
|
||||||
AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }),
|
AddCol({ name: 'deleted', label_trans: 'reg.deleted', fieldtype: costanti.FieldType.boolean }),
|
||||||
|
|||||||
Reference in New Issue
Block a user