Compare commits
No commits in common. "32a2bb9e139144da2cf1355dff3bacdac24916f6" and "48926cd9d40bfc424ea3d3822b71dcfadaf99385" have entirely different histories.
32a2bb9e13
...
48926cd9d4
|
|
@ -249,7 +249,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 > ${item.tag} </span>`;
|
html += `<span href="${item.tag}"/>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
html += `${escapeHtml(item.title) || "بدون عنوان"}`;
|
html += `${escapeHtml(item.title) || "بدون عنوان"}`;
|
||||||
|
|
|
||||||
|
|
@ -40,19 +40,15 @@ const setDataEditor = async () => {
|
||||||
console.log("setDataEditor ", response);
|
console.log("setDataEditor ", response);
|
||||||
|
|
||||||
let _source = response._source;
|
let _source = response._source;
|
||||||
|
let base_url =
|
||||||
let base_url = window.location.origin;
|
window.location.origin +
|
||||||
base_url = base_url.replace("localhost:3007", "localhost:8082");
|
"/entity/show/view/qasection/{{qanon_id}}?jump_id={{section_id}}";
|
||||||
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 = [];
|
||||||
let node = {}
|
|
||||||
|
|
||||||
if (_source.previous_info) {
|
if (_source.previous_info) {
|
||||||
let item = _source.previous_info;
|
let item = _source.previous_info;
|
||||||
node = {
|
accordionItems.value.push({
|
||||||
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,
|
||||||
|
|
@ -62,32 +58,12 @@ 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;
|
||||||
node = {
|
accordionItems.value.push({
|
||||||
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,
|
||||||
|
|
@ -97,73 +73,9 @@ 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,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/////-------------وحدت موضوع----------------------
|
|
||||||
node = {
|
|
||||||
isOpen: true,
|
|
||||||
id: 11,
|
|
||||||
title: "توضیح هوشمند برای وجود وحدت موضوع بین احکام استنادی ",
|
|
||||||
content: _source.subject_unity.reason,
|
|
||||||
children: [],
|
|
||||||
}
|
|
||||||
|
|
||||||
if(_source.subject_unity.description){
|
|
||||||
|
|
||||||
node["children"].push({
|
|
||||||
isOpen: false,
|
|
||||||
id: item.context_id,
|
|
||||||
title: "شرط اعتبار وحدت موضوع : ",
|
|
||||||
content: _source.subject_unity.description,
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
accordionItems.value.push(node);
|
|
||||||
/////-------------توضیح تخالف----------------------
|
|
||||||
node = {
|
|
||||||
isOpen: true,
|
|
||||||
id: 11,
|
|
||||||
title: "توضیح وجود تخالف بین دو ماده ",
|
|
||||||
content: _source.conflict_detection.description,
|
|
||||||
children: [],
|
|
||||||
}
|
|
||||||
|
|
||||||
accordionItems.value.push(node);
|
|
||||||
/////-------------بیان نوع تخالف----------------------
|
|
||||||
node = {
|
|
||||||
isOpen: true,
|
|
||||||
id: 11,
|
|
||||||
title: "بیان نوع تخالف بین دو ماده : " + _source.conflict_relation_identification.main_type,
|
|
||||||
content: _source.conflict_relation_identification.description,
|
|
||||||
children: [],
|
|
||||||
}
|
|
||||||
|
|
||||||
accordionItems.value.push(node);
|
|
||||||
/////-----------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
console.log("accordionItems", accordionItems.value);
|
console.log("accordionItems", accordionItems.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user