<div :class="date.activities && date.activities.length > 0 && date.activities.some(n => n.type_id == types.id) ? 'event-data' : 'event-data-empty'"></div>
<div v-for="date in dayList">
<div class="one-item" v-for="types in activityTypes">
<div @click='sendEvent(date.filter(type => {return type.activities.some(n => n.type_id == types.id)}))'
class="event-data"
v-if="date.activities && date.activities.length > 0 && date.activities.some(n => n.type_id == types.id)">
</div>
<div class="event-data-empty" v-else=""></div>
</div>
</div
<div class="cal-header-m cal-title" v-for="types in activityTypes">
<span>{{types.name}}</span>
</div>
<div class="cal-table-m row visible-lg" v-for='date in dayList.slice(offset, offset + perPageLg)'>
<div class="day-week">
<span >
{{date.dayWeekName}}
</span>
</div>
<div class="day" :class="{
todayM: date.status ? (today == date.date) : false,
eventM: date.status ? (date.activities && date.activities.length>0) : false,
[calendar.options.className] : (date.date == selectedDay)}">
<span>{{date.status ? date.date.split('/')[2] : ' '}}</span>
</div>
<div></div>
<div class="one-item" v-for="types in activityTypes">
<div class="event-data" v-if="date.activities && date.activities.length > 0 && date.activities.every(n => n.type_id == types.id)"></div>
<div class="event-data-empty" v-else=""></div>
<div class="event-data-empty" v-if="!date.activities || date.activities.length == 0"></div>
</div>
</div>
Я предполагаю, что условие должно складываться из двух частей: совпадает тип и совпадает день. Тогда оно точно одно будет.
<div class="event-data" v-for="activity in date.activities" v-if="types.id == activity.type_id">{{types.id}}</div>
<div class="cal-header-m cal-title" v-for="types in activityTypes">
<span>{{types.name}}</span>
</div>
</div>
<div class="cal-table-m row visible-lg" v-for='date in dayList.slice(offset, offset + perPageLg)'>
<div class="day-week">
<span >
{{date.dayWeekName}}
</span>
</div>
<div class="day" :class="{
todayM: date.status ? (today == date.date) : false,
eventM: date.status ? (date.activities && date.activities.length>0) : false,
[calendar.options.className] : (date.date == selectedDay)}">
<span>{{date.status ? date.date.split('/')[2] : ' '}}</span>
</div>
<div v-for="types in activityTypes">
<div class="event-data" v-for="activity in date.activities" v-if="types.id == activity.type_id">{{types.id}}</div>
<div class="event-data-empty" v-else=""></div>
<div class="event-data-empty" v-if="!date.activities"></div>
</div>
</div>
Добавлял в разные места файла httpd.conf не помогло.
В гугле тоже не нашел...