From d8b5bda0ce83ffabcb532598bb7d2dfe404f30f7 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Tue, 1 Mar 2022 11:33:06 +0100 Subject: [PATCH] Aggiungi Nuovo: non viene selezionato correttamente il Tipo di Annuncio (Offro/Cerco) --- .env.development | 2 +- _ALL_SITES/freeplanet.app/.env.development | 2 +- _ALL_SITES/insiemesipuo.app/.env.development | 2 +- _ALL_SITES/popolodelnuovomondo.app/.env.development | 2 +- src/components/CMyRecCard/CMyRecCard.vue | 2 +- src/store/Modules/costanti.ts | 5 +++++ src/store/Modules/fieldsTable.ts | 4 ++-- src/store/Modules/tools.ts | 6 +++--- 8 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.env.development b/.env.development index 41122e9b..7f188f99 100755 --- a/.env.development +++ b/.env.development @@ -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" diff --git a/_ALL_SITES/freeplanet.app/.env.development b/_ALL_SITES/freeplanet.app/.env.development index 42e715e3..2690b374 100755 --- a/_ALL_SITES/freeplanet.app/.env.development +++ b/_ALL_SITES/freeplanet.app/.env.development @@ -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" diff --git a/_ALL_SITES/insiemesipuo.app/.env.development b/_ALL_SITES/insiemesipuo.app/.env.development index 41122e9b..7f188f99 100755 --- a/_ALL_SITES/insiemesipuo.app/.env.development +++ b/_ALL_SITES/insiemesipuo.app/.env.development @@ -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" diff --git a/_ALL_SITES/popolodelnuovomondo.app/.env.development b/_ALL_SITES/popolodelnuovomondo.app/.env.development index 37c0e290..57f6f765 100755 --- a/_ALL_SITES/popolodelnuovomondo.app/.env.development +++ b/_ALL_SITES/popolodelnuovomondo.app/.env.development @@ -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" diff --git a/src/components/CMyRecCard/CMyRecCard.vue b/src/components/CMyRecCard/CMyRecCard.vue index 8f1b1a1d..f63b1691 100755 --- a/src/components/CMyRecCard/CMyRecCard.vue +++ b/src/components/CMyRecCard/CMyRecCard.vue @@ -41,7 +41,7 @@ - + diff --git a/src/store/Modules/costanti.ts b/src/store/Modules/costanti.ts index ae3d5bc4..d86da1ae 100755 --- a/src/store/Modules/costanti.ts +++ b/src/store/Modules/costanti.ts @@ -1,4 +1,9 @@ export const costanti = { + AdType: { + OFFRO: 1, + CERCO: 2, + }, + ShowTypeTask: { SHOW_LAST_N_COMPLETED: 200, SHOW_ONLY_TOCOMPLETE: 201, diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts index da2579a9..20202e69 100755 --- a/src/store/Modules/fieldsTable.ts +++ b/src/store/Modules/fieldsTable.ts @@ -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' diff --git a/src/store/Modules/tools.ts b/src/store/Modules/tools.ts index fe2c8469..60ceab1e 100644 --- a/src/store/Modules/tools.ts +++ b/src/store/Modules/tools.ts @@ -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