| New file |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | export const getCodingCount = () => { |
| | | return request({ |
| | | url: "/index/codingCount", |
| | | method: "GET", |
| | | }) |
| | | } |
| | | |
| | | export const getFundingStatus = () =>{ |
| | | return request({ |
| | | url:"/index/fundingStatus", |
| | | method:"GET" |
| | | }) |
| | | } |
| | |
| | | |
| | | <script> |
| | | import * as echarts from 'echarts'; |
| | | |
| | | import {getCodingCount ,getFundingStatus } from '@/api/index/index.js' |
| | | export default { |
| | | name: 'ProjectManagement', |
| | | data() { |
| | |
| | | }; |
| | | }, |
| | | mounted() { |
| | | getCodingCount().then(res =>{ |
| | | |
| | | }) |
| | | getFundingStatus().then(res=>{ |
| | | |
| | | }) |
| | | |
| | | this.selectedProjects = this.allProjects.map(p => p.id); // 默认全选 |
| | | this.fundSelectedProjects = this.allProjects.map(p => p.id); // 默认全选 |
| | | this.initCharts(); |