From f31cff91be3c7d20a6b24f78fe080e9e1d513ebd Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Tue, 28 Feb 2023 18:06:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layouts/index.js | 3 +- src/components/menu/Contextmenu.vue | 4 + src/config/router.config.js | 7 +- src/views/statisticanalysis/CostStatistic.vue | 10 +- .../costecharts/CaseCost.vue | 315 ++++++++---- .../statisticanalysis/costecharts/Cost.vue | 21 +- .../costecharts/CostAnalysis.vue | 477 +++++++++++++++++- .../costecharts/ItemCost.vue | 10 +- .../costecharts/OnDayCost.vue | 18 +- 9 files changed, 735 insertions(+), 130 deletions(-) diff --git a/src/components/layouts/index.js b/src/components/layouts/index.js index 7cf0f77..de8e521 100644 --- a/src/components/layouts/index.js +++ b/src/components/layouts/index.js @@ -4,5 +4,6 @@ import BasicLayout from '@/components/layouts/BasicLayout' import RouteView from '@/components/layouts/RouteView' import PageView from '@/components/layouts/PageView' import TabLayout from '@/components/layouts/TabLayout' +import CostStatistic from '@/views/statisticanalysis/CostStatistic' -export { UserLayout, BasicLayout, BlankLayout, RouteView, PageView, TabLayout } \ No newline at end of file +export { UserLayout, BasicLayout, BlankLayout, RouteView, PageView, TabLayout ,CostStatistic} \ No newline at end of file diff --git a/src/components/menu/Contextmenu.vue b/src/components/menu/Contextmenu.vue index f88f7b4..85137a1 100644 --- a/src/components/menu/Contextmenu.vue +++ b/src/components/menu/Contextmenu.vue @@ -43,6 +43,10 @@ export default { }, methods: { closeMenu (e) { + if(e.target.href && e.target.href.indexOf("cellList") > 0){ + console.log("执行l"); + window.open(e.target.href,"_blank"); + } if (this.visible === true && ['menuitemicon', 'menuitem'].indexOf(e.target.getAttribute('role')) < 0) { this.$emit('update:visible', false) } diff --git a/src/config/router.config.js b/src/config/router.config.js index 397e147..d4afd84 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -1,4 +1,5 @@ -import { UserLayout, TabLayout, RouteView, BlankLayout, PageView } from '@/components/layouts' +import { UserLayout, TabLayout, RouteView, BlankLayout, PageView ,CostStatistic} from '@/components/layouts' + /** * 走菜单,走权限控制 @@ -322,6 +323,10 @@ export const constantRouterMap = [ }, ] }, + { + path: '/cellList', + component: () => import(/* webpackChunkName: "user" */ '@/views/statisticanalysis/CostStatistic') + }, // { // path: '/', diff --git a/src/views/statisticanalysis/CostStatistic.vue b/src/views/statisticanalysis/CostStatistic.vue index 3550304..071b17d 100644 --- a/src/views/statisticanalysis/CostStatistic.vue +++ b/src/views/statisticanalysis/CostStatistic.vue @@ -1,23 +1,23 @@