From d6deb5ab092b5b9235f8509f9a5d59f5da689f59 Mon Sep 17 00:00:00 2001
From: Kevser <>
Date: Tue, 22 Jul 2025 08:03:30 +0300
Subject: [PATCH] =?UTF-8?q?-=20ListTableContent=20Action=20s=C3=BCtunu=20e?=
=?UTF-8?q?klendi.=20-=20DialogStore=20id=20elle=20girilebilecek?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/global/DataTable.vue | 67 +++++++-
src/components/global/DialogItem.vue | 2 +-
src/components/global/ListTableContent.vue | 13 +-
src/components/global/dialogStore.ts | 10 +-
src/init/axios-init.ts | 3 +-
src/module/site-yonetimi/views/PopupListe.vue | 150 ++++++++++--------
.../site-yonetimi/views/SayfaListesi.vue | 48 +++++-
.../site-yonetimi/views/SliderListe.vue | 128 ++++++++-------
8 files changed, 283 insertions(+), 138 deletions(-)
diff --git a/src/components/global/DataTable.vue b/src/components/global/DataTable.vue
index fd7ef8f..45c97a0 100644
--- a/src/components/global/DataTable.vue
+++ b/src/components/global/DataTable.vue
@@ -7,12 +7,12 @@
Sıra No
-
+ |
{{ headCell.title }}
|
+
+ İşlemler
+ |
- |
- Veri bulunamadı
- |
+ Veri bulunamadı |
+ |
+
+
+
+ |
+ :isPreview="isPreview"
+ :rowActions="rowActions"
+ :actionFixed="actionFixed"
+ :rowActionStyle="rowActionStyle" />
@@ -194,6 +197,9 @@
rowNumber?: boolean
totalValues?: Record
isPreview?: boolean
+ rowActions?: Record[]
+ actionFixed?: boolean
+ rowActionStyle?:string
}
const props = withDefaults(defineProps(), {
@@ -205,7 +211,8 @@
export: true,
search: true,
rowNumber: false,
- isPreview: false
+ isPreview: false,
+ actionFixed:false
})
const emit = defineEmits([
@@ -360,7 +367,7 @@
searchForm.value = false
mobileButtons.value = !mobileButtons.value
}
- const OpenSearchForm = (e: Event) => {
+ const OpenSearchForm = (e: Event) => {
searchFieldPos.value = ''
if (globalStore.screenWidth <= globalStore.breakPoints.tabletp) {
mobileButtons.value = false
diff --git a/src/components/global/dialogStore.ts b/src/components/global/dialogStore.ts
index ab09cad..2417dc6 100644
--- a/src/components/global/dialogStore.ts
+++ b/src/components/global/dialogStore.ts
@@ -7,11 +7,13 @@ export const useDialogStore = defineStore('dialogStore', () => {
const CreateDialog = (data: Record) => {
const rnd: number = Number(Math.floor(Math.random() * 10000000000))
- dialogs[rnd] = {} as Record
- dialogs[rnd].id = rnd
- dialogs[rnd].data = data
+ const localId = data.id || rnd
+
+ dialogs[localId] = {} as Record
+ dialogs[localId].id = localId
+ dialogs[localId].data = data
}
- const CloseDialog = (id: number) => {
+ const CloseDialog = (id: number | string) => {
delete dialogs[id]
}
return {
diff --git a/src/init/axios-init.ts b/src/init/axios-init.ts
index fcbf462..3602669 100644
--- a/src/init/axios-init.ts
+++ b/src/init/axios-init.ts
@@ -2,7 +2,8 @@ import axios from 'axios'
import { useUsersStore } from '@/stores/usersStore'
import router from '@/router'
-axios.defaults.baseURL = 'https://panelapi.cekilisevi.gov.tr/'
+//axios.defaults.baseURL = 'https://panelapi.cekilisevi.gov.tr/'
+axios.defaults.baseURL = 'https://mpiapi.beyaz.net/'
//axios.defaults.timeout = 2000;
axios.defaults.headers['Content-Type'] = 'application/json; charset=utf-8'
import { useDataStore } from '@/stores/dataStore'
diff --git a/src/module/site-yonetimi/views/PopupListe.vue b/src/module/site-yonetimi/views/PopupListe.vue
index 5b0279b..70ead3a 100644
--- a/src/module/site-yonetimi/views/PopupListe.vue
+++ b/src/module/site-yonetimi/views/PopupListe.vue
@@ -1,75 +1,68 @@
-
-
+
+
+ :rowActions="rowActions"
+ :rowActionStyle="'width:10%;'" />
+ v-if="panel"
+ v-model="panel"
+ :panel-title="isUpdate ? 'Popup Düzenle' : 'Popup Ekle'">
-
-
+
+
-
-
![Seçilen Resim]()
+ v-model="panelPopup.resimUrl"
+ label="Resim Url"
+ :fileTypes="['png', 'jpg', 'jpeg']"
+ elclass="panel-documents-item"
+ fileType="img" />
+
+
-
-
- Aktif
-
-
-
+ :listData="Checker"
+ listText="label"
+ listVal="val"
+ v-model="panelPopup.durum">
+
+ Aktif
+
+
-