Compare commits

..

No commits in common. "b09ead1f12f8894fc6003e4a90e619545e04a07e" and "163da9f58923f73d43eae60e7efeb75707cd3686" have entirely different histories.

2 changed files with 15 additions and 50 deletions

View File

@ -248,14 +248,7 @@ function formatContent(content) {
} }
function generateDetailsHtml(item) { function generateDetailsHtml(item) {
let html = `<details class="custom-details #bcolor# " ${item.isOpen ? "open" : ""}>`; let html = `<details class="custom-details" ${item.isOpen ? "open" : ""}>`;
if(item.background)
html.replace("#bcolor#", item.background)
else
html.replace("#bcolor#", "")
html += `<summary>`; html += `<summary>`;
if (item.tag) { if (item.tag) {
html += `<a class="tag" target="normal" @click.stop="true" > ${item.tag} </a>`; html += `<a class="tag" target="normal" @click.stop="true" > ${item.tag} </a>`;
@ -521,16 +514,6 @@ onBeforeUnmount(() => {
} }
} }
.b_color1{
background: rgb(227, 242, 253)
}
.b_color2{
background: rgb(232, 245, 233)
}
.b_color3{
background: rgb(243, 229, 245)
}
/* استایل آکاردئون‌ها */ /* استایل آکاردئون‌ها */
.custom-details { .custom-details {
position: relative; position: relative;

View File

@ -54,14 +54,9 @@ const setDataEditor = async () => {
if (_source.previous_info) { if (_source.previous_info) {
let item = _source.previous_info; let item = _source.previous_info;
node = { node = {
background:"b_color1",
isOpen: false, isOpen: false,
id: item.section_mom_id, id: item.section_mom_id,
title: title: `<a class="label" href="#">قانون مقدم : </a>` + item.qanon_title + " - " + item.full_path,
`<a class="label" href="#">قانون مقدم : </a>` +
item.qanon_title +
" - " +
item.full_path,
tag: item.state_etebar, tag: item.state_etebar,
content: _source.content1, content: _source.content1,
link_label: "«منبع»", link_label: "«منبع»",
@ -71,7 +66,6 @@ const setDataEditor = async () => {
children: [], children: [],
}; };
if (item.group_section_ids?.length > 1)
node["children"].push({ node["children"].push({
isOpen: false, isOpen: false,
id: item.context_id, id: item.context_id,
@ -81,11 +75,7 @@ const setDataEditor = async () => {
accordionItems.value.push(node); accordionItems.value.push(node);
let unrepeat_id = {}
item.rule_ids.forEach((rule_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] ?? ""; let content = _source.rules_content[rule_id] ?? "";
accordionItems.value.push({ accordionItems.value.push({
isOpen: false, isOpen: false,
@ -99,14 +89,9 @@ const setDataEditor = async () => {
if (_source.next_info) { if (_source.next_info) {
let item = _source.next_info; let item = _source.next_info;
node = { node = {
background:"b_color2",
isOpen: false, isOpen: false,
id: item.section_mom_id, id: item.section_mom_id,
title: title: `<a class="label">قانون موخر : </a>` + item.qanon_title + " - " + item.full_path,
`<a class="label">قانون موخر : </a>` +
item.qanon_title +
" - " +
item.full_path,
tag: item.state_etebar, tag: item.state_etebar,
content: _source.content2, content: _source.content2,
link_label: "«منبع»", link_label: "«منبع»",
@ -115,8 +100,6 @@ const setDataEditor = async () => {
.replace("{{section_id}}", item.section_mom_id), .replace("{{section_id}}", item.section_mom_id),
children: [], children: [],
}; };
if (item.group_section_ids?.length > 1)
node["children"].push({ node["children"].push({
isOpen: false, isOpen: false,
id: item.context_id, id: item.context_id,
@ -139,7 +122,6 @@ const setDataEditor = async () => {
/////-------------وحدت موضوع---------------------- /////-------------وحدت موضوع----------------------
node = { node = {
background:"b_color3",
isOpen: true, isOpen: true,
id: 11, id: 11,
title: "توضیح هوشمند برای وجود وحدت موضوع بین احکام استنادی ", title: "توضیح هوشمند برای وجود وحدت موضوع بین احکام استنادی ",