From e148486f2dd70dd86e05972237b66f587e475665 Mon Sep 17 00:00:00 2001 From: Mehdi104797 <92753457+Mehdi104797@users.noreply.github.com> Date: Sat, 14 Feb 2026 09:29:48 +0330 Subject: [PATCH 1/6] =?UTF-8?q?pagination=20=D8=AF=D8=B1=D8=B3=D8=AA=20?= =?UTF-8?q?=DA=A9=D8=B1=D8=AF=D9=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lazy-load/data-entry/MainList.vue | 18 +++++++-------- app/pages/index.vue | 22 +++++++++++++++++++ 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/app/components/lazy-load/data-entry/MainList.vue b/app/components/lazy-load/data-entry/MainList.vue index 78baa4e..bea66f7 100644 --- a/app/components/lazy-load/data-entry/MainList.vue +++ b/app/components/lazy-load/data-entry/MainList.vue @@ -24,24 +24,20 @@ const props = defineProps({ type: Array, default: () => [], }, + pagination: { + type: Object, + default: () => {}, + }, }); const emit = defineEmits(["conflict-details"]); -const pagination = ref({ - total: 0, - page: 1, - limit: 10, -}); + const myContentSchema = computed(() => { const baseSchema = JSON.parse(JSON.stringify(myContentJson)); return { ...baseSchema, items: props.listConflicts?.hits ?? [], - pagination: { - total: props.listConflicts?.total?.value ?? 0, - page: pagination.value.page, - limit: pagination.value.limit, - }, + pagination: props.pagination, }; }); const headerTools = computed(() => [ @@ -81,6 +77,8 @@ function headerToolsAction({ action, data }) { function myContentAction({ action, payload }) { if (action === "conflict_Details") { emit("conflict-details", payload); + } else { + emit("my-content-action", { action, payload }); } } diff --git a/app/pages/index.vue b/app/pages/index.vue index a7455e4..2672dbc 100755 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -15,7 +15,9 @@ :activeTabKey="activeTabKey" :listConflicts="listConflicts" :conflictSelected="conflictSelected" + :pagination="pagination" @conflict-details="conflictDetails" + @my-content-action="myContentAction" /> @@ -131,6 +133,12 @@ const getListConflict = async (textSearch = "", filterExtended = "") => { console.log("res", res); listConflicts.value = res.hits; + pagination.value.total = res.hits.total.value; + // reactiveSampleData.value.pagination = { + // total: res.hits.total.value, + // page: pagination.value.page, + // limit: pagination.value.limit, + // }; } catch (err) { console.error("خطا در دریافت داده:", err); } @@ -144,4 +152,18 @@ onMounted(() => { getListConflict(); activeTabKey.value = headerTabs.value[0]?.id || ""; }); + +function myContentAction({ action, payload }) { + console.log("payload ==> ", payload); + console.log("action ==> ", action); + if (action === "pagination") { + const { page, limit } = payload; + pagination.value.page = page; + pagination.value.limit = limit; + console.log("pagination.value ==> ", pagination.value); + + getListConflict(); + return; + } +} From 7de449e90c33b9ab41a0a2c23f33a55a108cefd4 Mon Sep 17 00:00:00 2001 From: Mehdi104797 <92753457+Mehdi104797@users.noreply.github.com> Date: Sat, 14 Feb 2026 10:06:25 +0330 Subject: [PATCH 2/6] =?UTF-8?q?=D8=AC=D8=B3=D8=AA=D8=AC=D9=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/auto-import/AutoComplation.vue | 970 ++++++++++++++++++ .../lazy-load/data-entry/MainList.vue | 42 + app/pages/index.vue | 5 + 3 files changed, 1017 insertions(+) create mode 100644 app/components/auto-import/AutoComplation.vue diff --git a/app/components/auto-import/AutoComplation.vue b/app/components/auto-import/AutoComplation.vue new file mode 100644 index 0000000..cc65d7b --- /dev/null +++ b/app/components/auto-import/AutoComplation.vue @@ -0,0 +1,970 @@ + + + + + diff --git a/app/components/lazy-load/data-entry/MainList.vue b/app/components/lazy-load/data-entry/MainList.vue index bea66f7..e53341f 100644 --- a/app/components/lazy-load/data-entry/MainList.vue +++ b/app/components/lazy-load/data-entry/MainList.vue @@ -57,6 +57,41 @@ const headerTools = computed(() => [ items: refineCodes, }, }, + { + key: "autoComplation", + placeholder: "جستجوی ...", + debounceTime: 500, + // autocompleteUrl: "/repo/monir/complation/sanad", + minCharsForAutocomplete: 3, + maxHistoryItems: 20, + showSearchButton: false, + filters: [ + { + label: "همه اجزاء", + value: "all", + }, + { + label: "عنوان جلسه", + value: "title", + }, + { + label: "عنوان دوره", + value: "branch", + }, + { + label: " فقط فهرست", + value: "mindex", + }, + { + label: " فقط کدها", + value: "codes", + }, + { + label: " دوره", + value: "advance", + }, + ], + }, { key: "prevNext", name: "entityNavigator", @@ -68,6 +103,13 @@ const headerTools = computed(() => [ ]); function headerToolsAction({ action, data }) { + if (action == "auto-complation") { + if (data.action == "complete-search") { + console.log("data ==> ", data); + + emit("my-header-tools-search", data.item); + } + } if (action === "prev-click") { } diff --git a/app/pages/index.vue b/app/pages/index.vue index 2672dbc..9ea8349 100755 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -18,6 +18,7 @@ :pagination="pagination" @conflict-details="conflictDetails" @my-content-action="myContentAction" + @my-header-tools-search="myHeaderToolsSearch" /> @@ -166,4 +167,8 @@ function myContentAction({ action, payload }) { return; } } +function myHeaderToolsSearch(data) { + console.log("dataqqqq ==> ", data); + getListConflict(data); +} From c6c096b312b6bc4c3f6fa0c0b4ea3a6de0de24aa Mon Sep 17 00:00:00 2001 From: Baghi330 Date: Sat, 14 Feb 2026 13:06:29 +0330 Subject: [PATCH 3/6] header sidebar --- app/app.vue | 3 +- app/components/auto-import/Header.vue | 27 +-- app/components/auto-import/Sidebar.vue | 200 ++++++++++++++++----- app/json/tab-bar/data-entry/dataEntry.json | 6 - 4 files changed, 173 insertions(+), 63 deletions(-) diff --git a/app/app.vue b/app/app.vue index a5ceec9..881ae9d 100755 --- a/app/app.vue +++ b/app/app.vue @@ -1,4 +1,3 @@ -