diff --git a/src/router/index.js b/src/router/index.js index 21e70e9..7c4dc73 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -196,7 +196,14 @@ export const publicRoutes = [ title: "布控预警", icon: "article" } - }, { + }, + { + path: "/fouColorWarning", + name: "fouColorWarning", + meta: { title: "四色预警", icon: "article" }, + component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/fouColorWarning/index"), + }, + { path: "/behaviorWarnings", name: "behaviorWarnings", meta: { title: "行为预警", icon: "article" }, @@ -680,24 +687,44 @@ export const publicRoutes = [ icon: "article" } }, - { - path: "/tacticalResearch", - name: "tacticalResearch", - component: () => import("@/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue"), + { + path: "/ResearchHome", + name: "ResearchHome", + component: () => import("@/views/backOfficeSystem/JudgmentHome/ResearchHome/index"), meta: { title: "战术研判", icon: "article" } }, { - path: "/strategicResearch", - name: "strategicResearch", - component: () => import("@/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue"), + path: "/situationHome", + name: "situationHome", + component: () => import("@/views/backOfficeSystem/JudgmentHome/situationHome/index"), meta: { title: "战略研判", icon: "article" } }, + + // 后面写的研判 + // { + // path: "/tacticalResearch", + // name: "tacticalResearch", + // component: () => import("@/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue"), + // meta: { + // title: "战术研判", + // icon: "article" + // } + // }, + // { + // path: "/strategicResearch", + // name: "strategicResearch", + // component: () => import("@/views/backOfficeSystem/JudgmentHome/strategicResearch/index.vue"), + // meta: { + // title: "战略研判", + // icon: "article" + // } + // }, { path: "/judgmentCommand", name: "judgmentCommand", @@ -854,36 +881,19 @@ export const publicRoutes = [ icon: "article" }, children: [ + // { + // path: "/fouColorWarning", + // name: "fouColorWarning", + // meta: { title: "四色预警", icon: "article" }, + // component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/fouColorWarning/index"), + // }, { - path: "/fouColorWarning", - name: "fouColorWarning", - meta: { title: "四色预警", icon: "article" }, - component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/fouColorWarning/index"), - }, { path: "/CollectCrculate", name: "CollectCrculate", component: () => import("@/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index"), meta: { title: "信息采集", icon: "article" }, }, - { - path: "/ResearchHome", - name: "ResearchHome", - component: () => import("@/views/backOfficeSystem/JudgmentHome/ResearchHome/index"), - meta: { - title: "战术研判", - icon: "article" - } - }, - { - path: "/situationHome", - name: "situationHome", - component: () => import("@/views/backOfficeSystem/JudgmentHome/situationHome/index"), - meta: { - title: "战略研判", - icon: "article" - } - }, ] }, ] diff --git a/src/views/backOfficeSystem/JudgmentHome/ResearchHome/components/AnalysisReport/components/histogram.vue b/src/views/backOfficeSystem/JudgmentHome/ResearchHome/components/AnalysisReport/components/histogram.vue index c2040b5..f1fe4db 100644 --- a/src/views/backOfficeSystem/JudgmentHome/ResearchHome/components/AnalysisReport/components/histogram.vue +++ b/src/views/backOfficeSystem/JudgmentHome/ResearchHome/components/AnalysisReport/components/histogram.vue @@ -161,6 +161,25 @@ const initChart = () => { } }, 100); }; + +// 暴露方法给父组件,用于获取图表图片数据 +defineExpose({ + getChartImage: () => { + if (myChart.value) { + return myChart.value.getDataURL({ + type: 'png', + pixelRatio: 2, + backgroundColor: '#fff' + }); + } + return null; + }, + resizeChart: () => { + if (myChart.value) { + myChart.value.resize(); + } + } +});