Aumentato il width delle combobox su cellulare (:class="$q.screen.lt.sm ? ` : row + text-blue `")

corretto i default dei nuovi record
This commit is contained in:
Paolo Arena
2022-06-17 13:19:03 +02:00
parent 05626e87c5
commit 51e13794c3
4 changed files with 14 additions and 19 deletions

View File

@@ -557,7 +557,8 @@
<q-card-section class="inset-shadow"> <q-card-section class="inset-shadow">
<div <div
v-for="col in mycolumns" :key="col.name" class="newrec_fields"> :class="$q.screen.lt.sm ? `` : `row` + ` text-blue `"
v-for="col in mycolumns" :key="col.name">
<!--<div class="text-center q-my-xs" v-if="(col.fieldtype === costanti.FieldType.separator)"> <!--<div class="text-center q-my-xs" v-if="(col.fieldtype === costanti.FieldType.separator)">
<q-btn color="primary" size="md" dense :icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'" <q-btn color="primary" size="md" dense :icon="!showfilteradv ? 'fas fa-arrow-down' : 'fas fa-arrow-up'"

View File

@@ -878,7 +878,7 @@ $heightBtn: 100%;
.combowidth { .combowidth {
min-width: 190px; min-width: 190px;
@media (max-width: 450px) { @media (max-width: 450px) {
min-width: 40px; min-width: 125px;
white-space: nowrap; white-space: nowrap;
} }
} }

View File

@@ -916,7 +916,7 @@ const msg_it = {
friends: 'Amici', friends: 'Amici',
bacheca: 'Bacheca', bacheca: 'Bacheca',
services: 'Servizi', services: 'Servizi',
hosp: 'Scambio Ospitalità', hosp: 'Ospitalità',
events: 'Eventi', events: 'Eventi',
goods: 'Beni', goods: 'Beni',
test: 'Test', test: 'Test',

View File

@@ -5165,7 +5165,7 @@ export const tools = {
return defcity return defcity
}, },
getSelectionByTable(table: string, mydef: any) { getSelectionByTable(table: string, mydef: any, convertint: any = false) {
const arrtable = ['sectors', 'statusSkills', 'contribtypes', 'adtypes', 'sectorgoods', 'otherfilters', 'shippings', 'pub_to_share'] const arrtable = ['sectors', 'statusSkills', 'contribtypes', 'adtypes', 'sectorgoods', 'otherfilters', 'shippings', 'pub_to_share']
const arrmultisel_tab = ['skills', 'goods'] const arrmultisel_tab = ['skills', 'goods']
@@ -5174,16 +5174,10 @@ export const tools = {
{ table: 'goods', join: 'sectorgoods' } { table: 'goods', join: 'sectorgoods' }
] ]
let convertiint = false
if (table === 'pub_to_share') {
convertiint = true
}
let ris = mydef let ris = mydef
if (arrtable.includes(table)) { if (arrtable.includes(table)) {
ris = tools.getCookie(tools.COOK_SEARCH + table, mydef, convertiint) ris = tools.getCookie(tools.COOK_SEARCH + table, mydef, convertint)
} else if (arrmultisel_tab.includes(table)) { } else if (arrmultisel_tab.includes(table)) {
const rec = arrmultisel.find((rec) => rec.table === table) const rec = arrmultisel.find((rec) => rec.table === table)
if (rec) { if (rec) {
@@ -5202,14 +5196,14 @@ export const tools = {
return { return {
_id: 0, _id: 0,
idSector: tools.getSelectionByTable('sectors', 0), idSector: tools.getSelectionByTable('sectors', 0, true),
idSkill: tools.getSelectionByTable('skills', 0), idSkill: tools.getSelectionByTable('skills', 0, true),
idStatusSkill: tools.getSelectionByTable('statusSkills', []), idStatusSkill: tools.getSelectionByTable('statusSkills', []),
idContribType: tools.getSelectionByTable('contribtypes', []), idContribType: tools.getSelectionByTable('contribtypes', []),
idCity: this.getCitySel(), idCity: this.getCitySel(),
NumLevel: 0, NumLevel: 0,
adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO), adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO),
pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL), pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
photos: [], photos: [],
note: '', note: '',
//**ADDFIELD_MYSKILL //**ADDFIELD_MYSKILL
@@ -5240,7 +5234,7 @@ export const tools = {
adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO), adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO),
idShipping: tools.getSelectionByTable('shippings', []), idShipping: tools.getSelectionByTable('shippings', []),
otherfilters: tools.getSelectionByTable('otherfilters', []), otherfilters: tools.getSelectionByTable('otherfilters', []),
pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL), pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
photos: [], photos: [],
note: '', note: '',
//**ADDFIELD_MYSKILL //**ADDFIELD_MYSKILL
@@ -5267,8 +5261,8 @@ export const tools = {
getdefaultnewrec_MyBacheca(): any { getdefaultnewrec_MyBacheca(): any {
return { return {
_id: 0, _id: 0,
idSector: tools.getSelectionByTable('sectors', 0), idSector: tools.getSelectionByTable('sectors', 0, true),
idSkill: tools.getSelectionByTable('skills', 0), idSkill: tools.getSelectionByTable('skills', 0, true),
idStatusSkill: tools.getSelectionByTable('statusSkills', []), idStatusSkill: tools.getSelectionByTable('statusSkills', []),
idContribType: tools.getSelectionByTable('contribtypes', []), idContribType: tools.getSelectionByTable('contribtypes', []),
dateTimeStart: new Date(), dateTimeStart: new Date(),
@@ -5276,7 +5270,7 @@ export const tools = {
idCity: this.getCitySel(), idCity: this.getCitySel(),
NumLevel: 0, NumLevel: 0,
adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO), adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO),
pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL), pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
photos: [], photos: [],
note: '', note: '',
//**ADDFIELD_MYBACHECAS //**ADDFIELD_MYBACHECAS
@@ -5293,7 +5287,7 @@ export const tools = {
typeHosp: tools.getSelectionByTable(toolsext.TABTYPEHOSP, 2), typeHosp: tools.getSelectionByTable(toolsext.TABTYPEHOSP, 2),
idContribType: tools.getSelectionByTable('contribtypes', []), idContribType: tools.getSelectionByTable('contribtypes', []),
idCity: this.getCitySel(), idCity: this.getCitySel(),
pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL), pub_to_share: tools.getSelectionByTable('pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
photos: [], photos: [],
descr: '', descr: '',
note: '', note: '',