From 7fd8cb9a65909be99dc2e3f98d0613a5dabbbaa3 Mon Sep 17 00:00:00 2001 From: Baghi330 Date: Sat, 14 Feb 2026 14:27:36 +0330 Subject: [PATCH] 11 --- .../lazy-load/data-entry/MainList.vue | 188 ++++++------------ 1 file changed, 58 insertions(+), 130 deletions(-) diff --git a/app/components/lazy-load/data-entry/MainList.vue b/app/components/lazy-load/data-entry/MainList.vue index f2a75dc..e53341f 100644 --- a/app/components/lazy-load/data-entry/MainList.vue +++ b/app/components/lazy-load/data-entry/MainList.vue @@ -40,144 +40,72 @@ const myContentSchema = computed(() => { pagination: props.pagination, }; }); -const headerTools = ref([ - [ - { - items: [ - { key: "label", label: "کد:", style: "code-title" }, - { - type: "dropdown", - key: "dropdown", - name: "refine_codes", - dropdownSchema: { - width: "18em", - modelValue: null, - optionAttribute: "title", - valueAttribute: "value", - searchable: false, - placeholder: "انتخاب کنید", - items: refineCodes, +const headerTools = computed(() => [ + { + items: [ + { + type: "dropdown", + key: "dropdown", + name: "refine_codes", + dropdownSchema: { + width: "18em", + modelValue: null, // ✅ اینو بذار + optionAttribute: "title", + valueAttribute: "value", + searchable: false, + placeholder: "انتخاب کنید", + items: refineCodes, + }, + }, + { + key: "autoComplation", + placeholder: "جستجوی ...", + debounceTime: 500, + // autocompleteUrl: "/repo/monir/complation/sanad", + minCharsForAutocomplete: 3, + maxHistoryItems: 20, + showSearchButton: false, + filters: [ + { + label: "همه اجزاء", + value: "all", }, - }, - { key: "label", label: "نوع رابطه:", style: "code-title" }, - { - type: "dropdown", - key: "dropdown", - name: "refine_codes", - dropdownSchema: { - width: "10em", - modelValue: null, - optionAttribute: "title", - valueAttribute: "value", - searchable: false, - placeholder: "انتخاب کنید", - items: [ - { - title: "تعارض", - value: "1", - }, - { - title: "تینت", - value: "2", - }, - { - title: "ییی", - value: "3", - }, - { - title: "ییی", - value: "4", - }, - ], + { + label: "عنوان جلسه", + value: "title", }, - }, - { key: "label", label: "وضعیت اعتبار:", style: "code-title" }, - { - type: "dropdown", - key: "dropdown", - name: "refine_codes", - dropdownSchema: { - width: "10em", - modelValue: null, - optionAttribute: "title", - valueAttribute: "value", - searchable: false, - placeholder: "انتخاب کنید", - placeholder: "انتخاب کنید", - items: [ - { - title: "تعارض", - value: "1", - }, - { - title: "تینت", - value: "2", - }, - { - title: "ییی", - value: "3", - }, - { - title: "ییی", - value: "4", - }, - ], + { + label: "عنوان دوره", + value: "branch", }, - }, - ], - }, - { - items: [ - { - 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", - prevDisabled: false, - nextDisabled: true, - }, - ], - }, - ], + { + label: " فقط فهرست", + value: "mindex", + }, + { + label: " فقط کدها", + value: "codes", + }, + { + label: " دوره", + value: "advance", + }, + ], + }, + { + key: "prevNext", + name: "entityNavigator", + prevDisabled: false, + nextDisabled: true, + }, + ], + }, ]); function headerToolsAction({ action, data }) { if (action == "auto-complation") { if (data.action == "complete-search") { - // console.log("data ==> ", data); + console.log("data ==> ", data); emit("my-header-tools-search", data.item); }