Aggiunta del Bottone "Aggiungi"
This commit is contained in:
@@ -326,8 +326,6 @@ export default defineComponent({
|
||||
|
||||
const myvertical = ref(props.vertical)
|
||||
|
||||
//const myselector = inject('myselector', {})
|
||||
const myselector = computed(() => globalStore.myselector)
|
||||
|
||||
const valoriopt = computed(() => (item: any, addall: boolean, addnone: boolean) => {
|
||||
// console.log('valoriopt', item.table)
|
||||
@@ -341,9 +339,16 @@ export default defineComponent({
|
||||
return lab
|
||||
})
|
||||
|
||||
watch(() => globalStore.addNewRecord, (value: any, oldval: any) => {
|
||||
if (globalStore.addNewRecord === props.prop_mytable) {
|
||||
createNewRecordDialog()
|
||||
globalStore.addNewRecord = ''
|
||||
}
|
||||
})
|
||||
|
||||
watch(() => globalStore.myselector, (value: any, oldval: any) => {
|
||||
console.log('******* CGRIDTABLEREC : globalStore.myselector', globalStore.myselector)
|
||||
console.log(' . value', value)
|
||||
// console.log('******* CGRIDTABLEREC : globalStore.myselector', globalStore.myselector)
|
||||
// console.log(' . value', value)
|
||||
const rec = searchList.value.find((myrec) => myrec.table === globalStore.myselector.table) // check if exist
|
||||
if (rec) {
|
||||
rec.value = globalStore.myselector.data
|
||||
@@ -1854,7 +1859,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function visButtRow() {
|
||||
return props.labelBtnAddRow !== addRow.value
|
||||
return (props.labelBtnAddRow !== addRow.value) && props.labelBtnAddRow !== 'NONE'
|
||||
}
|
||||
|
||||
function checkIfShowRec(rec: any) {
|
||||
@@ -2108,7 +2113,6 @@ export default defineComponent({
|
||||
myinfscroll,
|
||||
t,
|
||||
exportTable,
|
||||
myselector,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user