'调用组委会首页接口'

main
JayChou 4 months ago
parent 29295918c2
commit 4fef3b931c
  1. 6
      jeecgboot-vue3-master/src/api/common/api.ts
  2. 7
      jeecgboot-vue3-master/src/views/depart/workbench/components/organizingCommittee/organizingCommittee.vue

@ -153,3 +153,9 @@ export const getFileblob = (url, parameter) => {
export const uploadMyFile = (url, data) => { export const uploadMyFile = (url, data) => {
return defHttp.uploadMyFile(url, data); return defHttp.uploadMyFile(url, data);
}; };
// 组委会首页
export const getOrganizingCommittee = () => {
return defHttp.get({
url:'/annualcompetitionprojectregistration/annualCompetitionProjectRegistration/zwhsybsjs'
})
}

@ -99,6 +99,7 @@
import cardListTow from '../components/cardListtow.vue'; import cardListTow from '../components/cardListtow.vue';
import cardListThree from '../components/cardListThree.vue'; import cardListThree from '../components/cardListThree.vue';
import echarts from '/@/utils/lib/echarts'; import echarts from '/@/utils/lib/echarts';
import { getOrganizingCommittee }from '/@/api/common/api'
const throttle = (fn: any) => { const throttle = (fn: any) => {
let timer: any; let timer: any;
return function () { return function () {
@ -112,6 +113,12 @@
}, 1000); }, 1000);
}; };
}; };
const getOrganizingCommitteeEvent = async () => {
const res = await getOrganizingCommittee()
console.log(res);
}
getOrganizingCommitteeEvent()
const initContent = () => { const initContent = () => {
const myChart = echarts.init(document.getElementById('chart-content')); const myChart = echarts.init(document.getElementById('chart-content'));
const option = { const option = {

Loading…
Cancel
Save