children
This commit is contained in:
parent
79826b4a46
commit
29c4120730
|
|
@ -242,7 +242,7 @@ function generateDetailsHtml(item) {
|
||||||
let html = `<details class="custom-details" ${item.isOpen ? "open" : ""}>`;
|
let html = `<details class="custom-details" ${item.isOpen ? "open" : ""}>`;
|
||||||
html += `<summary>`;
|
html += `<summary>`;
|
||||||
if (item.tag) {
|
if (item.tag) {
|
||||||
html += `<span href="${item.tag}"/>`;
|
html += `<span > ${item.tag} </span>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
html += `${escapeHtml(item.title) || "بدون عنوان"}`;
|
html += `${escapeHtml(item.title) || "بدون عنوان"}`;
|
||||||
|
|
|
||||||
|
|
@ -40,15 +40,18 @@ const setDataEditor = async () => {
|
||||||
console.log("setDataEditor ", response);
|
console.log("setDataEditor ", response);
|
||||||
|
|
||||||
let _source = response._source;
|
let _source = response._source;
|
||||||
let base_url =
|
|
||||||
window.location.origin +
|
let base_url = window.location.origin;
|
||||||
"/entity/show/view/qasection/{{qanon_id}}?jump_id={{section_id}}";
|
base_url = base_url.replace("localhost:3007", "localhost:8082");
|
||||||
|
base_url = base_url.replace("majles.tavasi.ir", "jedit.tavasi.ir");
|
||||||
|
|
||||||
|
base_url += "/entity/show/view/qasection/{{qanon_id}}?jump_id={{section_id}}";
|
||||||
|
|
||||||
accordionItems.value = [];
|
accordionItems.value = [];
|
||||||
|
|
||||||
if (_source.previous_info) {
|
if (_source.previous_info) {
|
||||||
let item = _source.previous_info;
|
let item = _source.previous_info;
|
||||||
accordionItems.value.push({
|
let node = {
|
||||||
isOpen: false,
|
isOpen: false,
|
||||||
id: item.section_mom_id,
|
id: item.section_mom_id,
|
||||||
title: "قانون مقدم : " + item.qanon_title + " > " + item.full_path,
|
title: "قانون مقدم : " + item.qanon_title + " > " + item.full_path,
|
||||||
|
|
@ -58,12 +61,32 @@ const setDataEditor = async () => {
|
||||||
link_url: base_url
|
link_url: base_url
|
||||||
.replace("{{qanon_id}}", item.qanon_id)
|
.replace("{{qanon_id}}", item.qanon_id)
|
||||||
.replace("{{section_id}}", item.section_mom_id),
|
.replace("{{section_id}}", item.section_mom_id),
|
||||||
|
children: [],
|
||||||
|
};
|
||||||
|
|
||||||
|
node["children"].push({
|
||||||
|
isOpen: false,
|
||||||
|
id: item.context_id,
|
||||||
|
title: "متن کامل با اجزاء دیگر مورد توجه : ",
|
||||||
|
content: _source.context1,
|
||||||
|
});
|
||||||
|
|
||||||
|
accordionItems.value.push(node);
|
||||||
|
|
||||||
|
item.rule_ids.forEach((rule_id) => {
|
||||||
|
let content = _source.rules_content[rule_id] ?? "";
|
||||||
|
accordionItems.value.push({
|
||||||
|
isOpen: false,
|
||||||
|
id: rule_id,
|
||||||
|
title: "حکم مورد استناد طرف مقدم با شناسه : " + rule_id,
|
||||||
|
content: content,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_source.next_info) {
|
if (_source.next_info) {
|
||||||
let item = _source.next_info;
|
let item = _source.next_info;
|
||||||
accordionItems.value.push({
|
let node = {
|
||||||
isOpen: false,
|
isOpen: false,
|
||||||
id: item.section_mom_id,
|
id: item.section_mom_id,
|
||||||
title: "قانون موخر : " + item.qanon_title + " > " + item.full_path,
|
title: "قانون موخر : " + item.qanon_title + " > " + item.full_path,
|
||||||
|
|
@ -73,6 +96,25 @@ const setDataEditor = async () => {
|
||||||
link_url: base_url
|
link_url: base_url
|
||||||
.replace("{{qanon_id}}", item.qanon_id)
|
.replace("{{qanon_id}}", item.qanon_id)
|
||||||
.replace("{{section_id}}", item.section_mom_id),
|
.replace("{{section_id}}", item.section_mom_id),
|
||||||
|
children: [],
|
||||||
|
};
|
||||||
|
node["children"].push({
|
||||||
|
isOpen: false,
|
||||||
|
id: item.context_id,
|
||||||
|
title: "متن کامل با اجزاء دیگر مورد توجه : ",
|
||||||
|
content: _source.context1,
|
||||||
|
});
|
||||||
|
|
||||||
|
accordionItems.value.push(node);
|
||||||
|
|
||||||
|
item.rule_ids.forEach((rule_id) => {
|
||||||
|
let content = _source.rules_content[rule_id] ?? "";
|
||||||
|
accordionItems.value.push({
|
||||||
|
isOpen: false,
|
||||||
|
id: rule_id,
|
||||||
|
title: "حکم مورد استناد طرف موخر با شناسه : " + rule_id,
|
||||||
|
content: content,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user