tag summary

This commit is contained in:
hsafaei 2026-02-14 16:45:52 +03:30
parent c46fe10219
commit 33c1ff1184
5 changed files with 18 additions and 9 deletions

2
.env
View File

@ -2,6 +2,6 @@ NUXT_PUBLIC_API_NAME=api/
IS_DEVLOP_MODE=1 IS_DEVLOP_MODE=1
NUXT_PUBLIC_SYSTEM=monir NUXT_PUBLIC_SYSTEM=tavasi_conflict
NUXT_PUBLIC_BASE_URL=http://192.168.23.160/ NUXT_PUBLIC_BASE_URL=http://192.168.23.160/
NUXT_PUBLIC_BASE_URL2=https://hamfahmi.ir/ NUXT_PUBLIC_BASE_URL2=https://hamfahmi.ir/

View File

@ -2,5 +2,5 @@
NUXT_PUBLIC_SYSTEM=majles NUXT_PUBLIC_SYSTEM=majles
# (اختیاری) # (اختیاری)
NUXT_PUBLIC_APP_NAME=Majles System NUXT_PUBLIC_SYSTEM=tavasi_conflict
NUXT_PUBLIC_BASE_URL=http://192.168.23.160/ NUXT_PUBLIC_BASE_URL=https://192.168.23.160/

View File

@ -249,7 +249,9 @@ 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 class="tag" > ${item.tag} </span>`; html += `<a class="tag" target="normal" @click.stop="true" > ${item.tag} </a>`;
// console.log(" html 1 ", html);
} }
html += `${item.title || "بدون عنوان"}`; html += `${item.title || "بدون عنوان"}`;
@ -270,6 +272,8 @@ function generateDetailsHtml(item) {
} }
html += `</details>`; html += `</details>`;
// console.log(" html 10 ", html);
return html; return html;
} }
@ -283,6 +287,8 @@ function loadFromJson() {
html += generateDetailsHtml(item); html += generateDetailsHtml(item);
}); });
console.log('loadFromJson ', html);
editor.value.commands.setContent(html); editor.value.commands.setContent(html);
} }
watch( watch(
@ -291,7 +297,7 @@ watch(
if (!editor.value) return; if (!editor.value) return;
if (!newVal || newVal.length === 0) return; if (!newVal || newVal.length === 0) return;
console.log("accordionData updated:", newVal); // console.log("accordionData updated:", newVal);
nextTick(() => { nextTick(() => {
loadFromJson(); loadFromJson();

View File

@ -56,7 +56,7 @@ const setDataEditor = async () => {
node = { node = {
isOpen: false, isOpen: false,
id: item.section_mom_id, id: item.section_mom_id,
title: `<span class="label">قانون مقدم : </span>` + item.qanon_title + " > " + item.full_path, title: `<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: "«منبع»",
@ -91,7 +91,7 @@ const setDataEditor = async () => {
node = { node = {
isOpen: false, isOpen: false,
id: item.section_mom_id, id: item.section_mom_id,
title: `<span class="label">قانون موخر : </span>` + item.qanon_title + " > " + item.full_path, title: `<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: "«منبع»",
@ -133,7 +133,7 @@ const setDataEditor = async () => {
node["children"].push({ node["children"].push({
isOpen: false, isOpen: false,
id: item.context_id, id: _source.context_id,
title: "شرط اعتبار وحدت موضوع : ", title: "شرط اعتبار وحدت موضوع : ",
content: _source.subject_unity.description, content: _source.subject_unity.description,
}); });

View File

@ -4,8 +4,11 @@
"private": true, "private": true,
"scripts": { "scripts": {
"build": "nuxt build", "build": "nuxt build",
"dev": "nuxt dev",
"dev-tavasi": "env-cmd -f .env.tavasi nuxt dev --host --port 3007 --inspect", "dev-tavasi": "env-cmd -f .env.tavasi nuxt dev --host --port 3007 --inspect",
"dev": "nuxt dev" "build-tavasi": "env-cmd -f .env.tavasi nuxt build --host --inspect",
"build-majles": "env-cmd -f .env.majles nuxt build --host --inspect"
}, },
"dependencies": { "dependencies": {
"@iconify-json/meteor-icons": "^1.2.1", "@iconify-json/meteor-icons": "^1.2.1",