New Gallery: create directory if doesn't exist!#120

This commit is contained in:
Paolo Arena
2019-12-28 14:30:51 +01:00
parent 05dc45a3c5
commit 8beb8162dd
6 changed files with 11 additions and 8 deletions

View File

@@ -79,7 +79,7 @@ export default class CGridTableRec extends Vue {
} }
public selItem(item, col: IColGridTable) { public selItem(item, col: IColGridTable) {
console.log('selItem', item) // console.log('selItem', item)
this.rowsel = item this.rowsel = item
this.idsel = item._id this.idsel = item._id
this.colsel = col this.colsel = col

View File

@@ -67,7 +67,7 @@ export default class CMyPopupEdit extends Vue {
public SaveValueInt(newVal, valinitial) { public SaveValueInt(newVal, valinitial) {
console.log('SaveValueInt', newVal) // console.log('SaveValueInt', newVal)
// Update value in table memory // Update value in table memory
if (this.subfield !== '') { if (this.subfield !== '') {

View File

@@ -3,7 +3,7 @@
<q-list class="rounded-borders text-primary"> <q-list class="rounded-borders text-primary">
<template v-for="(parent, index) in getmenu"> <template v-for="(parent, index) in getmenu">
<!--<div class="q-list-header">{{replaceUnderlineToSpace(index)}}</div>--> <!--<div class="q-list-header">{{replaceUnderlineToSpace(index)}}</div>-->
<div v-for="myitemmenu in static_data.routes"> <div v-for="myitemmenu in static_data.routes" v-if="myitemmenu.active">
<div v-if="!!myitemmenu.routes2 && myitemmenu.inmenu && tools.visumenu(myitemmenu)"> <div v-if="!!myitemmenu.routes2 && myitemmenu.inmenu && tools.visumenu(myitemmenu)">
<q-expansion-item <q-expansion-item
:header-inset-level="myitemmenu.level_parent" :header-inset-level="myitemmenu.level_parent"

View File

@@ -170,6 +170,7 @@ export interface IMenuList {
} }
export interface IListRoutes { export interface IListRoutes {
active?: boolean
path: string path: string
name: string name: string
materialIcon?: string materialIcon?: string

View File

@@ -705,7 +705,7 @@ namespace Actions {
} }
async function saveFieldValue(context, mydata: IDataPass) { async function saveFieldValue(context, mydata: IDataPass) {
console.log('saveFieldValue', mydata) // console.log('saveFieldValue', mydata)
return await Api.SendReq(`/chval`, 'PATCH', { data: mydata }) return await Api.SendReq(`/chval`, 'PATCH', { data: mydata })
.then((res) => { .then((res) => {
@@ -830,6 +830,7 @@ namespace Actions {
for (const page of state.mypage) { for (const page of state.mypage) {
if (page.active) { if (page.active) {
arrpagesroute.push({ arrpagesroute.push({
active: true,
path: '/' + page.path, path: '/' + page.path,
name: undefined, name: undefined,
text: page.title, text: page.title,
@@ -844,6 +845,7 @@ namespace Actions {
} }
const last = { const last = {
active: true,
path: '*', path: '*',
materialIcon: 'fas fa-calendar-plus', materialIcon: 'fas fa-calendar-plus',
name: 'otherpages.error404def', name: 'otherpages.error404def',

View File

@@ -371,11 +371,9 @@ export const fieldsTable = {
return '' return ''
}, },
// IColGridTable // IColGridTable
colTableUsers: [ colTableUsers: [
// AddCol({ name: '_id', label_trans: 'reg.id' }),
AddCol({ name: 'username', label_trans: 'reg.username' }), AddCol({ name: 'username', label_trans: 'reg.username' }),
AddCol({ name: 'name', label_trans: 'reg.name' }), AddCol({ name: 'name', label_trans: 'reg.name' }),
AddCol({ name: 'surname', label_trans: 'reg.surname' }), AddCol({ name: 'surname', label_trans: 'reg.surname' }),
@@ -383,8 +381,10 @@ export const fieldsTable = {
AddCol({ name: 'cell', label_trans: 'reg.cell' }), AddCol({ name: 'cell', label_trans: 'reg.cell' }),
AddCol({ name: 'profile.img', field: 'profile', subfield: 'img', label_trans: 'reg.img', sortable: false }), AddCol({ name: 'profile.img', field: 'profile', subfield: 'img', label_trans: 'reg.img', sortable: false }),
AddCol({ name: 'date_reg', label_trans: 'reg.date_reg', fieldtype: tools.FieldType.date }), AddCol({ name: 'date_reg', label_trans: 'reg.date_reg', fieldtype: tools.FieldType.date }),
// AddCol({ name: 'idapp', label_trans: 'reg.idapp', fieldtype: tools.FieldType.string }),
AddCol({ name: 'perm', label_trans: 'reg.perm', fieldtype: tools.FieldType.binary, jointable: 'permissions' }), AddCol({ name: 'perm', label_trans: 'reg.perm', fieldtype: tools.FieldType.binary, jointable: 'permissions' }),
AddCol(DeleteRec) AddCol(DeleteRec),
AddCol(DuplicateRec)
], ],
tablesList: [ tablesList: [