- Popup listesi düzenlendi

This commit is contained in:
Kevser
2025-07-21 14:20:18 +03:00
parent 2aee11cf9a
commit 016c0b09d4
3 changed files with 27 additions and 17 deletions

View File

@ -12,7 +12,7 @@
:tableData='popups'
apiText='Popup Listesi'
apiList='Popup'
v-model:refresh='refresh'
v-model:refresh="refresh"
/>
</section>
<panel-wrapper
@ -46,7 +46,7 @@
v-model="panelPopup.durum" >
<template #checktext0>
<span>
Durum
Aktif
</span>
</template>
</form-checkbox>
@ -66,6 +66,9 @@
import router from '@/router'
import { useDataStore } from '@/stores/dataStore'
import PanelWrapper from '@/components/PanelWrapper.vue'
import { useGlobalStore } from '@/stores/globalStore'
const globalStore = useGlobalStore()
const Checker = ref([
{
label: '',
@ -88,7 +91,12 @@
},
{
name: 'resimUrl',
title: 'Resim Url'
title: 'Resim Url',
computeHtml: (v: Record<string, any>) => {
if (v.resimUrl !== null && v.resimUrl !== undefined) {
return globalStore.TableCellDocument(v.resimUrl)
}
}
},
{
name: 'url',
@ -96,7 +104,16 @@
},
{
name: 'durum',
title: 'Durum'
title: 'Durum',
computeHtml: (v: Record<string, any>): string => {
if (v.durum) {
return `<span class="back-grad back-grad-ok">
Aktif
</strong>`
} else {
return ``
}
}
}
])
const resimPreview = computed(() => {
@ -130,12 +147,6 @@
panel.value = true
isUpdate.value = true
}
const load = async () => {
const data = await dataStore.dataGet('Popup')
console.log('apidata', data)
popups.value = data
console.log(popups.value)
}
const save = async () => {
if (isUpdate.value)
@ -170,10 +181,6 @@
}
}
onMounted(() => {
load()
})
</script>
<style>
.image-preview-wrapper {