2019-01-14 22:40:30 +01:00
|
|
|
<template>
|
|
|
|
|
<q-page>
|
|
|
|
|
<div class="panel">
|
2019-01-29 23:13:28 +01:00
|
|
|
<div class="divtitlecat">
|
2019-03-04 17:28:29 +01:00
|
|
|
<div class="flex-container">
|
|
|
|
|
<div class="flex-item categorytitle">{{categoryAtt | capitalize}}</div>
|
|
|
|
|
<div class="flex-item">
|
|
|
|
|
<q-btn push
|
|
|
|
|
icon="settings">
|
|
|
|
|
<q-popover id="popconfig" self="top right">
|
|
|
|
|
<q-list link separator no-border class="todo-menu">
|
|
|
|
|
<div v-for="field in menuPopupConfigTodo" :key="field.value">
|
|
|
|
|
<q-item :icon="field.icon"
|
|
|
|
|
@click.native="">
|
|
|
|
|
<q-item-side :icon="field.icon"/>
|
|
|
|
|
|
|
|
|
|
<q-item-main v-if="showTask(field.value)">
|
|
|
|
|
|
|
|
|
|
<q-select
|
|
|
|
|
radio
|
|
|
|
|
color="secondary"
|
|
|
|
|
:float-label="field.label"
|
|
|
|
|
v-model="showtype"
|
|
|
|
|
:options="listOptionShowTask"/>
|
|
|
|
|
</q-item-main>
|
|
|
|
|
<q-item-main v-else>
|
|
|
|
|
<q-item-tile label class="item-menu">{{field.label}}</q-item-tile>
|
|
|
|
|
</q-item-main>
|
|
|
|
|
</q-item>
|
|
|
|
|
</div>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-popover>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-01-29 23:13:28 +01:00
|
|
|
</div>
|
2019-01-29 03:12:18 +01:00
|
|
|
|
2019-02-20 17:54:48 +01:00
|
|
|
<q-input ref="insertTask" v-model="todotop" inverted :float-label="$t('todo.inserttop')"
|
|
|
|
|
:after="[{icon: 'arrow_forward', content: true, handler () {}}]"
|
|
|
|
|
v-on:keyup.enter="insertTodo(true)"/>
|
2019-01-14 22:40:30 +01:00
|
|
|
|
2019-01-27 21:49:10 +01:00
|
|
|
<div style="display: none">{{ prior = 0, priorcomplet = false }}</div>
|
2019-02-20 17:54:48 +01:00
|
|
|
<div>
|
2019-02-27 02:58:41 +01:00
|
|
|
<!--<q-infinite-scroll :handler="loadMoreTodo" :offset="7">-->
|
2019-03-04 17:28:29 +01:00
|
|
|
<div class="container" v-dragula="todos_dacompletare(categoryAtt)" drake="first">
|
|
|
|
|
<div :id="getmyid(mytodo._id)" :index="index"
|
|
|
|
|
v-for="(mytodo, index) in todos_dacompletare(categoryAtt)"
|
|
|
|
|
: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 }}
|
2019-02-27 02:58:41 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-03-04 17:28:29 +01:00
|
|
|
</div>
|
2019-02-27 02:58:41 +01:00
|
|
|
<!--</q-infinite-scroll>-->
|
|
|
|
|
|
|
|
|
|
<div v-if="doneTodosCount > 0" class="titleCompleted">
|
|
|
|
|
<label>{{$t('todo.completed')}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--<q-infinite-scroll :handler="loadMoreTodo" :offset="7">-->
|
2019-03-04 18:48:07 +01:00
|
|
|
<div class="container">
|
2019-03-04 17:28:29 +01:00
|
|
|
<div :id="getmyid(mytodo._id)" :index="index"
|
|
|
|
|
v-for="(mytodo, index) in todos_completati(categoryAtt)"
|
|
|
|
|
:key="mytodo._id" class="myitemdrag">
|
2019-02-27 02:58:41 +01:00
|
|
|
|
2019-03-04 17:28:29 +01:00
|
|
|
<SingleTodo ref="single" @deleteItem="mydeleteItem(mytodo._id)" @eventupdate="updateitem"
|
|
|
|
|
@deselectAllRows="deselectAllRows" @onEnd="onEnd"
|
|
|
|
|
:itemtodo='mytodo'/>
|
2019-01-28 13:31:41 +01:00
|
|
|
|
2019-03-04 17:28:29 +01:00
|
|
|
<!--<div :name="`REF${index}`" class="divdrag non-draggato"></div>-->
|
2019-02-19 18:44:48 +01:00
|
|
|
|
2019-03-04 17:28:29 +01:00
|
|
|
<div style="display: none">{{ prior = mytodo.priority, priorcomplet = mytodo.completed }}
|
2019-01-28 13:31:41 +01:00
|
|
|
</div>
|
2019-02-20 11:53:56 +01:00
|
|
|
</div>
|
2019-03-04 17:28:29 +01:00
|
|
|
</div>
|
2019-02-27 02:58:41 +01:00
|
|
|
<!--</q-infinite-scroll>-->
|
2019-01-27 19:09:48 +01:00
|
|
|
</div>
|
2019-02-16 02:01:17 +01:00
|
|
|
|
|
|
|
|
|
2019-03-04 17:28:29 +01:00
|
|
|
<q-input v-if="TodosCount > 0" ref="insertTaskBottom" v-model="todobottom" inverted
|
|
|
|
|
:float-label="$t('todo.insertbottom')"
|
2019-01-29 00:48:04 +01:00
|
|
|
:after="[{icon: 'arrow_forward', content: true, handler () {}}]"
|
2019-02-20 17:54:48 +01:00
|
|
|
v-on:keyup.enter="insertTodo(false)"/>
|
2019-01-14 22:40:30 +01:00
|
|
|
|
2019-02-27 02:58:41 +01:00
|
|
|
<br>
|
2019-02-03 14:40:20 +01:00
|
|
|
|
2019-03-04 18:48:07 +01:00
|
|
|
<!--{{ tmpstrTodos }}-->
|
|
|
|
|
|
|
|
|
|
<!--<div class="flex-item btn-item">-->
|
|
|
|
|
<!--<q-btn class="mybtn" round color="" icon="lock" @click="getArrTodos">Get Todo</q-btn>-->
|
|
|
|
|
<!--<!–<q-btn class="mybtn" round color="" icon="person" @click="setArrTodos">Set Todo</q-btn>–>-->
|
|
|
|
|
<!--<!–<q-btn class="mybtn" round color="" icon="list" @click="reload_fromServer++">Reload</q-btn>–>-->
|
2019-03-04 17:28:29 +01:00
|
|
|
<!--</div>-->
|
2019-02-14 18:38:23 +01:00
|
|
|
|
2019-03-04 18:48:07 +01:00
|
|
|
<!--
|
|
|
|
|
<!--<!–<q-input v-model="testPao" float-label="testPao"/>–>-->
|
2019-02-19 18:44:48 +01:00
|
|
|
<!--<q-input v-model="todos_changed" float-label="todos_changed"/>-->
|
2019-02-14 18:38:23 +01:00
|
|
|
|
2019-02-19 18:44:48 +01:00
|
|
|
<!--<q-input v-model="reload_fromServer" float-label="reload_fromServer"/>-->
|
2019-02-14 18:38:23 +01:00
|
|
|
|
|
|
|
|
<!--<div class="flex-item btn-item">-->
|
2019-02-22 10:23:00 +01:00
|
|
|
<!--<q-btn class="mybtn" round color="" icon="lock" @click="clicktest()"></q-btn>-->
|
|
|
|
|
<!--<q-btn class="mybtn" round color="" icon="person" @click="clicktest2()"></q-btn>-->
|
2019-02-20 17:54:48 +01:00
|
|
|
<!--<q-btn class="mybtn" round color="" icon="list" @click="checkUpdate()"></q-btn>-->
|
2019-02-14 18:38:23 +01:00
|
|
|
<!--</div>-->
|
2019-03-04 17:28:29 +01:00
|
|
|
<!--–>-->
|
|
|
|
|
|
|
|
|
|
<!--<q-btn class="mybtn" round color="" icon="lock" @click="clickaggshowtype()"></q-btn>-->
|
2019-02-27 02:58:41 +01:00
|
|
|
|
2019-02-03 02:40:24 +01:00
|
|
|
|
2019-03-04 21:15:53 +01:00
|
|
|
<!--<span style="white-space: pre;">{{ todos_vista }}</span>-->
|
2019-01-14 22:40:30 +01:00
|
|
|
</div>
|
|
|
|
|
</q-page>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" src="./todo.ts">
|
|
|
|
|
</script>
|
2019-01-16 02:26:43 +01:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './todo.scss';
|
|
|
|
|
</style>
|