ver 1.0.19

This commit is contained in:
Surya Paolo
2023-11-03 12:49:17 +01:00
parent cb11903707
commit a071d17410
28 changed files with 144 additions and 103 deletions

View File

@@ -312,6 +312,8 @@ export default defineComponent({
const addRow = ref('Aggiungi')
const actmonth = ref('')
const drawmonth = ref(true)
const newRecordBool = ref(false)
const newRecordBoolOld = ref(false)
@@ -331,6 +333,9 @@ export default defineComponent({
const showSpin = ref(false)
const showNotification = ref(false)
// const withdate = computed(() => shared_consts.TABLES_WITH_DATE.includes(tablesel.value))
const withdate = ref(false)
const loading = ref(false)
const alreadymounting = ref(false)
const editOn = computed({
@@ -2274,6 +2279,21 @@ export default defineComponent({
}
}
function setShowMonth(row: any, index: number) {
if (actmonth.value !== tools.getstrMonth(row.dateTimeStart)) {
actmonth.value = tools.getstrMonth(row.dateTimeStart)
drawmonth.value = true
} else {
drawmonth.value = false
}
return drawmonth.value
}
function ifShowMonth() {
return drawmonth.value
}
/*function showNotification() {
$router.push('/notifs')
} */
@@ -2386,6 +2406,9 @@ export default defineComponent({
getNumRecFromQuery,
actmonth,
alreadymounting,
withdate,
setShowMonth,
ifShowMonth,
}
}
})

View File

@@ -385,7 +385,7 @@
</div>
</div>
<div v-for="(row, index) in serverData" :key="index">
<div v-for="(row, indexrow) in serverData" :key="indexrow">
<div
v-if="
showType === costanti.SHOW_MYCARD ||
@@ -395,19 +395,10 @@
shared_consts.TABLES_VISU_CMYSRECCARD.includes(tablesel))
"
>
<div v-if="row && shared_consts.TABLES_WITH_DATE.includes(tablesel)">
<div
v-if="
actmonth !== tools.getstrMonth(row.dateTimeStart) ||
!actmonth ||
index === 0
"
>
<span style="display: none">{{
(actmonth = tools.getstrMonth(row.dateTimeStart))
}}</span>
<div class="">
<div>
<div v-if="row && withdate">
<div v-if="setShowMonth(row, indexrow)">
<div>
<div v-if="row.dateTimeStart">
<strong>{{ tools.getstrMonth(row.dateTimeStart) }}</strong>
</div>
<div>
@@ -415,25 +406,6 @@
</div>
</div>
</div>
<div
v-if="
false &&
((row.dateTimeStart &&
tools.getstrVeryShortDate(row.dateTimeStart) !== actual) ||
index === 0)
"
class="actualdate"
>
<span style="display: none">{{
(actual = tools.getstrVeryShortDate(row.dateTimeStart))
}}</span>
<q-chip
class="text-center shadow-5 glossy bg-orange"
icon="fas fa-calendar-day"
>{{ tools.getstrDateLong(row.dateTimeStart) }}</q-chip
>
</div>
</div>
<CMyRecGrpCard
@@ -1126,7 +1098,7 @@
</template>
</q-table>
<q-page-sticky
<!--<q-page-sticky
v-if="mytable && butt_modif_new && !hidetitleIfEmpty"
position="bottom-right"
:offset="[18, 68]"
@@ -1139,7 +1111,7 @@
color="primary"
@click="createNewRecordDialog"
/>
</q-page-sticky>
</q-page-sticky>-->
<q-dialog
v-model="visupagedialog"