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] =?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); +}