2019-03-28 12:58:34 +01:00
|
|
|
<template>
|
2019-03-31 14:27:27 +02:00
|
|
|
<div :class="getClassRow()" @click="clickProject" >
|
2019-03-30 02:57:40 +01:00
|
|
|
|
|
|
|
|
<q-btn class="flex-item donotdrag " size="sm" push color="primary" round icon="arrow_forward"
|
2019-04-06 21:02:33 +02:00
|
|
|
:to="getrouteto"/>
|
2019-03-28 12:58:34 +01:00
|
|
|
|
|
|
|
|
<div class="flex-item donotdrag divdescrTot">
|
2019-03-30 02:57:40 +01:00
|
|
|
<q-input v-if="(sel && inEdit)" hide-underline type="textarea" ref="inputdescr"
|
2019-03-28 12:58:34 +01:00
|
|
|
v-model.trim="precDescr"
|
|
|
|
|
autogrow
|
|
|
|
|
borderless
|
2019-04-02 00:18:01 +02:00
|
|
|
:label="getlabeltext"
|
2019-03-28 12:58:34 +01:00
|
|
|
dense
|
2019-04-02 00:18:01 +02:00
|
|
|
@focus="getFocus($event)"
|
2019-03-28 12:58:34 +01:00
|
|
|
:class="classDescrEdit" :max-height="100"
|
|
|
|
|
@keydown="keyDownArea" v-on:keydown.esc="exitEdit" @blur="exitEdit(true)" @click="editProject()"/>
|
|
|
|
|
|
|
|
|
|
<div v-else :class="classDescr"
|
|
|
|
|
@keydown="keyDownRow">{{itemproject.descr}}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div v-if="isProject()" class="flex-item progress-item shadow-1">
|
|
|
|
|
<q-linear-progress
|
|
|
|
|
stripe
|
|
|
|
|
rounded
|
|
|
|
|
:value="percentageProgress / 100"
|
|
|
|
|
class="progrbar-item"
|
|
|
|
|
:color="colProgress"
|
|
|
|
|
>
|
|
|
|
|
</q-linear-progress>
|
|
|
|
|
<div :class="percProgress">
|
|
|
|
|
{{percentageProgress}}%
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="itemproject.enableExpiring" :class="classExpiring">
|
2019-04-05 16:16:29 +02:00
|
|
|
<CDate :mydate="itemproject.expiring_at" @input="itemproject.expiring_at = new Date(arguments[0])"
|
|
|
|
|
data_class="data_string">
|
|
|
|
|
</CDate>
|
2019-03-28 12:58:34 +01:00
|
|
|
</div>
|
|
|
|
|
<div v-if="isProject()" class="flex-item pos-item " @mousedown="clickRiga">
|
|
|
|
|
<q-btn flat
|
|
|
|
|
:class="clButtPopover"
|
|
|
|
|
icon="menu">
|
|
|
|
|
<q-menu ref="popmenu" self="top right">
|
|
|
|
|
<SubMenusProj :menuPopupProj="menuPopupProj" :itemproject="itemproject" @clickMenu="clickMenu"
|
|
|
|
|
@setPriority="setPriority"></SubMenusProj>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
|
|
|
|
|
2019-04-05 16:16:29 +02:00
|
|
|
</div>
|
2019-03-28 12:58:34 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./SingleProject.ts">
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './SingleProject.scss';
|
|
|
|
|
</style>
|