2019-01-14 22:40:30 +01:00
|
|
|
<template>
|
|
|
|
|
<q-page>
|
|
|
|
|
<div class="panel">
|
|
|
|
|
<p class="caption"></p>
|
|
|
|
|
|
2019-01-29 23:13:28 +01:00
|
|
|
<div class="divtitlecat">
|
|
|
|
|
<div class="categorytitle">{{ getCategory() }}</div>
|
|
|
|
|
</div>
|
2019-01-29 03:12:18 +01:00
|
|
|
|
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-01-27 19:09:48 +01:00
|
|
|
<div class="drag">
|
2019-01-28 13:31:41 +01:00
|
|
|
<draggable v-model="todos_arr" :options="{draggable:'.myitemdrag'}"
|
|
|
|
|
@start="onStart" @end="onEnd" class="dragArea">
|
2019-02-12 19:09:43 +01:00
|
|
|
<transition-group :name="mytypetransgroup" >
|
2019-02-01 04:10:31 +01:00
|
|
|
<div :id="getmyid(mytodo._id)" :key="mytodo._id" v-for="mytodo in todos_arr" class="myitemdrag">
|
2019-01-28 13:31:41 +01:00
|
|
|
|
|
|
|
|
<div v-if="(prior !== mytodo.priority) && !mytodo.completed" :class="getTitlePriority(mytodo.priority)">
|
|
|
|
|
<label>{{getPriorityByInd(mytodo.priority)}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="(!priorcomplet && mytodo.completed)" class="titleCompleted">
|
|
|
|
|
<label>{{$t('todo.completed')}}</label>
|
|
|
|
|
<div style="display: none">{{ priorcomplet = true }}</div>
|
2019-01-27 19:09:48 +01:00
|
|
|
</div>
|
2019-01-28 13:31:41 +01:00
|
|
|
<SingleTodo ref="single" @deleteitem="deleteitem" @eventupdate="updateitem"
|
|
|
|
|
@deselectAllRows="deselectAllRows"
|
|
|
|
|
:itemtodo='mytodo' />
|
|
|
|
|
|
|
|
|
|
<div style="display: none">{{ prior = mytodo.priority, priorcomplet = mytodo.completed }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</transition-group>
|
|
|
|
|
</draggable>
|
2019-01-27 19:09:48 +01:00
|
|
|
</div>
|
2019-01-29 00:48:04 +01:00
|
|
|
<q-input ref="insertTask" v-model="todo" inverted :float-label="$t('todo.insert')"
|
|
|
|
|
:after="[{icon: 'arrow_forward', content: true, handler () {}}]"
|
|
|
|
|
v-on:keyup.enter="insertTodo"/>
|
2019-01-14 22:40:30 +01:00
|
|
|
|
2019-02-08 17:10:25 +01:00
|
|
|
<q-input v-model="testPao" float-label="testPao"/>
|
|
|
|
|
<q-input v-model="todos_changed" float-label="todos_changed"/>
|
2019-02-04 03:09:15 +01:00
|
|
|
<q-input v-model="reload_fromServer" float-label="reload_fromServer"/>
|
2019-02-03 14:40:20 +01:00
|
|
|
|
2019-02-03 02:40:24 +01:00
|
|
|
<div class="flex-item btn-item">
|
2019-02-05 03:39:56 +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-04 03:09:15 +01:00
|
|
|
<q-btn class="mybtn" round color="" icon="list" @click="checkUpdate()"></q-btn>
|
2019-02-03 02:40:24 +01:00
|
|
|
</div>
|
|
|
|
|
|
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>
|