- Silme butonu tıklandığında silme fonksiyonu direkt çalışma sorunu
This commit is contained in:
@ -120,7 +120,7 @@
|
||||
{
|
||||
label: 'Popup Sil',
|
||||
type: 'alert',
|
||||
function: DeleteRow(data.id)
|
||||
function: () => DeleteRow(data.id)
|
||||
}
|
||||
]
|
||||
})
|
||||
@ -168,9 +168,7 @@
|
||||
panel.value = true
|
||||
}
|
||||
const updateAction = (row: any) => {
|
||||
panelPopup.value = popups.value.find((x) => x.id == row.id) || {}
|
||||
|
||||
console.log("panelPopup",panelPopup.value)
|
||||
Object.assign(panelPopup.value,row)
|
||||
panel.value = true
|
||||
isUpdate.value = true
|
||||
}
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
{
|
||||
label: 'Sil',
|
||||
type: 'alert',
|
||||
function: DeleteRow(data.id)
|
||||
function: () => DeleteRow(data.id)
|
||||
}
|
||||
]
|
||||
})
|
||||
@ -64,7 +64,7 @@
|
||||
{
|
||||
text: 'Sil',
|
||||
class: 'alert',
|
||||
action: DeleteRowPop
|
||||
action: () => DeleteRowPop
|
||||
}
|
||||
])
|
||||
|
||||
|
||||
@ -50,6 +50,9 @@
|
||||
import { useDataStore } from '@/stores/dataStore'
|
||||
import PanelWrapper from '@/components/PanelWrapper.vue'
|
||||
import { useDialogStore } from '@/components/global/dialogStore'
|
||||
import { useGlobalStore } from '@/stores/globalStore'
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
const dialogStore = useDialogStore()
|
||||
|
||||
const dataStore = useDataStore()
|
||||
@ -73,7 +76,11 @@
|
||||
{
|
||||
name: 'resimUrl',
|
||||
title: 'Resim Url',
|
||||
sort: true
|
||||
computeHtml: (v: Record<string, any>) => {
|
||||
if (v.resimUrl !== null && v.resimUrl !== undefined) {
|
||||
return globalStore.TableCellDocument(v.resimUrl)
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'url',
|
||||
@ -92,7 +99,7 @@
|
||||
{
|
||||
label: 'Slider Sil',
|
||||
type: 'alert',
|
||||
function: DeleteRow(data.id)
|
||||
function: () => DeleteRow(data.id)
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user