Web Editor home made
This commit is contained in:
@@ -12,6 +12,7 @@ import MixinBase from '@/mixins/mixin-base'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CMyFieldRec',
|
||||
emits: ['save'],
|
||||
props: {
|
||||
table: {
|
||||
type: String,
|
||||
@@ -95,7 +96,12 @@ export default defineComponent({
|
||||
tupe: String,
|
||||
required: false,
|
||||
default: '',
|
||||
}
|
||||
},
|
||||
nosaveToDb: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
components: { CMyPopupEdit },
|
||||
setup(props, { emit }) {
|
||||
@@ -143,15 +149,23 @@ export default defineComponent({
|
||||
mysubkey.value = arrk[1]
|
||||
if (arrk.length > 2)
|
||||
mysubsubkey.value = arrk[2]
|
||||
else
|
||||
mykey.value = props.field
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function showandsel(row: any, col: any, newval: any, valinitial: any) {
|
||||
console.log('showandsel CMyFieldDb', row, col, newval)
|
||||
// console.log('showandsel CMyFieldDb', row, col, newval)
|
||||
emit('save', props.rec, newval)
|
||||
|
||||
if (props.nosaveToDb)
|
||||
return
|
||||
|
||||
|
||||
if (newval !== valinitial)
|
||||
setValDb($q, mykey.value, newval, props.fieldtype || col.fieldtype, false, props.table, mysubkey.value, props.id, props.indrec, mysubsubkey.value, props.specialField)
|
||||
|
||||
}
|
||||
|
||||
function withBorder() {
|
||||
|
||||
Reference in New Issue
Block a user