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