diff --git a/src/api/emis/emisWaybill.js b/src/api/emis/emisWaybill.js index b80f92cd..4ba99e6e 100644 --- a/src/api/emis/emisWaybill.js +++ b/src/api/emis/emisWaybill.js @@ -70,6 +70,14 @@ export function queryPrintListSimple(query) { } +export function getLatestMonthCreateOrderMapList(query) { + return request({ + url: '/emis/emisWaybill/getLatestMonthCreateOrderMapList', + method: 'get', + params: query + }) +} + export function selectEmisWaybillByMutiBillCode(query) { return request({ url: '/emis/emisWaybill/selectEmisWaybillByMutiBillCode', diff --git a/src/views/emis/dashboard.vue b/src/views/emis/dashboard.vue index f6af3564..e586a3c4 100644 --- a/src/views/emis/dashboard.vue +++ b/src/views/emis/dashboard.vue @@ -150,7 +150,7 @@ - + --> + + + + + + + + @@ -295,7 +315,7 @@ const lineChartData = { } import { GridLayout, GridItem } from 'vue-grid-layout' import { listSimpleAction } from "@/api/system/sysActionStats"; -import { getQueryStatInfoMap } from "@/api/emis/emisWaybill"; +import { getQueryStatInfoMap,getLatestMonthCreateOrderMapList } from "@/api/emis/emisWaybill"; import {timeDiffTime,timeFormat} from '@/utils/dateUtils' import {getTopNoticeListByUserId,addReadTimes,getPublicNoticeList} from "@/api/system/notice"; @@ -404,22 +424,22 @@ export default { - // getLatestMonthCreateOrderMapList().then(response => { - // console.log("====>getLatestMonthCreateOrderMapList===>",response); + getLatestMonthCreateOrderMapList().then(response => { + console.log("====>getLatestMonthCreateOrderMapList===>",response); - // let xData=[]; - // let yData=[]; - // // 做数据转换 - // response.data.forEach(item => { - // xData.push(item.createDay); - // yData.push(item.totalNum); - // }); + let xData=[]; + let yData=[]; + // 做数据转换 + response.data.forEach(item => { + xData.push(item.createDay); + yData.push(item.totalNum); + }); - // this.orderStateData.xAxisData=[...xData]; - // this.orderStateData.orderStateData=[...yData]; - // console.log("====>this.orderStateData===>",this.orderStateData); + this.orderStateData.xAxisData=[...xData]; + this.orderStateData.orderStateData=[...yData]; + console.log("====>this.orderStateData===>",this.orderStateData); - // }); + }); }, goRouterPath(clickPath) {