Browse Source

首页一级大屏-机构问题排名请求变换

master
buaixuexideshitongxue 2 months ago
parent
commit
bbee67f38b
  1. 13
      src/api/screen/gobal.ts
  2. 6
      src/views/datav/Global.vue

13
src/api/screen/gobal.ts

@ -30,13 +30,20 @@ export function getGlobalTrend(year) {
* *
* @param year * @param year
*/ */
export function getOrganizationRank(times) { // export function getOrganizationRank(times) {
return request.get({ // return request.get({
url: `/datav/dataGlobalScreen/getOrganizationRank?beginTime=${times[0]}&endTime=${times[1]}` // url: `/datav/dataGlobalScreen/getOrganizationRank?beginTime=${times[0]}&endTime=${times[1]}`
// });
// }
export function getOrganizationRank(body) {
return request.post({
url: `/datav/dataGlobalScreen/getOrganizationRank`,
body
}); });
} }
/** /**
* *
* @param year * @param year

6
src/views/datav/Global.vue

@ -438,7 +438,11 @@ const proTrend = ref({
// region // region
const getOrganizationRankData = async (timeValue = time.value) => { const getOrganizationRankData = async (timeValue = time.value) => {
const res = await getOrganizationRank(timeValue); const body = {
beginTime: time.value[0],
endTime: time.value[1]
}
const res = await getOrganizationRank(body);
fxsjlist.value = res.fxsjlist; fxsjlist.value = res.fxsjlist;
// 5, 3, 2, 1 // 5, 3, 2, 1
// console.log(fxsjlist.value); // console.log(fxsjlist.value);

Loading…
Cancel
Save