"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:
@@ -28,6 +28,11 @@ export default defineComponent({
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true,
|
||||
},
|
||||
ind: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: -1,
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -54,6 +59,8 @@ export default defineComponent({
|
||||
const col_footer = ref('idCity')
|
||||
const col_tabfooter = ref('mycities')
|
||||
|
||||
const strextra = ref('')
|
||||
|
||||
|
||||
const col = ref(<IColGridTable>{})
|
||||
|
||||
@@ -97,7 +104,7 @@ export default defineComponent({
|
||||
|
||||
const mypagination = computed(() => {
|
||||
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 }
|
||||
})
|
||||
@@ -170,6 +177,10 @@ export default defineComponent({
|
||||
|
||||
let obj = tools.getParamsByTable(props.table)
|
||||
|
||||
if (props.ind >= 0) {
|
||||
strextra.value = costanti.MAINCARDS[props.ind].strsingolo!
|
||||
}
|
||||
|
||||
col.value = fieldsTable.getArrColsByTable(props.table)
|
||||
|
||||
prop_colkey.value = obj.prop_colkey
|
||||
@@ -434,22 +445,11 @@ export default defineComponent({
|
||||
// param1: shared_consts.PARAM_SHOW_PROVINCE,
|
||||
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',
|
||||
table: 'caldate',
|
||||
key: 'dateTimeStart',
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'datetimestart', costanti.FILTER_TUTTI),
|
||||
value: 2,
|
||||
arrvalue: [],
|
||||
type: costanti.FieldType.select,
|
||||
addall: true,
|
||||
@@ -1026,6 +1026,7 @@ export default defineComponent({
|
||||
showType,
|
||||
visuType,
|
||||
hint,
|
||||
strextra,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
glossy
|
||||
toggle-color="primary"
|
||||
:options="[
|
||||
{label: 'Tutti', value: tools.FILTER_ALL},
|
||||
{label: 'Personali', value: tools.FILTER_MYREC},
|
||||
{label: '🌎 Tutti', value: tools.FILTER_ALL},
|
||||
{label: '👤 Personali', value: tools.FILTER_MYREC},
|
||||
// {label: 'Seguo', value: tools.FILTER_MYFOLLOW},
|
||||
]"
|
||||
/>
|
||||
@@ -43,6 +43,7 @@
|
||||
:nodataLabel="noMsgRecord"
|
||||
:prop_search="true"
|
||||
:finder="true"
|
||||
:labelBtnAddExtra="`Aggiungi ${strextra}`"
|
||||
:choose_visutype="visuType"
|
||||
:butt_modif_new="true"
|
||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato"
|
||||
|
||||
@@ -121,6 +121,11 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: 'Aggiungi',
|
||||
},
|
||||
labelBtnAddExtra: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'Aggiungi',
|
||||
},
|
||||
noresultLabel: {
|
||||
type: String,
|
||||
required: false,
|
||||
|
||||
@@ -22,12 +22,11 @@
|
||||
</q-btn>
|
||||
<q-btn
|
||||
v-if="mytable" rounded size="md" color="primary"
|
||||
class="centermydiv"
|
||||
label="Aggiungi"
|
||||
class="centermydiv q-mb-sm"
|
||||
:label="labelBtnAddExtra"
|
||||
:disable="loading"
|
||||
icon="fas fa-plus"
|
||||
@click="createNewRecord">
|
||||
|
||||
</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<q-item-section v-if="(shared_consts.TABLES_VISU_IMG.includes(table)) && (myrec.photos.length > 0)" avatar
|
||||
@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) }}
|
||||
<q-icon :name="fieldsTable.getIconByAdType(myrec.adType)" color="white"
|
||||
class="q-ml-xs"/>
|
||||
@@ -18,7 +18,7 @@
|
||||
</q-item-section>
|
||||
<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) }}
|
||||
<q-icon :name="fieldsTable.getIconByAdType(myrec.adType)" color="white"
|
||||
class="q-ml-xs"/>
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useRouter } from 'vue-router'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { Footer, Logo } from "@components"
|
||||
import { Footer, Logo } from '@components'
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { computed, defineComponent, onMounted, PropType, ref } from 'vue'
|
||||
import { costanti } from '@costanti'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CTitlePage',
|
||||
@@ -36,7 +37,7 @@ export default defineComponent({
|
||||
} else {
|
||||
mytitle.value = costanti.MAINCARDS[props.ind].title
|
||||
myicon.value = costanti.MAINCARDS[props.ind].icon
|
||||
mycolor.value = costanti.MAINCARDS[props.ind].color
|
||||
mycolor.value = tools.colourNameToHex(costanti.MAINCARDS[props.ind].color)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user