"Sugli eventi in alcuni non è visibile la data forse perché è l'unica di inizio e fine? non so.
x - In ogni caso sull'EVENTO andrebbe escluso il campo CERCO - OFFRO. x - Sarebbe utile ordinarli per data. - Nella ricerca si potrebbe poter selezionare eventi futuri, eventi passati oppure quelli passati si eliminano e basta così non occupiamo spazio memoria. Lascio a te la valutazione. Grazie" ciao Paolo. c'è un po' di confusione tra eventi-beni e servizi. provo a fare una proposta da valutare. E' capitato anche a me di inserire un articolo nel posto sbagliato perché ero nella sezione BENI e mi è venuto in mente un servizio e non sono tornato indietro nella home ma l'ho inserito direttamente. Per evitare ciò farei che con il tasto AGGIUNGI (da BENI o SERVIZI) si finisce in un'unica sezione AGGIUNGI dove nel primo campo si può selezionare BENI o SERVIZI e quindi CERCO, OFFRO, CATEGORIE, ECC ECC.
This commit is contained in:
@@ -108,7 +108,7 @@ export const shared_consts = {
|
|||||||
TABLES_UPDATE_LASTIFIED: ['myskills', 'mybachecas', 'mygoods', 'mybots'],
|
TABLES_UPDATE_LASTIFIED: ['myskills', 'mybachecas', 'mygoods', 'mybots'],
|
||||||
TABLES_FINDER: ['myskills', 'mybachecas', 'mygoods', 'mygroups'],
|
TABLES_FINDER: ['myskills', 'mybachecas', 'mygoods', 'mygroups'],
|
||||||
TABLES_VISU_CMYSRECCARD: ['myskills', 'mybachecas', 'mygoods', 'mygroups'],
|
TABLES_VISU_CMYSRECCARD: ['myskills', 'mybachecas', 'mygoods', 'mygroups'],
|
||||||
TABLES_SHOW_ADTYPE: ['myskills', 'mybachecas', 'mygoods'],
|
TABLES_SHOW_ADTYPE: ['myskills', 'mygoods'],
|
||||||
|
|
||||||
TABLES_PERM_CHANGE_FOR_USERS: ['myskills', 'mybachecas', 'mygoods'],
|
TABLES_PERM_CHANGE_FOR_USERS: ['myskills', 'mybachecas', 'mygoods'],
|
||||||
TABLES_VISU_LISTA_USER: ['myskills', 'mybachecas', 'mygoods', 'users'],
|
TABLES_VISU_LISTA_USER: ['myskills', 'mybachecas', 'mygoods', 'users'],
|
||||||
|
|||||||
@@ -28,6 +28,11 @@ export default defineComponent({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
default: true,
|
default: true,
|
||||||
|
},
|
||||||
|
ind: {
|
||||||
|
type: Number,
|
||||||
|
required: false,
|
||||||
|
default: -1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -54,6 +59,8 @@ export default defineComponent({
|
|||||||
const col_footer = ref('idCity')
|
const col_footer = ref('idCity')
|
||||||
const col_tabfooter = ref('mycities')
|
const col_tabfooter = ref('mycities')
|
||||||
|
|
||||||
|
const strextra = ref('')
|
||||||
|
|
||||||
|
|
||||||
const col = ref(<IColGridTable>{})
|
const col = ref(<IColGridTable>{})
|
||||||
|
|
||||||
@@ -97,7 +104,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const mypagination = computed(() => {
|
const mypagination = computed(() => {
|
||||||
if (props.table === toolsext.TABMYBACHECAS)
|
if (props.table === toolsext.TABMYBACHECAS)
|
||||||
return { sortBy: 'dateStart', descending: false, page: 1, rowsNumber: 20, rowsPerPage: 20 }
|
return { sortBy: 'dateTimeStart', descending: false, page: 1, rowsNumber: 20, rowsPerPage: 20 }
|
||||||
|
|
||||||
return { sortBy: 'date_created', descending: true, page: 1, rowsNumber: 20, rowsPerPage: 20 }
|
return { sortBy: 'date_created', descending: true, page: 1, rowsNumber: 20, rowsPerPage: 20 }
|
||||||
})
|
})
|
||||||
@@ -170,6 +177,10 @@ export default defineComponent({
|
|||||||
|
|
||||||
let obj = tools.getParamsByTable(props.table)
|
let obj = tools.getParamsByTable(props.table)
|
||||||
|
|
||||||
|
if (props.ind >= 0) {
|
||||||
|
strextra.value = costanti.MAINCARDS[props.ind].strsingolo!
|
||||||
|
}
|
||||||
|
|
||||||
col.value = fieldsTable.getArrColsByTable(props.table)
|
col.value = fieldsTable.getArrColsByTable(props.table)
|
||||||
|
|
||||||
prop_colkey.value = obj.prop_colkey
|
prop_colkey.value = obj.prop_colkey
|
||||||
@@ -434,22 +445,11 @@ export default defineComponent({
|
|||||||
// param1: shared_consts.PARAM_SHOW_PROVINCE,
|
// param1: shared_consts.PARAM_SHOW_PROVINCE,
|
||||||
tablesel: 'cities',
|
tablesel: 'cities',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: 'Offro/Cerco',
|
|
||||||
table: 'adtypes',
|
|
||||||
key: 'adType',
|
|
||||||
value: tools.getCookie(tools.COOK_SEARCH + 'adtypes', costanti.FILTER_TUTTI),
|
|
||||||
arrvalue: [],
|
|
||||||
addall: true,
|
|
||||||
type: costanti.FieldType.select,
|
|
||||||
filter: null,
|
|
||||||
useinput: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: 'Data Inizio',
|
label: 'Data Inizio',
|
||||||
table: 'caldate',
|
table: 'caldate',
|
||||||
key: 'dateTimeStart',
|
key: 'dateTimeStart',
|
||||||
value: tools.getCookie(tools.COOK_SEARCH + 'datetimestart', costanti.FILTER_TUTTI),
|
value: 2,
|
||||||
arrvalue: [],
|
arrvalue: [],
|
||||||
type: costanti.FieldType.select,
|
type: costanti.FieldType.select,
|
||||||
addall: true,
|
addall: true,
|
||||||
@@ -1026,6 +1026,7 @@ export default defineComponent({
|
|||||||
showType,
|
showType,
|
||||||
visuType,
|
visuType,
|
||||||
hint,
|
hint,
|
||||||
|
strextra,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
glossy
|
glossy
|
||||||
toggle-color="primary"
|
toggle-color="primary"
|
||||||
:options="[
|
:options="[
|
||||||
{label: 'Tutti', value: tools.FILTER_ALL},
|
{label: '🌎 Tutti', value: tools.FILTER_ALL},
|
||||||
{label: 'Personali', value: tools.FILTER_MYREC},
|
{label: '👤 Personali', value: tools.FILTER_MYREC},
|
||||||
// {label: 'Seguo', value: tools.FILTER_MYFOLLOW},
|
// {label: 'Seguo', value: tools.FILTER_MYFOLLOW},
|
||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
@@ -43,6 +43,7 @@
|
|||||||
:nodataLabel="noMsgRecord"
|
:nodataLabel="noMsgRecord"
|
||||||
:prop_search="true"
|
:prop_search="true"
|
||||||
:finder="true"
|
:finder="true"
|
||||||
|
:labelBtnAddExtra="`Aggiungi ${strextra}`"
|
||||||
:choose_visutype="visuType"
|
:choose_visutype="visuType"
|
||||||
:butt_modif_new="true"
|
:butt_modif_new="true"
|
||||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato"
|
noresultLabel="Il filtro selezionato non ha trovato nessun risultato"
|
||||||
|
|||||||
@@ -121,6 +121,11 @@ export default defineComponent({
|
|||||||
required: false,
|
required: false,
|
||||||
default: 'Aggiungi',
|
default: 'Aggiungi',
|
||||||
},
|
},
|
||||||
|
labelBtnAddExtra: {
|
||||||
|
type: String,
|
||||||
|
required: false,
|
||||||
|
default: 'Aggiungi',
|
||||||
|
},
|
||||||
noresultLabel: {
|
noresultLabel: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false,
|
required: false,
|
||||||
|
|||||||
@@ -22,12 +22,11 @@
|
|||||||
</q-btn>
|
</q-btn>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="mytable" rounded size="md" color="primary"
|
v-if="mytable" rounded size="md" color="primary"
|
||||||
class="centermydiv"
|
class="centermydiv q-mb-sm"
|
||||||
label="Aggiungi"
|
:label="labelBtnAddExtra"
|
||||||
:disable="loading"
|
:disable="loading"
|
||||||
icon="fas fa-plus"
|
icon="fas fa-plus"
|
||||||
@click="createNewRecord">
|
@click="createNewRecord">
|
||||||
|
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<q-item-section v-if="(shared_consts.TABLES_VISU_IMG.includes(table)) && (myrec.photos.length > 0)" avatar
|
<q-item-section v-if="(shared_consts.TABLES_VISU_IMG.includes(table)) && (myrec.photos.length > 0)" avatar
|
||||||
@click="cmdExt(costanti.CMD_SHOW_PAGE, myrec)">
|
@click="cmdExt(costanti.CMD_SHOW_PAGE, myrec)">
|
||||||
<q-badge v-if="showBadge" class="q-my-xs self-center" :color="fieldsTable.getColByAdType(myrec.adType)">
|
<q-badge v-if="showBadge()" class="q-my-xs self-center" :color="fieldsTable.getColByAdType(myrec.adType)">
|
||||||
{{ fieldsTable.getValByTabAndId(table, 'adType', myrec.adType) }}
|
{{ fieldsTable.getValByTabAndId(table, 'adType', myrec.adType) }}
|
||||||
<q-icon :name="fieldsTable.getIconByAdType(myrec.adType)" color="white"
|
<q-icon :name="fieldsTable.getIconByAdType(myrec.adType)" color="white"
|
||||||
class="q-ml-xs"/>
|
class="q-ml-xs"/>
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section v-else avatar @click="naviga(`/my/` + myrec.username)">
|
<q-item-section v-else avatar @click="naviga(`/my/` + myrec.username)">
|
||||||
|
|
||||||
<q-badge v-if="showBadge" class="q-my-xs self-center" :color="fieldsTable.getColByAdType(myrec.adType)">
|
<q-badge v-if="showBadge()" class="q-my-xs self-center" :color="fieldsTable.getColByAdType(myrec.adType)">
|
||||||
{{ fieldsTable.getValByTabAndId(table, 'adType', myrec.adType) }}
|
{{ fieldsTable.getValByTabAndId(table, 'adType', myrec.adType) }}
|
||||||
<q-icon :name="fieldsTable.getIconByAdType(myrec.adType)" color="white"
|
<q-icon :name="fieldsTable.getIconByAdType(myrec.adType)" color="white"
|
||||||
class="q-ml-xs"/>
|
class="q-ml-xs"/>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { useRouter } from 'vue-router'
|
|||||||
import { useGlobalStore } from '@store/globalStore'
|
import { useGlobalStore } from '@store/globalStore'
|
||||||
import { useI18n } from '@/boot/i18n'
|
import { useI18n } from '@/boot/i18n'
|
||||||
import { tools } from '@store/Modules/tools'
|
import { tools } from '@store/Modules/tools'
|
||||||
import { Footer, Logo } from "@components"
|
import { Footer, Logo } from '@components'
|
||||||
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { computed, defineComponent, onMounted, PropType, ref } from 'vue'
|
import { computed, defineComponent, onMounted, PropType, ref } from 'vue'
|
||||||
import { costanti } from '@costanti'
|
import { costanti } from '@costanti'
|
||||||
|
import { tools } from '@store/Modules/tools'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CTitlePage',
|
name: 'CTitlePage',
|
||||||
@@ -36,7 +37,7 @@ export default defineComponent({
|
|||||||
} else {
|
} else {
|
||||||
mytitle.value = costanti.MAINCARDS[props.ind].title
|
mytitle.value = costanti.MAINCARDS[props.ind].title
|
||||||
myicon.value = costanti.MAINCARDS[props.ind].icon
|
myicon.value = costanti.MAINCARDS[props.ind].icon
|
||||||
mycolor.value = costanti.MAINCARDS[props.ind].color
|
mycolor.value = tools.colourNameToHex(costanti.MAINCARDS[props.ind].color)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<CTitlePage :ind="4" />
|
<CTitlePage :ind="4" />
|
||||||
|
|
||||||
<CFinder
|
<CFinder
|
||||||
|
:ind="4"
|
||||||
:table="toolsext.TABMYBACHECAS">
|
:table="toolsext.TABMYBACHECAS">
|
||||||
|
|
||||||
</CFinder>
|
</CFinder>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<CTitlePage :ind="0" />
|
<CTitlePage :ind="0" />
|
||||||
|
|
||||||
<CFinder
|
<CFinder
|
||||||
|
:ind="0"
|
||||||
:table="toolsext.TABMYGOODS"
|
:table="toolsext.TABMYGOODS"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<div v-if="tools.isUserOk()">
|
<div v-if="tools.isUserOk()">
|
||||||
|
|
||||||
<CFinder
|
<CFinder
|
||||||
|
:ind="1"
|
||||||
:table="toolsext.TABMYSKILLS"
|
:table="toolsext.TABMYSKILLS"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
export interface IMainCard {
|
export interface IMainCard {
|
||||||
visible: boolean
|
visible: boolean
|
||||||
|
strsingolo?: string
|
||||||
title: string
|
title: string
|
||||||
to?: string
|
to?: string
|
||||||
icon?: string
|
icon?: string
|
||||||
@@ -33,6 +34,7 @@ export const costanti = {
|
|||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
title: ' Beni ',
|
title: ' Beni ',
|
||||||
|
strsingolo: 'Bene',
|
||||||
to: '/goods',
|
to: '/goods',
|
||||||
icon: 'fas fa-tshirt',
|
icon: 'fas fa-tshirt',
|
||||||
color: 'indigo-6',
|
color: 'indigo-6',
|
||||||
@@ -43,6 +45,7 @@ export const costanti = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
|
strsingolo: 'Servizio',
|
||||||
title: 'Servizi',
|
title: 'Servizi',
|
||||||
to: '/services',
|
to: '/services',
|
||||||
icon: 'fas fa-house-user',
|
icon: 'fas fa-house-user',
|
||||||
@@ -55,6 +58,7 @@ export const costanti = {
|
|||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
title: 'Mobilità',
|
title: 'Mobilità',
|
||||||
|
strsingolo: 'Mobilità',
|
||||||
to: '/places',
|
to: '/places',
|
||||||
icon: 'fas fa-taxi',
|
icon: 'fas fa-taxi',
|
||||||
color: 'lime-6',
|
color: 'lime-6',
|
||||||
@@ -66,6 +70,7 @@ export const costanti = {
|
|||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
title: 'Scuola',
|
title: 'Scuola',
|
||||||
|
strsingolo: 'Scuola',
|
||||||
to: '/school',
|
to: '/school',
|
||||||
icon: 'fas fa-book-open',
|
icon: 'fas fa-book-open',
|
||||||
color: 'orange-6',
|
color: 'orange-6',
|
||||||
@@ -76,6 +81,7 @@ export const costanti = {
|
|||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
title: 'Eventi',
|
title: 'Eventi',
|
||||||
|
strsingolo: 'Evento',
|
||||||
to: '/events',
|
to: '/events',
|
||||||
icon: 'event',
|
icon: 'event',
|
||||||
color: 'green-6',
|
color: 'green-6',
|
||||||
@@ -87,6 +93,7 @@ export const costanti = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
|
strsingolo: 'Luogo',
|
||||||
title: 'Luoghi',
|
title: 'Luoghi',
|
||||||
to: '/places',
|
to: '/places',
|
||||||
icon: 'fas fa-map-marker-alt',
|
icon: 'fas fa-map-marker-alt',
|
||||||
@@ -97,6 +104,7 @@ export const costanti = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
visible: true,
|
visible: true,
|
||||||
|
strsingolo: 'Idea',
|
||||||
title: 'Tue Idee',
|
title: 'Tue Idee',
|
||||||
to: '/ideas',
|
to: '/ideas',
|
||||||
icon: 'fas fa-lightbulb',
|
icon: 'fas fa-lightbulb',
|
||||||
|
|||||||
@@ -982,17 +982,6 @@ export const colmyBachecas = [
|
|||||||
sortable: false,
|
sortable: false,
|
||||||
required: true,
|
required: true,
|
||||||
}),
|
}),
|
||||||
AddCol({
|
|
||||||
name: 'adType',
|
|
||||||
label_trans: 'adTypes.name',
|
|
||||||
fieldtype: costanti.FieldType.select,
|
|
||||||
required: true,
|
|
||||||
jointable: 'adtypes',
|
|
||||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit,
|
|
||||||
icon: 'fas fa-bullhorn',
|
|
||||||
noshowlabel: true,
|
|
||||||
sortable: false,
|
|
||||||
}),
|
|
||||||
AddCol(
|
AddCol(
|
||||||
{
|
{
|
||||||
name: 'dateTimeStart',
|
name: 'dateTimeStart',
|
||||||
|
|||||||
@@ -1479,9 +1479,9 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getItemDate(num: number, day: number, mystr: string) {
|
getItemDate(num: number, day: number, numdays: number, mystr: string) {
|
||||||
let mydate = tools.addDays(tools.getDateNow(), day)
|
let mydate = tools.addDays(tools.getDateNow(), day)
|
||||||
let mydateend = tools.addDays(mydate, 7)
|
let mydateend = tools.addDays(mydate, numdays)
|
||||||
mydate = tools.getstrYYMMDDDate(mydate)
|
mydate = tools.getstrYYMMDDDate(mydate)
|
||||||
mydateend = tools.getstrYYMMDDDate(mydateend)
|
mydateend = tools.getstrYYMMDDDate(mydateend)
|
||||||
let filter = { dateTimeStart: { $gte: mydate, $lte: mydateend } }
|
let filter = { dateTimeStart: { $gte: mydate, $lte: mydateend } }
|
||||||
@@ -1495,9 +1495,9 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
|
|
||||||
let obj = {}
|
let obj = {}
|
||||||
|
|
||||||
arr.push(this.getItemDate(1, -7, 'Settimana Scorsa'))
|
arr.push(this.getItemDate(1, -30, 30, 'Eventi Passati'))
|
||||||
arr.push(this.getItemDate(2, 0, 'Da Oggi a 7 gg.'))
|
arr.push(this.getItemDate(2, 0, 14, 'Da Oggi a 2 sett.'))
|
||||||
arr.push(this.getItemDate(3, 7, 'La settimana prossima'))
|
arr.push(this.getItemDate(3, 14, 60, 'Eventi Futuri'))
|
||||||
|
|
||||||
// console.log('Days', arr)
|
// console.log('Days', arr)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user