diff --git a/app/components/lazy-load/data-entry/RelationEdit.vue b/app/components/lazy-load/data-entry/RelationEdit.vue index a7abfb2..a6b398c 100644 --- a/app/components/lazy-load/data-entry/RelationEdit.vue +++ b/app/components/lazy-load/data-entry/RelationEdit.vue @@ -48,10 +48,11 @@ const setDataEditor = async () => { base_url += "/entity/show/view/qasection/{{qanon_id}}?jump_id={{section_id}}"; accordionItems.value = []; + let node = {} if (_source.previous_info) { let item = _source.previous_info; - let node = { + node = { isOpen: false, id: item.section_mom_id, title: "قانون مقدم : " + item.qanon_title + " > " + item.full_path, @@ -86,7 +87,7 @@ const setDataEditor = async () => { if (_source.next_info) { let item = _source.next_info; - let node = { + node = { isOpen: false, id: item.section_mom_id, title: "قانون موخر : " + item.qanon_title + " > " + item.full_path, @@ -118,6 +119,51 @@ const setDataEditor = async () => { }); } + /////-------------وحدت موضوع---------------------- + 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); };