تغییرات
This commit is contained in:
parent
bbdb5d8eca
commit
aa659d8aa8
|
|
@ -34,20 +34,12 @@
|
||||||
emitHandler('dropdown-setting', { data: val })
|
emitHandler('dropdown-setting', { data: val })
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
<div
|
<div v-else-if="headItem.key === 'label'" class="mr-3">
|
||||||
v-else-if="headItem.key === 'label'"
|
|
||||||
class="mr-3"
|
|
||||||
v-tooltip="headItem.tooltip || ''"
|
|
||||||
>
|
|
||||||
<span class="text-primary font-medium px-3">{{
|
<span class="text-primary font-medium px-3">{{
|
||||||
headItem.label
|
headItem.label
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-else-if="headItem.key === 'text'" class="mr-3">
|
||||||
v-else-if="headItem.key === 'text'"
|
|
||||||
class="mr-3"
|
|
||||||
v-tooltip="headItem.tooltip || ''"
|
|
||||||
>
|
|
||||||
<span class="text-primary font-medium px-3"
|
<span class="text-primary font-medium px-3"
|
||||||
>{{ headItem.label }}:</span
|
>{{ headItem.label }}:</span
|
||||||
>
|
>
|
||||||
|
|
@ -95,7 +87,6 @@
|
||||||
v-else-if="headItem.key === 'icon'"
|
v-else-if="headItem.key === 'icon'"
|
||||||
class="btn p-2 rounded hover:text-primary transition-colors"
|
class="btn p-2 rounded hover:text-primary transition-colors"
|
||||||
:title="headItem.label"
|
:title="headItem.label"
|
||||||
v-tooltip="headItem.tooltip || ''"
|
|
||||||
@click="emitHandler('icon-click', { data: headItem })"
|
@click="emitHandler('icon-click', { data: headItem })"
|
||||||
>
|
>
|
||||||
<!-- <svg :class="'icon icon-' + headItem.icon">
|
<!-- <svg :class="'icon icon-' + headItem.icon">
|
||||||
|
|
@ -133,10 +124,7 @@
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-else-if="headItem.key === 'button'">
|
||||||
v-else-if="headItem.key === 'button'"
|
|
||||||
v-tooltip="headItem.tooltip || ''"
|
|
||||||
>
|
|
||||||
<button
|
<button
|
||||||
class="btn bg-primary text-white px-3 py-1 rounded hover:bg-primary-dark"
|
class="btn bg-primary text-white px-3 py-1 rounded hover:bg-primary-dark"
|
||||||
@click="
|
@click="
|
||||||
|
|
@ -146,10 +134,7 @@
|
||||||
{{ headItem.label }}
|
{{ headItem.label }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-else-if="headItem.key === 'iconButton'">
|
||||||
v-else-if="headItem.key === 'iconButton'"
|
|
||||||
v-tooltip="headItem.tooltip || ''"
|
|
||||||
>
|
|
||||||
<button
|
<button
|
||||||
class="btn flex items-center gap-1 px-2 py-1 rounded hover:text-primary"
|
class="btn flex items-center gap-1 px-2 py-1 rounded hover:text-primary"
|
||||||
@click="
|
@click="
|
||||||
|
|
@ -248,20 +233,12 @@
|
||||||
emitHandler('dropdown-setting', { data: val })
|
emitHandler('dropdown-setting', { data: val })
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
<div
|
<div v-else-if="my_item.key === 'label'" class="mr-3">
|
||||||
v-else-if="my_item.key === 'label'"
|
|
||||||
class="mr-3"
|
|
||||||
v-tooltip="my_item.tooltip || ''"
|
|
||||||
>
|
|
||||||
<span class="text-primary font-medium px-3">{{
|
<span class="text-primary font-medium px-3">{{
|
||||||
my_item.label
|
my_item.label
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-else-if="my_item.key === 'text'" class="mr-3">
|
||||||
v-else-if="my_item.key === 'text'"
|
|
||||||
class="mr-3"
|
|
||||||
v-tooltip="my_item.tooltip || ''"
|
|
||||||
>
|
|
||||||
<span class="text-primary font-medium px-3"
|
<span class="text-primary font-medium px-3"
|
||||||
>{{ my_item.label }}:</span
|
>{{ my_item.label }}:</span
|
||||||
>
|
>
|
||||||
|
|
@ -310,7 +287,6 @@
|
||||||
v-else-if="my_item.key === 'icon'"
|
v-else-if="my_item.key === 'icon'"
|
||||||
class="btn p-2 rounded hover:text-primary transition-colors"
|
class="btn p-2 rounded hover:text-primary transition-colors"
|
||||||
:title="my_item.label"
|
:title="my_item.label"
|
||||||
v-tooltip="my_item.tooltip || ''"
|
|
||||||
@click="emitHandler('icon-click', { data: my_item })"
|
@click="emitHandler('icon-click', { data: my_item })"
|
||||||
>
|
>
|
||||||
<!-- <svg :class="'icon icon-' + my_item.icon">
|
<!-- <svg :class="'icon icon-' + my_item.icon">
|
||||||
|
|
@ -343,10 +319,7 @@
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-else-if="my_item.key === 'button'">
|
||||||
v-else-if="my_item.key === 'button'"
|
|
||||||
v-tooltip="my_item.tooltip || ''"
|
|
||||||
>
|
|
||||||
<button
|
<button
|
||||||
class="btn bg-primary text-white px-3 py-1 rounded hover:bg-primary-dark"
|
class="btn bg-primary text-white px-3 py-1 rounded hover:bg-primary-dark"
|
||||||
@click="
|
@click="
|
||||||
|
|
@ -356,10 +329,7 @@
|
||||||
{{ my_item.label }}
|
{{ my_item.label }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-else-if="my_item.key === 'iconButton'">
|
||||||
v-else-if="my_item.key === 'iconButton'"
|
|
||||||
v-tooltip="my_item.tooltip || ''"
|
|
||||||
>
|
|
||||||
<button
|
<button
|
||||||
class="btn flex items-center gap-1 px-2 py-1 rounded hover:text-primary"
|
class="btn flex items-center gap-1 px-2 py-1 rounded hover:text-primary"
|
||||||
@click="
|
@click="
|
||||||
|
|
|
||||||
|
|
@ -40,66 +40,210 @@ const myContentSchema = computed(() => {
|
||||||
pagination: props.pagination,
|
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(() => [
|
const headerTools = computed(() => [
|
||||||
{
|
[
|
||||||
items: [
|
{
|
||||||
{
|
items: [
|
||||||
type: "dropdown",
|
{
|
||||||
key: "dropdown",
|
key: "label",
|
||||||
name: "refine_codes",
|
label: "کد: ",
|
||||||
dropdownSchema: {
|
|
||||||
width: "18em",
|
|
||||||
modelValue: null, // ✅ اینو بذار
|
|
||||||
optionAttribute: "title",
|
|
||||||
valueAttribute: "value",
|
|
||||||
searchable: false,
|
|
||||||
placeholder: "انتخاب کنید",
|
|
||||||
items: refineCodes,
|
|
||||||
},
|
},
|
||||||
},
|
{
|
||||||
{
|
type: "dropdown",
|
||||||
key: "autoComplation",
|
key: "dropdown",
|
||||||
placeholder: "جستجوی ...",
|
name: "refine_codes",
|
||||||
debounceTime: 500,
|
dropdownSchema: {
|
||||||
// autocompleteUrl: "/repo/monir/complation/sanad",
|
width: "18em",
|
||||||
minCharsForAutocomplete: 3,
|
modelValue: null, // ✅ اینو بذار
|
||||||
maxHistoryItems: 20,
|
optionAttribute: "title",
|
||||||
showSearchButton: false,
|
valueAttribute: "value",
|
||||||
filters: [
|
searchable: false,
|
||||||
{
|
placeholder: "انتخاب کنید",
|
||||||
label: "همه اجزاء",
|
items: refineCodes,
|
||||||
value: "all",
|
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
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: "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: "invalid" },
|
||||||
|
{ label: "معتبر", value: "valid" },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
label: " فقط فهرست",
|
],
|
||||||
value: "mindex",
|
},
|
||||||
},
|
{
|
||||||
{
|
items: [
|
||||||
label: " فقط کدها",
|
{
|
||||||
value: "codes",
|
key: "autoComplation",
|
||||||
},
|
placeholder: "جستجوی ...",
|
||||||
{
|
debounceTime: 500,
|
||||||
label: " دوره",
|
// autocompleteUrl: "/repo/monir/complation/sanad",
|
||||||
value: "advance",
|
minCharsForAutocomplete: 3,
|
||||||
},
|
maxHistoryItems: 20,
|
||||||
],
|
showSearchButton: false,
|
||||||
},
|
filters: [
|
||||||
{
|
{
|
||||||
key: "prevNext",
|
label: "همه اجزاء",
|
||||||
name: "entityNavigator",
|
value: "all",
|
||||||
prevDisabled: false,
|
},
|
||||||
nextDisabled: true,
|
],
|
||||||
},
|
},
|
||||||
],
|
// {
|
||||||
},
|
// key: "prevNext",
|
||||||
|
// name: "entityNavigator",
|
||||||
|
// prevDisabled: false,
|
||||||
|
// nextDisabled: true,
|
||||||
|
// },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
function headerToolsAction({ action, data }) {
|
function headerToolsAction({ action, data }) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user