View details project for mobile

This commit is contained in:
Paolo Arena
2019-04-26 12:07:38 +02:00
parent 5992d01323
commit d2cae3cc32
6 changed files with 17 additions and 10 deletions

View File

@@ -199,7 +199,7 @@ export default class CTodo extends Vue {
} }
public deselectAllRowstodo(item: ITodo, check, onlythis: boolean = false) { public deselectAllRowstodo(item: ITodo, check, onlythis: boolean = false) {
console.log('CTODO deselectAllRowstodo : ', item) // console.log('CTODO deselectAllRowstodo : ', item)
for (let i = 0; i < this.$refs.single.length; i++) { for (let i = 0; i < this.$refs.single.length; i++) {

View File

@@ -101,7 +101,7 @@ export const routesList: IMyRouteConfig[] = [
name: RouteNames.projects, name: RouteNames.projects,
component: () => import('@/views/projects/proj-list/proj-list.vue'), component: () => import('@/views/projects/proj-list/proj-list.vue'),
meta: { meta: {
requiresAuth: true, requiresAuth: false,
async asyncData() { async asyncData() {
await Projects.actions.dbLoad({ checkPending: false, onlyiffirsttime: true }) await Projects.actions.dbLoad({ checkPending: false, onlyiffirsttime: true })
} }

View File

@@ -173,7 +173,7 @@ export namespace ApiTool {
link += '/' + rec._id link += '/' + rec._id
} }
// console.log('----------------------- LEGGO QUALCOSA ', link) console.log('----------------------- LEGGO QUALCOSA ', link)
// Insert/Delete/Update table to the server // Insert/Delete/Update table to the server
return SendReq(link, method, rec) return SendReq(link, method, rec)

View File

@@ -324,6 +324,9 @@ namespace Actions {
objproj.id_parent = myobj.id_parent objproj.id_parent = myobj.id_parent
objproj.id_main_project = myobj.id_main_project objproj.id_main_project = myobj.id_main_project
objproj.typeproj = myobj.typeproj objproj.typeproj = myobj.typeproj
objproj.privacyread = myobj.privacyread
objproj.privacywrite = myobj.privacywrite
objproj.actualphase = myobj.actualphase
let elemtochange: IProject = null let elemtochange: IProject = null

View File

@@ -386,13 +386,17 @@ export default class ProjList extends Vue {
// const descr = this.$t('project.newproj').toString() // const descr = this.$t('project.newproj').toString()
public async addProject(descr) { public async addProject(descr) {
const projatt = Projects.getters.getRecordById(this.idProjAtt)
const myobj: IProject = { const myobj: IProject = {
descr, descr,
id_parent: this.idProjAtt id_parent: this.idProjAtt,
privacyread: projatt.privacyread,
privacywrite: projatt.privacywrite,
actualphase: projatt.actualphase
} }
if (this.itemproj === undefined) if (this.itemproj === undefined)
this.itemproj = Projects.getters.getRecordById(this.idProjAtt) this.itemproj = projatt
if (this.isRootProject) { if (this.isRootProject) {
myobj.typeproj = TypeProj.TYPE_PROJECT myobj.typeproj = TypeProj.TYPE_PROJECT
@@ -409,6 +413,7 @@ export default class ProjList extends Vue {
return return
} }
console.log('Nuovo PROJ', myobj)
return await Projects.actions.dbInsert({ myobj, atfirst: false }) return await Projects.actions.dbInsert({ myobj, atfirst: false })
} }
@@ -418,7 +423,7 @@ 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') // console.log('readonly = true')
this.readonly = true this.readonly = true
} }
public setitemsel(item: ITodo) { public setitemsel(item: ITodo) {
@@ -439,7 +444,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
@@ -469,11 +474,11 @@ 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) { if (!!item && check) {
// This is the new selected // This is the new selected
console.log('readonly = false') // console.log('readonly = false')
this.setidsel(item._id) this.setidsel(item._id)
this.readonly = false this.readonly = false
} }

View File

@@ -4,7 +4,6 @@
<q-splitter <q-splitter
v-model="splitterModel" v-model="splitterModel"
:horizontal="isHorizontal" :horizontal="isHorizontal"
separator-class="bg-deep-orange"
:style="myStyle" :style="myStyle"
:limits="[50, 100]" :limits="[50, 100]"
> >