2019-03-21 20:43:15 +01:00
|
|
|
<template>
|
|
|
|
|
<q-page>
|
|
|
|
|
<div class="panel">
|
|
|
|
|
<div class="divtitlecat">
|
|
|
|
|
<div class="flex-container">
|
|
|
|
|
<div class="flex-item categorytitle">{{categoryAtt | capitalize}}</div>
|
|
|
|
|
<div class="flex-item">
|
|
|
|
|
<q-btn push
|
|
|
|
|
icon="settings">
|
|
|
|
|
<q-menu id="popconfig" self="top right">
|
|
|
|
|
<q-list link separator no-border class="todo-menu">
|
|
|
|
|
<q-item clickable v-for="field in menuPopupConfigTodo" :key="field.value">
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon :name="field.icon"/>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
|
|
|
|
|
<q-item-section>{{field.label}}</q-item-section>
|
|
|
|
|
|
|
|
|
|
<q-item-section side v-if="showTask(field.value)">
|
|
|
|
|
<q-item-section side>
|
|
|
|
|
<q-icon name="keyboard_arrow_right"/>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
|
|
|
|
|
<q-menu auto-close anchor="bottom middle" self="top middle">
|
|
|
|
|
<q-list dense>
|
|
|
|
|
<q-item side :icon="field.icon">
|
|
|
|
|
|
|
|
|
|
<q-item-section>
|
|
|
|
|
<q-list dense>
|
|
|
|
|
<q-item clickable v-ripple
|
|
|
|
|
v-for="opt in listOptionShowTask"
|
|
|
|
|
:key="opt.value"
|
|
|
|
|
@click="showtype = opt.value">
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon :name="opt.icon" inverted
|
|
|
|
|
color="primary"/>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
|
|
|
|
{{opt.label}}
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="display: none">{{ prior = 0, priorcomplet = false }}</div>
|
|
|
|
|
<div>
|
|
|
|
|
<!--<q-infinite-scroll :handler="loadMoreTodo" :offset="7">-->
|
2019-03-22 18:49:38 +01:00
|
|
|
<div class="container" v-dragula="proj_dacompletare(categoryAtt)" drake="second">
|
2019-03-21 20:43:15 +01:00
|
|
|
<div :id="getmyid(mytodo._id)" :index="index"
|
2019-03-22 18:49:38 +01:00
|
|
|
v-for="(mytodo, index) in proj_dacompletare(categoryAtt)"
|
2019-03-21 20:43:15 +01:00
|
|
|
:key="mytodo._id" class="myitemdrag">
|
|
|
|
|
|
|
|
|
|
<div v-if="(prior !== mytodo.priority) && !mytodo.completed"
|
|
|
|
|
:class="getTitlePriority(mytodo.priority)">
|
|
|
|
|
<label>{{getPriorityByInd(mytodo.priority)}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
<SingleTodo ref="single" @deleteItem="mydeleteItem(mytodo._id)" @eventupdate="updateitem"
|
|
|
|
|
@deselectAllRows="deselectAllRows" @onEnd="onEnd"
|
|
|
|
|
:itemtodo='mytodo'/>
|
|
|
|
|
|
|
|
|
|
<!--<div :name="`REF${index}`" class="divdrag non-draggato"></div>-->
|
|
|
|
|
|
|
|
|
|
<div style="display: none">{{ prior = mytodo.priority, priorcomplet = mytodo.completed }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--</q-infinite-scroll>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<q-input v-if="TodosCount > 0" ref="insertTaskBottom" v-model="todobottom"
|
|
|
|
|
style="margin-left: 6px;"
|
|
|
|
|
color="blue-12"
|
|
|
|
|
:label="$t('todo.insertbottom')"
|
|
|
|
|
:after="[{icon: 'arrow_forward', content: true, handler () {}}]"
|
|
|
|
|
v-on:keyup.enter="insertTodo(false)"/>
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</q-page>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" src="./proj-list.ts">
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
2019-03-22 15:32:32 +01:00
|
|
|
@import './proj-list';
|
2019-03-21 20:43:15 +01:00
|
|
|
</style>
|