From 5511640c43772a8240de3c7b14290423c3f6ae48 Mon Sep 17 00:00:00 2001 From: "LAPTOP-R6EHHS26\\86155" <2217640373@qq.com> Date: Mon, 22 Apr 2024 15:35:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=9C=8B=E6=9D=BF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/kanban/quality.js | 2 +- src/api/mes/reportWork.js | 24 ++- src/views/dashboard/DeviceChartLine.vue | 2 +- src/views/dashboard/LineChart copy.vue | 136 ------------- src/views/dashboard/LineChart.vue | 3 +- src/views/dashboard/LineChartshadow.vue | 203 +++++++++++++++++++ src/views/dashboard/PieChart3.vue | 208 +++++++++++++++++++ src/views/dashboard/QcChartLine.vue | 7 +- src/views/dashboard/crossBarChart.vue | 189 +++++++++++++++++ src/views/index.vue | 258 +++++++++++++++++++++--- src/views/register.vue | 2 +- 11 files changed, 864 insertions(+), 170 deletions(-) delete mode 100644 src/views/dashboard/LineChart copy.vue create mode 100644 src/views/dashboard/LineChartshadow.vue create mode 100644 src/views/dashboard/PieChart3.vue create mode 100644 src/views/dashboard/crossBarChart.vue diff --git a/src/api/kanban/quality.js b/src/api/kanban/quality.js index 4e9d7c09..83545106 100644 --- a/src/api/kanban/quality.js +++ b/src/api/kanban/quality.js @@ -93,4 +93,4 @@ export function getMonthOfYearContrast(data) { method: 'post', data: data }); -} \ No newline at end of file +} diff --git a/src/api/mes/reportWork.js b/src/api/mes/reportWork.js index 065bce68..cfa39b24 100644 --- a/src/api/mes/reportWork.js +++ b/src/api/mes/reportWork.js @@ -81,7 +81,29 @@ export function getLineChartData() { method: 'get' }); } - +// 首页-各线体当日计划产量(横向柱状图) +export function getLineProData(data) { + return request({ + url: '/mes/reportWork/getLineProData', + method: 'post', + params: data + }); +} +// 首页-当月各日实际产量(单折线图, +export function getMonthProData() { + return request({ + url: '/mes/reportWork/getMonthProData', + method: 'get', + }); +} +// 首页-当日产品产量(饼图) +export function getProductProData(data) { + return request({ + url: '/mes/reportWork/getProductProData', + method: 'post', + params: data, + }); +} // 获取组线每月设备故障数 export function getGroupLineEquInfo() { return request({ diff --git a/src/views/dashboard/DeviceChartLine.vue b/src/views/dashboard/DeviceChartLine.vue index 7ee95078..934b8cfa 100644 --- a/src/views/dashboard/DeviceChartLine.vue +++ b/src/views/dashboard/DeviceChartLine.vue @@ -1,7 +1,7 @@ diff --git a/src/views/dashboard/LineChart copy.vue b/src/views/dashboard/LineChart copy.vue deleted file mode 100644 index 8e002588..00000000 --- a/src/views/dashboard/LineChart copy.vue +++ /dev/null @@ -1,136 +0,0 @@ - - - diff --git a/src/views/dashboard/LineChart.vue b/src/views/dashboard/LineChart.vue index 59455010..d0352323 100644 --- a/src/views/dashboard/LineChart.vue +++ b/src/views/dashboard/LineChart.vue @@ -30,7 +30,8 @@ }, chartData: { type: Object, - required: true + required: true, + default: {}, } }, data() { diff --git a/src/views/dashboard/LineChartshadow.vue b/src/views/dashboard/LineChartshadow.vue new file mode 100644 index 00000000..2b1d27a2 --- /dev/null +++ b/src/views/dashboard/LineChartshadow.vue @@ -0,0 +1,203 @@ + + + diff --git a/src/views/dashboard/PieChart3.vue b/src/views/dashboard/PieChart3.vue new file mode 100644 index 00000000..6eb9d3bb --- /dev/null +++ b/src/views/dashboard/PieChart3.vue @@ -0,0 +1,208 @@ + + + diff --git a/src/views/dashboard/QcChartLine.vue b/src/views/dashboard/QcChartLine.vue index 20f10328..f95ee8cd 100644 --- a/src/views/dashboard/QcChartLine.vue +++ b/src/views/dashboard/QcChartLine.vue @@ -1,7 +1,7 @@ @@ -26,7 +26,7 @@ }, height: { type: String, - default: '260px' + default: '230px' }, autoResize: { type: Boolean, @@ -34,7 +34,8 @@ }, chartData: { type: Object, - required: true + required: true, + default: {}, } }, data() { diff --git a/src/views/dashboard/crossBarChart.vue b/src/views/dashboard/crossBarChart.vue new file mode 100644 index 00000000..e4b0af38 --- /dev/null +++ b/src/views/dashboard/crossBarChart.vue @@ -0,0 +1,189 @@ + + + diff --git a/src/views/index.vue b/src/views/index.vue index 0fcfcd1b..34fb5f04 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,17 +1,72 @@ -