Compare commits
4 Commits
82d71d0ede
...
bbdb5d8eca
| Author | SHA1 | Date | |
|---|---|---|---|
| bbdb5d8eca | |||
| f47a5100a2 | |||
|
|
7fd8cb9a65 | ||
|
|
32a2bb9e13 |
|
|
@ -249,10 +249,10 @@ function generateDetailsHtml(item) {
|
|||
let html = `<details class="custom-details" ${item.isOpen ? "open" : ""}>`;
|
||||
html += `<summary>`;
|
||||
if (item.tag) {
|
||||
html += `<span > ${item.tag} </span>`;
|
||||
html += `<span class="tag" > ${item.tag} </span>`;
|
||||
}
|
||||
|
||||
html += `${escapeHtml(item.title) || "بدون عنوان"}`;
|
||||
html += `${item.title || "بدون عنوان"}`;
|
||||
if (item.link_url) {
|
||||
html += `<a class="link-url" href="${item.link_url}">${item.link_label}</a>`;
|
||||
}
|
||||
|
|
@ -554,6 +554,18 @@ onBeforeUnmount(() => {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
summary.tag {
|
||||
color: blue;
|
||||
border-radius: var(--radius) var(--radius) 0 0;
|
||||
|
||||
}
|
||||
|
||||
summary.label {
|
||||
color: chocolate;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
summary {
|
||||
position: relative;
|
||||
padding: 1.25rem 1.25rem 1.25rem 3.5rem;
|
||||
|
|
@ -564,7 +576,6 @@ onBeforeUnmount(() => {
|
|||
);
|
||||
color: var(--color-primary-700);
|
||||
border-radius: var(--radius) var(--radius) 0 0;
|
||||
font-weight: 700;
|
||||
font-size: 1.1rem;
|
||||
color: var(--color-dark-primary-800);
|
||||
// cursor: pointer;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ const setDataEditor = async () => {
|
|||
node = {
|
||||
isOpen: false,
|
||||
id: item.section_mom_id,
|
||||
title: "قانون مقدم : " + item.qanon_title + " > " + item.full_path,
|
||||
title: `<span class="label">قانون مقدم : </span>` + item.qanon_title + " > " + item.full_path,
|
||||
tag: item.state_etebar,
|
||||
content: _source.content1,
|
||||
link_label: "«منبع»",
|
||||
|
|
@ -90,7 +90,7 @@ const setDataEditor = async () => {
|
|||
node = {
|
||||
isOpen: false,
|
||||
id: item.section_mom_id,
|
||||
title: "قانون موخر : " + item.qanon_title + " > " + item.full_path,
|
||||
title: `<span class="label">قانون موخر : </span>` + item.qanon_title + " > " + item.full_path,
|
||||
tag: item.state_etebar,
|
||||
content: _source.content2,
|
||||
link_label: "«منبع»",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user