Aggiungi Nuovo: non viene selezionato correttamente il Tipo di Annuncio (Offro/Cerco)

This commit is contained in:
paoloar77
2022-03-01 11:33:06 +01:00
parent f4306b28d6
commit d8b5bda0ce
8 changed files with 15 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.2.15"
APP_VERSION="0.2.16"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.2.15"
APP_VERSION="0.2.16"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="1"
DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.2.15"
APP_VERSION="0.2.16"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.2.15"
APP_VERSION="0.2.16"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="12"
DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -41,7 +41,7 @@
</q-item-label>
</q-item-section>
<q-item-section side v-if="myrec.userId === userStore.my._id">
<q-item-section side v-if="tools.canModifyThisRec(myrec)">
<q-item-label>
<q-btn rounded icon="fas fa-pencil-alt">
<q-menu>

View File

@@ -1,4 +1,9 @@
export const costanti = {
AdType: {
OFFRO: 1,
CERCO: 2,
},
ShowTypeTask: {
SHOW_LAST_N_COMPLETED: 200,
SHOW_ONLY_TOCOMPLETE: 201,

View File

@@ -2196,9 +2196,9 @@ export const fieldsTable = {
},
getColByAdType(adType: number) {
if (adType === 1)
if (adType === costanti.AdType.OFFRO)
return 'green'
else if (adType === 2)
else if (adType === costanti.AdType.CERCO)
return 'red'
else if (adType === 3)
return 'blue'

View File

@@ -5062,7 +5062,7 @@ export const tools = {
idContribType: tools.getSelectionByTable('contribtypes', []),
idCity: this.getCitySel(),
NumLevel: 0,
adType: tools.getSelectionByTable('adtypes', costanti.FILTER_TUTTI),
adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO),
photos: [],
note: '',
//**ADDFIELD_MYSKILL
@@ -5090,7 +5090,7 @@ export const tools = {
idContribType: tools.getSelectionByTable('contribtypes', []),
idCity: this.getCitySel(),
NumLevel: 0,
adType: tools.getSelectionByTable('adtypes', costanti.FILTER_TUTTI),
adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO),
idShipping: [tools.getSelectionByTable('shippings', [])],
otherfilters: tools.getSelectionByTable('otherfilters', []),
photos: [],
@@ -5127,7 +5127,7 @@ export const tools = {
dateTimeEnd: new Date(),
idCity: this.getCitySel(),
NumLevel: 0,
adType: tools.getSelectionByTable('adtypes', costanti.FILTER_TUTTI),
adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO),
photos: [],
note: '',
//**ADDFIELD_MYBACHECAS