Merge branch 'Baghi/conflict' of https://git2.tavasi.ir/Baghi/conflict-nuxt-4 into main

This commit is contained in:
hsafaei 2026-02-14 14:28:31 +03:30
commit bbdb5d8eca

View File

@ -40,18 +40,16 @@ const myContentSchema = computed(() => {
pagination: props.pagination,
};
});
const headerTools = ref([
[
const headerTools = computed(() => [
{
items: [
{ key: "label", label: "کد:", style: "code-title" },
{
type: "dropdown",
key: "dropdown",
name: "refine_codes",
dropdownSchema: {
width: "18em",
modelValue: null,
modelValue: null, // اینو بذار
optionAttribute: "title",
valueAttribute: "value",
searchable: false,
@ -59,75 +57,6 @@ const headerTools = ref([
items: refineCodes,
},
},
{ 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",
},
],
},
},
{ 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",
},
],
},
},
],
},
{
items: [
{
key: "autoComplation",
placeholder: "جستجوی ...",
@ -171,13 +100,12 @@ const headerTools = ref([
},
],
},
],
]);
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);
}