Updated riso.app with Site Configuration Parameter
This commit is contained in:
@@ -203,8 +203,10 @@ export default defineComponent({
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
components: { CMyChipList, CDateTime, CDate, CMyToggleList, CMySelect, CMyEditor, CGallery,
|
||||
CCurrencyValue, CLabel, CAccomodation, CSelectImage },
|
||||
components: {
|
||||
CMyChipList, CDateTime, CDate, CMyToggleList, CMySelect, CMyEditor, CGallery,
|
||||
CCurrencyValue, CLabel, CAccomodation, CSelectImage
|
||||
},
|
||||
setup(props, { emit }) {
|
||||
const $q = useQuasar()
|
||||
const { t } = useI18n()
|
||||
@@ -244,10 +246,10 @@ export default defineComponent({
|
||||
|
||||
const myrow = ref(<any>null)
|
||||
|
||||
/* const myrow = computed(() => {
|
||||
return props.rec && props.isrec ? props.rec : props.row
|
||||
})
|
||||
*/
|
||||
/* const myrow = computed(() => {
|
||||
return props.rec && props.isrec ? props.rec : props.row
|
||||
})
|
||||
*/
|
||||
function crea() {
|
||||
// console.log('crea', isFieldDb(), 'props.mycol', props.mycol)
|
||||
|
||||
@@ -398,7 +400,7 @@ export default defineComponent({
|
||||
|
||||
function mounted() {
|
||||
|
||||
myrow.value = props.rec && props.isrec ? {...props.rec} : {...props.row}
|
||||
myrow.value = props.rec && props.isrec ? { ...props.rec } : { ...props.row }
|
||||
|
||||
try {
|
||||
|
||||
@@ -496,6 +498,20 @@ export default defineComponent({
|
||||
|
||||
console.log('SaveValueInt', newVal, valinitial)
|
||||
|
||||
if (props.tablesel) {
|
||||
if (true) {
|
||||
|
||||
let mystrcol = '_id'
|
||||
const mycol = fieldsTable.getColByTable(props.tablesel, mystrcol);
|
||||
|
||||
if (mycol) {
|
||||
if (newVal)
|
||||
newVal = newVal[mystrcol]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (isFieldDb()) {
|
||||
savefield(newVal, valinitial, $q)
|
||||
} else {
|
||||
@@ -515,11 +531,12 @@ export default defineComponent({
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
emit('save', newVal, valinitial)
|
||||
}
|
||||
|
||||
|
||||
function savefield(value: any, initialval: any, myq: any) {
|
||||
if (!props.insertMode) {
|
||||
myvalue.value = value
|
||||
@@ -694,7 +711,7 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
function selectcountry({ name, iso2, dialCode }: {name: string, iso2: string, dialCode: string}) {
|
||||
function selectcountry({ name, iso2, dialCode }: { name: string, iso2: string, dialCode: string }) {
|
||||
// console.log(name, iso2, dialCode)
|
||||
myvalueprec.value = myvalue.value
|
||||
myvalue.value = iso2
|
||||
|
||||
Reference in New Issue
Block a user