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">
<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)">
<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 {
min-width: 190px;
@media (max-width: 450px) {
min-width: 40px;
min-width: 125px;
white-space: nowrap;
}
}

View File

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

View File

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