| | |
| | | |
| | | <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() |
| | |
| | | value: 20, |
| | | }, |
| | | ] |
| | | const res = await countFileFormat() |
| | | const res = await countProjectType(this.params) |
| | | if (res.code == 200) { |
| | | data = res.result.map(item => { |
| | | return { |