From 2d5bd161f3d0b61623d4f8815feb8acdac3a9666 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Wed, 19 Jun 2024 16:04:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E6=95=B0=E6=8D=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 3 +- src/api/produceData/index.js | 22 +- src/utils/constants.js | 2 + src/views/produce/data/add-or-updata.vue | 293 ++++++++++----------- src/views/produce/data/index.vue | 307 ++++++++++++----------- src/views/produce/data/lineChart.vue | 76 ++++-- 6 files changed, 391 insertions(+), 312 deletions(-) diff --git a/.env.dev b/.env.dev index baa8f98..1e1219a 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: zhp # @Date: 2024-04-28 13:42:51 - # @LastEditTime: 2024-06-17 09:01:32 + # @LastEditTime: 2024-06-19 16:04:10 # @LastEditors: DY # @Description: ### @@ -14,6 +14,7 @@ VUE_APP_TITLE = 发电玻璃智能管控平台 # 芋道管理系统/开发环境 # VUE_APP_BASE_API = 'http://192.168.1.70:30307' VUE_APP_BASE_API = 'http://glass.kszny.picaiba.com' +# VUE_APP_BASE_API = 'http://192.168.1.56:48080' # 郭 # VUE_APP_BASE_API = 'http://192.168.1.61:48080' # sara diff --git a/src/api/produceData/index.js b/src/api/produceData/index.js index 04923bd..706fc36 100644 --- a/src/api/produceData/index.js +++ b/src/api/produceData/index.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2024-05-07 08:54:59 - * @LastEditTime: 2024-06-03 08:52:02 + * @LastEditTime: 2024-06-19 15:22:10 * @LastEditors: DY * @Description: */ @@ -10,23 +10,33 @@ import request from '@/utils/request' // 查询生产数据管理分页 export function getProduceDataPage(data) { return request({ - url: 'ip/prod-output/prodOutputDataPage', + url: '/ip/proddata/page', method: 'post', data: data }) } -export function getProduceDataDetail(id){ +// 查询图数据 +export function getproddata(data) { return request({ - url: '/ip/prod-output/get?id=' + id, - method: 'get' + url: '/ip/proddata/list', + method: 'post', + data: data + }) +} + +export function getProduceDataDetail(data){ + return request({ + url: '/ip/proddata/get', + method: 'post', + data: data }) } // 导出生产数据 export function exportOutPutExcel(data) { return request({ - url: '/ip/prod-output/output-export-excel', + url: '/ip/proddata/export-excel', method: 'post', data: data, responseType: 'blob' diff --git a/src/utils/constants.js b/src/utils/constants.js index bea0699..2daee2a 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -143,6 +143,8 @@ export const tyjxfactoryList =[ // 暂时只有瑞昌邯郸数据 export const factoryList =['瑞昌中建材光电材料有限公司', '邯郸中建材光电材料有限公司'] + +export const factoryListabbr =['瑞昌', '邯郸'] export const factoryArray =[ { name: '瑞昌中建材光电材料有限公司', diff --git a/src/views/produce/data/add-or-updata.vue b/src/views/produce/data/add-or-updata.vue index 46d2f4e..51ea5a5 100644 --- a/src/views/produce/data/add-or-updata.vue +++ b/src/views/produce/data/add-or-updata.vue @@ -1,12 +1,12 @@