This commit is contained in:
闫晓茹 2022-12-09 09:48:14 +08:00
parent 47533c713e
commit 0474b8fd4f
2 changed files with 8 additions and 8 deletions

View File

@ -1,16 +1,16 @@
import request from '@/utils/request'
//最近一周每天的商品交易趋势
export function selectGodWeekTransactionGoodsVO() {
export function getWeekGoodsTradeTrend () {
return request({
url: '/system/homeStatistics/selectGodWeekTransactionGoodsVO',
url: '/system/homeStatistics/getWeekGoodsTradeTrend ',
method: 'get',
})
}
//首页新增最近一周每天的预约订单交易趋势
export function selectAodWeekTransactionAppointmentOrderVO() {
export function getWeekTradeAppointmentTrend() {
return request({
url: '/system/homeStatistics/selectAodWeekTransactionAppointmentOrderVO',
url: '/system/homeStatistics/getWeekTradeAppointmentTrend',
method: 'get',
})
}

View File

@ -76,8 +76,8 @@
import { informationStatistics, summaryToday } from "@/api/system/index";
import * as echarts from "echarts";
import {
selectGodWeekTransactionGoodsVO,
selectAodWeekTransactionAppointmentOrderVO,
getWeekGoodsTradeTrend,
getWeekTradeAppointmentTrend,
selectHotGoodsList,
} from "@/api/system/homepage.js";
export default {
@ -113,7 +113,7 @@ export default {
});
},
info() {
selectAodWeekTransactionAppointmentOrderVO().then((res) => {
getWeekTradeAppointmentTrend().then((res) => {
if (res.code == 200) {
var timedata = [];
res.data.forEach((e) => {
@ -241,7 +241,7 @@ export default {
} else {
}
});
selectGodWeekTransactionGoodsVO().then((res) => {
getWeekGoodsTradeTrend().then((res) => {
if (res.code == 200) {
var timedata = [];
res.data.forEach((e) => {