From 990d31ced231ec2fa856d70883fc2722e2230fef Mon Sep 17 00:00:00 2001 From: hsafaei Date: Sat, 14 Feb 2026 19:29:21 +0330 Subject: [PATCH] 1 --- app/components/auto-import/TiptapEditor.vue | 26 ++++--- .../lazy-load/data-entry/RelationEdit.vue | 17 +++-- app/pages/login.vue | 69 ------------------- 3 files changed, 24 insertions(+), 88 deletions(-) delete mode 100755 app/pages/login.vue diff --git a/app/components/auto-import/TiptapEditor.vue b/app/components/auto-import/TiptapEditor.vue index a9f08b8..e4c64a4 100755 --- a/app/components/auto-import/TiptapEditor.vue +++ b/app/components/auto-import/TiptapEditor.vue @@ -248,19 +248,12 @@ function formatContent(content) { } function generateDetailsHtml(item) { - let html = `
`; - if(item.background) - html.replace("#bcolor#", item.background) - else - html.replace("#bcolor#", "") - - + let html = `
`; html += ``; if (item.tag) { html += ` ${item.tag} `; // console.log(" html 1 ", html); - } html += `${item.title || "بدون عنوان"}`; @@ -279,6 +272,11 @@ function generateDetailsHtml(item) { html += `
`; + if(item.background) + html = html.replaceAll("#bcolor#", item.background) + else + html = html.replaceAll("#bcolor#", "") + // console.log(" html 10 ", html); return html; } @@ -521,14 +519,14 @@ onBeforeUnmount(() => { } } -.b_color1{ - background: rgb(227, 242, 253) +.bcolor1{ + background: rgb(227, 242, 253) !important; } -.b_color2{ - background: rgb(232, 245, 233) +.bcolor2{ + background: rgb(232, 245, 233) !important; } -.b_color3{ - background: rgb(243, 229, 245) +.bcolor3{ + background: rgb(243, 229, 245) !important; } /* استایل آکاردئون‌ها */ diff --git a/app/components/lazy-load/data-entry/RelationEdit.vue b/app/components/lazy-load/data-entry/RelationEdit.vue index af4379e..bedde67 100644 --- a/app/components/lazy-load/data-entry/RelationEdit.vue +++ b/app/components/lazy-load/data-entry/RelationEdit.vue @@ -51,14 +51,15 @@ const setDataEditor = async () => { accordionItems.value = []; let node = {}; + /////----------------------------------------- if (_source.previous_info) { let item = _source.previous_info; node = { - background:"b_color1", + background:"bcolor1", isOpen: false, id: item.section_mom_id, title: - `قانون مقدم : ` + + `قانون مقدم : ` + item.qanon_title + " - " + item.full_path, @@ -96,14 +97,15 @@ const setDataEditor = async () => { }); } + /////----------------------------------------- if (_source.next_info) { let item = _source.next_info; node = { - background:"b_color2", + background:"bcolor2", isOpen: false, id: item.section_mom_id, title: - `قانون موخر : ` + + `قانون موخر : ` + item.qanon_title + " - " + item.full_path, @@ -126,7 +128,12 @@ const setDataEditor = async () => { accordionItems.value.push(node); + let unrepeat_id = {} item.rule_ids.forEach((rule_id) => { + if(unrepeat_id[rule_id]) + return + unrepeat_id[rule_id] = 1 + let content = _source.rules_content[rule_id] ?? ""; accordionItems.value.push({ isOpen: false, @@ -139,7 +146,7 @@ const setDataEditor = async () => { /////-------------وحدت موضوع---------------------- node = { - background:"b_color3", + background:"bcolor3", isOpen: true, id: 11, title: "توضیح هوشمند برای وجود وحدت موضوع بین احکام استنادی ", diff --git a/app/pages/login.vue b/app/pages/login.vue deleted file mode 100755 index e08c8ff..0000000 --- a/app/pages/login.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - -