diff --git a/app/components/auto-import/HeaderTools.vue b/app/components/auto-import/HeaderTools.vue index 67fb300..4ddde51 100755 --- a/app/components/auto-import/HeaderTools.vue +++ b/app/components/auto-import/HeaderTools.vue @@ -34,20 +34,12 @@ emitHandler('dropdown-setting', { data: val }) " /> -
+
{{ headItem.label }}
-
+
{{ headItem.label }}: @@ -95,7 +87,6 @@ v-else-if="headItem.key === 'icon'" class="btn p-2 rounded hover:text-primary transition-colors" :title="headItem.label" - v-tooltip="headItem.tooltip || ''" @click="emitHandler('icon-click', { data: headItem })" > -
+
@@ -286,8 +286,7 @@ function generateDetailsHtml(item) { function loadFromJson() { if (!editor.value) return; - let html = - '

'; + let html = ""; props.accordionData.forEach((item) => { html += generateDetailsHtml(item); diff --git a/app/components/lazy-load/data-entry/MainList.vue b/app/components/lazy-load/data-entry/MainList.vue index e53341f..7fbd47c 100644 --- a/app/components/lazy-load/data-entry/MainList.vue +++ b/app/components/lazy-load/data-entry/MainList.vue @@ -40,66 +40,212 @@ const myContentSchema = computed(() => { pagination: props.pagination, }; }); +// const headerTools = computed(() => [ +// { +// items: [ +// // { +// // key: "label", +// // label: "کد :", +// // tooltip: "عنوان صفحه", +// // }, +// { +// type: "dropdown", +// key: "dropdown", +// name: "refine_codes", +// dropdownSchema: { +// width: "18em", +// modelValue: null, // ✅ اینو بذار +// optionAttribute: "title", +// valueAttribute: "value", +// searchable: false, +// placeholder: "انتخاب کنید", +// items: refineCodes, +// }, +// }, +// // { +// // key: "label", +// // label: "نوع رابطه :", +// // tooltip: "عنوان صفحه", +// // }, +// { +// type: "dropdown", +// key: "dropdown", +// name: "refine_codes", +// dropdownSchema: { +// width: "18em", +// modelValue: null, // ✅ اینو بذار +// optionAttribute: "title", +// valueAttribute: "value", +// searchable: false, +// placeholder: "انتخاب کنید", +// items: [ +// { label: " تعارض مستقر", value: "stable" }, +// { label: "تعارض مشروط", value: "conditional" }, +// { label: "تکرار حکم", value: "duplicate" }, +// ], +// }, +// }, +// // { +// // key: "label", +// // label: " وضعیت اعتبار:", +// // tooltip: "عنوان صفحه", +// // }, +// { +// type: "dropdown", +// key: "dropdown", +// name: "refine_codes", +// dropdownSchema: { +// width: "18em", +// modelValue: null, // ✅ اینو بذار +// optionAttribute: "title", +// valueAttribute: "value", +// searchable: false, +// placeholder: "انتخاب کنید", +// items: [ +// { label: "نامعتبر", value: "invalid" }, +// { label: "معتبر", value: "valid" }, +// ], +// }, +// }, +// { +// 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, +// // }, +// ], +// }, +// ]); 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, + [ + { + items: [ + { + key: "label", + label: "کد: ", }, - }, - { - key: "autoComplation", - placeholder: "جستجوی ...", - debounceTime: 500, - // autocompleteUrl: "/repo/monir/complation/sanad", - minCharsForAutocomplete: 3, - maxHistoryItems: 20, - showSearchButton: false, - filters: [ - { - label: "همه اجزاء", - value: "all", + { + type: "dropdown", + key: "dropdown", + name: "refine_codes", + dropdownSchema: { + width: "18em", + modelValue: null, // ✅ اینو بذار + optionAttribute: "title", + valueAttribute: "value", + searchable: false, + placeholder: "انتخاب کنید", + items: refineCodes, }, - { - label: "عنوان جلسه", - value: "title", + }, + { + key: "label", + label: "نوع رابطه :", + }, + { + type: "dropdown", + key: "dropdown", + name: "refine_codes", + dropdownSchema: { + width: "10em", + modelValue: null, // ✅ اینو بذار + optionAttribute: "title", + valueAttribute: "value", + searchable: false, + placeholder: "انتخاب کنید", + items: [ + { label: " همه", value: "all" }, + { label: " تعارض مستقر", value: "stable" }, + { label: "تعارض مشروط", value: "conditional" }, + { label: "تکرار حکم", value: "duplicate" }, + ], }, - { - label: "عنوان دوره", - value: "branch", + }, + { + key: "label", + label: " وضعیت اعتبار:", + }, + { + type: "dropdown", + key: "dropdown", + name: "refine_codes", + dropdownSchema: { + width: "8em", + modelValue: null, // ✅ اینو بذار + optionAttribute: "title", + valueAttribute: "value", + searchable: false, + placeholder: "انتخاب کنید", + items: [ + { label: " همه", value: "all" }, + { label: "نامعتبر", value: "invalid" }, + { label: "معتبر", value: "valid" }, + ], }, - { - label: " فقط فهرست", - value: "mindex", - }, - { - label: " فقط کدها", - value: "codes", - }, - { - label: " دوره", - value: "advance", - }, - ], - }, - { - key: "prevNext", - name: "entityNavigator", - prevDisabled: false, - nextDisabled: true, - }, - ], - }, + }, + ], + }, + { + items: [ + { + key: "autoComplation", + placeholder: "جستجوی ...", + debounceTime: 500, + // autocompleteUrl: "/repo/monir/complation/sanad", + minCharsForAutocomplete: 3, + maxHistoryItems: 20, + showSearchButton: false, + filters: [ + { + label: "همه اجزاء", + value: "all", + }, + ], + }, + // { + // key: "prevNext", + // name: "entityNavigator", + // prevDisabled: false, + // nextDisabled: true, + // }, + ], + }, + ], ]); function headerToolsAction({ action, data }) {