From 234409bb4a612c5b69b78b1e844492f0a7122521 Mon Sep 17 00:00:00 2001 From: TreeWish <1131093754@qq.com> Date: 星期二, 28 二月 2023 19:15:32 +0800 Subject: [PATCH] 工程&管线接口对接 --- src/components/chart/FileFormat.vue | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/components/chart/FileFormat.vue b/src/components/chart/FileFormat.vue index 9418542..df5e5e6 100644 --- a/src/components/chart/FileFormat.vue +++ b/src/components/chart/FileFormat.vue @@ -4,12 +4,27 @@ <script> import * as echarts from "echarts" -import { countFileFormat } from "@/api/screen.js" +import { countFileFormat, countProjectType } from "@/api/screen.js" export default { + props: { + params: { + type: Object, + default: () => null, + }, + }, data() { return { option: {}, } + }, + watch: { + params : { + deep: true, + immediate: true, + handler(newVal) { + this.initChart() + }, + }, }, mounted() { this.initChart() @@ -58,7 +73,7 @@ value: 20, }, ] - const res = await countFileFormat() + const res = await countProjectType(this.params) if (res.code == 200) { data = res.result.map(item => { return { -- Gitblit v1.9.3