View details project for mobile

This commit is contained in:
Paolo Arena
2019-04-25 12:08:48 +02:00
parent a7a4d224eb
commit 5992d01323
4 changed files with 40 additions and 10 deletions

View File

@@ -218,6 +218,7 @@ export default class CTodo extends Vue {
} }
} }
if (des) { if (des) {
console.log('contr', contr)
// @ts-ignore // @ts-ignore
contr.deselectAndExitEdit() contr.deselectAndExitEdit()
} }

View File

@@ -4,6 +4,11 @@ $heightBtn: 100%;
min-width: 350px; min-width: 350px;
} }
.clVista {
max-height: 400px !important;
}
.flex-container, .flex-container_col{ .flex-container, .flex-container_col{
background-color: rgb(250, 250, 250); background-color: rgb(250, 250, 250);
padding: 2px 4px 2px 4px; padding: 2px 4px 2px 4px;

View File

@@ -51,6 +51,7 @@ export default class ProjList extends Vue {
public whatisSel: number = 0 public whatisSel: number = 0
public colProgress: string = 'blue' public colProgress: string = 'blue'
public percProgress: string = 'percProgress' public percProgress: string = 'percProgress'
public readonly: boolean = false
public selectStatus: [] = tools.selectStatus[UserStore.state.lang] public selectStatus: [] = tools.selectStatus[UserStore.state.lang]
public selectPhase: [] = tools.selectPhase[UserStore.state.lang] public selectPhase: [] = tools.selectPhase[UserStore.state.lang]
@@ -98,7 +99,7 @@ export default class ProjList extends Vue {
} }
get areMyProjects() { get areMyProjects() {
console.log('this.$route.name', this.$route.name) // console.log('this.$route.name', this.$route.name)
return this.$route.name === RouteNames.myprojects return this.$route.name === RouteNames.myprojects
} }
@@ -107,7 +108,7 @@ export default class ProjList extends Vue {
} }
get readonly_PanelPrivacySel() { get readonly_PanelPrivacySel() {
return !this.CanIModifyPanelPrivacySel return !this.CanIModifyPanelPrivacySel || this.readonly
} }
get CanISeeProject() { get CanISeeProject() {
@@ -296,16 +297,27 @@ export default class ProjList extends Vue {
this.load() this.load()
} }
get isHorizontal() {
return (Screen.width < 600)
}
get myStyle(){
if (this.isHorizontal)
return 'height: 600px'
else
return ''
}
public mounted() { public mounted() {
// console.log('Screen.width', Screen.width) // console.log('Screen.width', Screen.width)
// console.log('this.$route', this.$route) // console.log('this.$route', this.$route)
if (Screen.width < 400) { // if (Screen.width < 400) {
this.splitterModel = 100 // this.splitterModel = 100
} else { // } else {
this.splitterModel = 50 // this.splitterModel = 50
} // }
this.idProjAtt = this.$route.params.idProj this.idProjAtt = this.$route.params.idProj
this.updateindexProj() this.updateindexProj()
@@ -406,6 +418,8 @@ export default class ProjList extends Vue {
this.itemselproj = Projects.getters.getRecordById(this.idsel) this.itemselproj = Projects.getters.getRecordById(this.idsel)
if ((this.itemselproj === undefined || this.itemselproj === null)) if ((this.itemselproj === undefined || this.itemselproj === null))
this.whatisSel = tools.WHAT_NOTHING this.whatisSel = tools.WHAT_NOTHING
console.log('readonly = true')
this.readonly = true
} }
public setitemsel(item: ITodo) { public setitemsel(item: ITodo) {
this.whatisSel = tools.WHAT_TODO this.whatisSel = tools.WHAT_TODO
@@ -427,7 +441,7 @@ export default class ProjList extends Vue {
public deselectAllRowstodo(item: ITodo, check, onlythis: boolean = false) { public deselectAllRowstodo(item: ITodo, check, onlythis: boolean = false) {
console.log('PROJ-LIST deselectAllRowstodo : ', item) console.log('PROJ-LIST deselectAllRowstodo : ', item)
return false // return false
// @ts-ignore // @ts-ignore
for (const i in this.$refs.ctodo.$refs.single) { for (const i in this.$refs.ctodo.$refs.single) {
@@ -457,6 +471,13 @@ export default class ProjList extends Vue {
public deselectAllRowsproj(item: IProject, check, onlythis: boolean = false) { public deselectAllRowsproj(item: IProject, check, onlythis: boolean = false) {
console.log('deselectAllRowsproj: ', item) console.log('deselectAllRowsproj: ', item)
if (!!item && check) {
// This is the new selected
console.log('readonly = false')
this.setidsel(item._id)
this.readonly = false
}
for (const i in this.$refs.singleproject) { for (const i in this.$refs.singleproject) {
const contr = this.$refs.singleproject[i] as SingleProject const contr = this.$refs.singleproject[i] as SingleProject
@@ -481,7 +502,7 @@ export default class ProjList extends Vue {
} }
public updateclasses() { public updateclasses() {
if (!!!this.itemselproj) { if (!!this.itemselproj) {
this.colProgress = tools.getProgressColor(this.itemselproj.progressCalc) this.colProgress = tools.getProgressColor(this.itemselproj.progressCalc)
} else { } else {
this.whatisSel = tools.WHAT_NOTHING this.whatisSel = tools.WHAT_NOTHING

View File

@@ -3,10 +3,13 @@
<div class="panel"> <div class="panel">
<q-splitter <q-splitter
v-model="splitterModel" v-model="splitterModel"
:horizontal="isHorizontal"
separator-class="bg-deep-orange"
:style="myStyle"
:limits="[50, 100]" :limits="[50, 100]"
> >
<template v-slot:before class="clMain"> <template v-slot:before>
<div> <div>
<!--{{idProjAtt}}--> <!--{{idProjAtt}}-->
<div class="divtitlecat clMain"> <div class="divtitlecat clMain">