PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { defineComponent, onMounted, onBeforeMount, PropType, ref, toRef, watch, computed } from 'vue'
|
||||
import { useI18n } from '@src/boot/i18n'
|
||||
import type { PropType } from 'vue';
|
||||
import { defineComponent, onMounted, onBeforeMount, ref, toRef, watch, computed } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { IColGridTable, IImgGallery, ISpecialField } from 'model'
|
||||
import type { IColGridTable, IImgGallery, ISpecialField } from 'model'
|
||||
import { CMyChipList } from '../CMyChipList'
|
||||
import { CDate } from '../CDate'
|
||||
import { CDateTime } from '../CDateTime'
|
||||
@@ -16,7 +17,7 @@ import { CMyEditor } from '../CMyEditor'
|
||||
import { CGallery } from '../CGallery'
|
||||
import { CSelectImage } from '../CSelectImage'
|
||||
import { CAccomodation } from '../CAccomodation'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
import { costanti } from '@costanti'
|
||||
|
||||
|
||||
@@ -25,10 +26,10 @@ import { costanti } from '@costanti'
|
||||
// import 'vue3-tel-input/dist/vue3-tel-input.css'
|
||||
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
import MixinBase from '@/mixins/mixin-base'
|
||||
import MixinUsers from '@/mixins/mixin-users'
|
||||
import MixinBase from '@src/mixins/mixin-base'
|
||||
import MixinUsers from '@src/mixins/mixin-users'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
|
||||
@@ -330,7 +331,7 @@ export default defineComponent({
|
||||
if (true) {
|
||||
|
||||
// console.log(' CAMPO', props.field + '.' + props.subfield)
|
||||
let myval = tools.getLabelFooterByRow(myrow.value, props.field + '.' + props.subfield, props.table)
|
||||
const myval = tools.getLabelFooterByRow(myrow.value, props.field + '.' + props.subfield, props.table)
|
||||
if (myval)
|
||||
myvalue.value = myval
|
||||
// console.log(' RECORD INPUT', myrow.value)
|
||||
@@ -341,7 +342,7 @@ export default defineComponent({
|
||||
if (props.path) {
|
||||
mypath.value = props.path
|
||||
} else {
|
||||
if (col.value.hasOwnProperty('path'))
|
||||
if (tools.existProp(col.value, 'path'))
|
||||
mypath.value = col.value.path ? col.value.path : ''
|
||||
}
|
||||
|
||||
@@ -381,9 +382,9 @@ export default defineComponent({
|
||||
// console.log('addNewValue', value, col.value)
|
||||
|
||||
if (col.value.allowNewValue && col.value.jointable) {
|
||||
let myrec: any = {}
|
||||
const myrec: any = {}
|
||||
|
||||
let mylabel = fieldsTable.getLabelByTable(col.value.jointable)
|
||||
const mylabel = fieldsTable.getLabelByTable(col.value.jointable)
|
||||
myrec[mylabel] = value
|
||||
|
||||
if (col.value.filter_field && props.value_extra) {
|
||||
@@ -432,7 +433,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (subcol) {
|
||||
const arrcol = col.value.name.split('.')
|
||||
const arrcol = col.value.name.split('.')
|
||||
if (arrcol.length > 0) {
|
||||
const primo = arrcol[0]
|
||||
let sec = null
|
||||
@@ -608,7 +609,7 @@ export default defineComponent({
|
||||
if (props.tablesel) {
|
||||
if (true) {
|
||||
|
||||
let mystrcol = '_id'
|
||||
const mystrcol = '_id'
|
||||
const mycol = fieldsTable.getColByTable(props.tablesel, mystrcol);
|
||||
|
||||
if (mycol) {
|
||||
@@ -695,7 +696,7 @@ export default defineComponent({
|
||||
console.log('newVal.imagefile', newVal)
|
||||
myvalue.value = newVal
|
||||
} else if (col.value.fieldtype === costanti.FieldType.image_and_filename) {
|
||||
newVal = mypath.value + newVal
|
||||
newVal = tools.getDirUpload() + mypath.value + newVal
|
||||
console.log('newVal.imagefile', newVal)
|
||||
myvalue.value = newVal
|
||||
}
|
||||
@@ -883,9 +884,9 @@ export default defineComponent({
|
||||
function getTitleEditor(col: IColGridTable, row: any) {
|
||||
|
||||
let title = ''
|
||||
if (!!col.field_extra1) {
|
||||
if (col.field_extra1) {
|
||||
try {
|
||||
title = tools.getValue(row, col.field_extra1, col.subfield_extra1!)
|
||||
title = tools.getValue(row, col.field_extra1, col.subfield_extra1)
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user