From 250d5ad07eff7adca82205d6f02e5d404c4210f3 Mon Sep 17 00:00:00 2001 From: "daikun1@bosssoft.com.cn" Date: Fri, 22 Dec 2023 11:19:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/lab/asyncdata/index.js | 8 + .../lab/stretch/stretchthreehundred/index.ts | 5 + src/api/pszc/pszccommon/index.ts | 22 +++ src/api/tjanalysis/index.ts | 19 +++ src/components/Qxview/src/QxviewThree.vue | 42 ++++- src/layout/components/Message/src/Message.vue | 14 +- src/layout/components/ToolHeader.vue | 10 +- src/utils/disposition/defaultButtons.ts | 13 ++ src/views/lab/impact/index.vue | 153 ++++++++++-------- src/views/lab/platscale/index.vue | 34 +++- src/views/lab/platscale/platscale.data.ts | 9 ++ src/views/lab/spectrum/index.vue | 40 ++++- src/views/lab/spectrum/spectrum.data.ts | 25 ++- .../lab/stretch/stretchthousandnew/index.vue | 35 +++- .../lab/stretch/stretchthreehundred/index.vue | 48 +++++- .../cdelectricdata/cdElectricdata.data.ts | 73 +++++++-- .../pszc/cdnatgasdata/cdNatgasdata.data.ts | 72 +++++++-- .../pszc/cdpuncherdata/cdPuncherdata.data.ts | 72 +++++++-- .../pszc/cdslotfurnace/cdSlotfurnace.data.ts | 72 +++++++-- .../cdsmelterfurnace/cdSmelterfurnace.data.ts | 72 +++++++-- .../pszc/cdstepfurnace/cdStepfurnace.data.ts | 72 +++++++-- .../pszc/cdwatermeter/cdWatermeter.data.ts | 72 +++++++-- .../hrAnnularfurnace108.data.ts | 72 +++++++-- .../hrAnnularfurnace90.data.ts | 72 +++++++-- .../hrAnnularfurnacegas108.data.ts | 72 +++++++-- .../hrElongatordata108.data.ts | 72 +++++++-- .../hrElongatordata90.data.ts | 72 +++++++-- .../pszc/hrnatgasdata/hrNatgasdata.data.ts | 72 +++++++-- .../hrpuncherdata108/hrPuncherdata108.data.ts | 72 +++++++-- .../hrpuncherdata90/hrPuncherdata90.data.ts | 72 +++++++-- .../hrSizingmilldata108.data.ts | 72 +++++++-- .../hrSizingmilldata90.data.ts | 72 +++++++-- .../hrwatermeter108/hrWatermeter108.data.ts | 72 +++++++-- .../hrwatermeter90/hrWatermeter90.data.ts | 72 +++++++-- .../tjanalysis/electricdatatotal/index.vue | 126 +++++++++++++++ src/views/tjanalysis/irealdata/index.vue | 22 +-- src/views/tjanalysis/natgasdatacd/index.vue | 121 ++++++++++++++ src/views/tjanalysis/natgasdatahr/index.vue | 120 ++++++++++++++ src/views/tjanalysis/waterday/index.vue | 125 ++++++++++++++ 39 files changed, 2004 insertions(+), 356 deletions(-) create mode 100644 src/api/lab/asyncdata/index.js create mode 100644 src/api/pszc/pszccommon/index.ts create mode 100644 src/views/tjanalysis/electricdatatotal/index.vue create mode 100644 src/views/tjanalysis/natgasdatacd/index.vue create mode 100644 src/views/tjanalysis/natgasdatahr/index.vue create mode 100644 src/views/tjanalysis/waterday/index.vue diff --git a/src/api/lab/asyncdata/index.js b/src/api/lab/asyncdata/index.js new file mode 100644 index 0000000..c67306a --- /dev/null +++ b/src/api/lab/asyncdata/index.js @@ -0,0 +1,8 @@ +import request from '@/config/axios' + +export const asyncLabData = async (params) => { + return await request.get({ + url: `/lab/asynclab/asyncLabData`, + params + }) +} \ No newline at end of file diff --git a/src/api/lab/stretch/stretchthreehundred/index.ts b/src/api/lab/stretch/stretchthreehundred/index.ts index e1b4022..efdd5eb 100644 --- a/src/api/lab/stretch/stretchthreehundred/index.ts +++ b/src/api/lab/stretch/stretchthreehundred/index.ts @@ -113,6 +113,11 @@ export const importTemplate = () => { return request.download({ url: '/lab/stretchthreehundred/get-import-template' }) } +// 查询曲线实验编号列表 +export const getQxSyzbhs = async (syzbh: String) => { + return await request.get({ url: `/lab/stretchthreehundred/getQxSyzbhs?syzbh=` + syzbh }) +} + // 查询曲线图数据 export const getStretchThreeQxInfo = async (syzbh: String) => { return await request.get({ url: `/lab/stretchthreehundred/getStretchThreeQxInfo?syzbh=` + syzbh }) diff --git a/src/api/pszc/pszccommon/index.ts b/src/api/pszc/pszccommon/index.ts new file mode 100644 index 0000000..46b7d00 --- /dev/null +++ b/src/api/pszc/pszccommon/index.ts @@ -0,0 +1,22 @@ +import request from '@/config/axios' + +// 动态获取下拉数据 +// flag 1 冷拔-步进炉 ;2 冷拔-固熔炉 ; 3 冷拔-缝式炉 ; 4 冷拔-水表 ; 5 冷拔-智能电表 ; 6 冷拔-穿孔机 ; 7 冷拔-天然气总量 +// type 1 数据点数据 ; 2 仪表数据 +export const selectCdPros = async (params) => { + return await request.get({ url: `/pszccommon/selectCdPros`, params }) +} + +// flag 1 环形加热炉 ;2 穿孔机 ; 3 延伸机 ; 4 定经机 ; 5 热轧水表 +export const selectHr90Pros = async (params) => { + return await request.get({ url: `/pszccommon/selectHr90Pros`, params }) +} + +// flag 1 环形加热炉 ;2 环形加热炉天然气管理 ; 3 穿孔机 ; 4 延伸机 ; 5 定经机 ; 6 热轧水表 +export const selectHr108Pros = async (params) => { + return await request.get({ url: `/pszccommon/selectHr108Pros`, params }) +} + +export const selectHrTrqPros = async (params) => { + return await request.get({ url: `/pszccommon/selectHrTrqPros`, params }) +} \ No newline at end of file diff --git a/src/api/tjanalysis/index.ts b/src/api/tjanalysis/index.ts index f37559b..450548c 100644 --- a/src/api/tjanalysis/index.ts +++ b/src/api/tjanalysis/index.ts @@ -25,3 +25,22 @@ export const queryNatgasdatatotal = async (params) => { return await request.get({ url: `/tjanalysis/queryNatgasdatatotal`, params }) } +// 智能报表统计 +export const queryElectricdataAllTj = async (params) => { + return await request.get({ url: `/tjanalysis/queryElectricdataAllTj`, params }) +} + +// 导出智能报表 +export const exportElectricdataAllTj = async (params) => { + return await request.download({ url: `/tjanalysis/exportElectricdataAllTj`, params}) +} + +// 热轧天然气数据日统计报表 +export const queryNatgasdataDay = async (params) => { + return await request.get({ url: `/tjanalysis/queryNatgasdataDay`, params}) +} + +// 智能水表数据日统计表 +export const queryWaterDay = async (params) => { + return await request.get({ url: `/tjanalysis/queryWaterDay`, params}) +} diff --git a/src/components/Qxview/src/QxviewThree.vue b/src/components/Qxview/src/QxviewThree.vue index 3257b03..650bb94 100644 --- a/src/components/Qxview/src/QxviewThree.vue +++ b/src/components/Qxview/src/QxviewThree.vue @@ -1,19 +1,40 @@ @@ -24,17 +45,20 @@ import { formatTime } from '@/utils' import { useUserStore } from '@/store/modules/user' import { useWatermark } from '@/hooks/web/useWatermark' import { pieOptions, barOptions , lineOptions } from './echarts-data' +import * as Stretch300Api from '@/api/lab/stretch/stretchthreehundred' + defineOptions({ name: 'QxviewThree' }) const { t } = useI18n() const userStore = useUserStore() const { setWatermark } = useWatermark() const loading = ref(false) +const sybhList = ref([]) const dialogVisible = ref(false) // 弹窗的是否展示 const lineOptionsData = reactive(lineOptions) as EChartsOption -const open = (vData , title) => { - console.log(vData) +const open = (bhList , vData , title) => { + sybhList.value = bhList initData(vData , title) loading.value = false dialogVisible.value = true @@ -42,6 +66,14 @@ const open = (vData , title) => { defineExpose({ open }) // 提供 open 方法,用于打开弹窗 +const changeData = async (item) => { + const data = await Stretch300Api.getStretchThreeQxInfo(item) + if (data != null && data.dataList != null) { + initData(data.dataList , "实验力-位移") + } else { + initData([] , "实验力-位移") + } +} // 初始化曲线数据 const initData = async (datas , title) => { if (datas != null) { diff --git a/src/layout/components/Message/src/Message.vue b/src/layout/components/Message/src/Message.vue index 28f796b..553250b 100644 --- a/src/layout/components/Message/src/Message.vue +++ b/src/layout/components/Message/src/Message.vue @@ -33,14 +33,14 @@ const goMyList = () => { // ========== 初始化 ========= onMounted(() => { // 首次加载小红点 - getUnreadCount() + // getUnreadCount() // 轮询刷新小红点 - setInterval( - () => { - getUnreadCount() - }, - 1000 * 60 * 2 - ) + // setInterval( + // () => { + // getUnreadCount() + // }, + // 1000 * 60 * 2 + // ) }) + diff --git a/src/views/tjanalysis/irealdata/index.vue b/src/views/tjanalysis/irealdata/index.vue index 98d1179..977eef4 100644 --- a/src/views/tjanalysis/irealdata/index.vue +++ b/src/views/tjanalysis/irealdata/index.vue @@ -25,17 +25,17 @@ header-row-style="height: 50px; text-align: center" :span-method="arraySpanMethod" :row-class-name="tableRowClassName" :cell-class-name="tableCellClassName"> - - - - - - - - - - - + + + + + + + + + + + diff --git a/src/views/tjanalysis/natgasdatacd/index.vue b/src/views/tjanalysis/natgasdatacd/index.vue new file mode 100644 index 0000000..bff2d18 --- /dev/null +++ b/src/views/tjanalysis/natgasdatacd/index.vue @@ -0,0 +1,121 @@ + + + + + + diff --git a/src/views/tjanalysis/natgasdatahr/index.vue b/src/views/tjanalysis/natgasdatahr/index.vue new file mode 100644 index 0000000..383fcc3 --- /dev/null +++ b/src/views/tjanalysis/natgasdatahr/index.vue @@ -0,0 +1,120 @@ + + + + + + diff --git a/src/views/tjanalysis/waterday/index.vue b/src/views/tjanalysis/waterday/index.vue new file mode 100644 index 0000000..e24f698 --- /dev/null +++ b/src/views/tjanalysis/waterday/index.vue @@ -0,0 +1,125 @@ + + + + + +