From ac32e8c026b8882a122cd1e0974ff0ccc05add46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E5=87=AF?= <2448379534@qq.com> Date: Mon, 1 Jun 2026 08:37:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B0=B4=E8=B4=A8=E6=8E=A5=E5=8F=A3=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5-=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.development | 4 +- frontend/src/api/sz/index.ts | 50 + .../src/components/MapModal/column.config.ts | 32 +- .../components/WaterTemperatureContrast.vue | 17 +- .../src/components/MapModal/setting.config.ts | 2 +- .../src/components/SidePanelItem/index.vue | 54 +- .../EnvironmentalQualityTwoLayers.vue | 844 +++++++++++++++++ .../modules/EnvironmentalQuality/index.vue | 859 ++++++++++++++++-- ...eixingzuchengjijieruqingkuangTwoLayers.vue | 22 +- .../index.vue | 13 +- .../index.vue | 41 +- .../src/modules/shuiWenNianNeiFenBu/index.vue | 2 +- .../shuiwenjiancegongzuoEJ.vue | 72 +- .../modules/shuizhijiancegongzuoQK/index.vue | 239 ++++- .../shuiwenjiancegongzuoEJ.vue | 636 +++++++++++++ frontend/src/modules/waterQuality/index.vue | 500 +++++++++- .../yanchengshuiwenChangeMod/index.vue | 11 +- frontend/src/utils/request.ts | 2 +- .../shuiHuanJingZhiLiangZhuangKuang.vue | 3 +- 19 files changed, 3180 insertions(+), 223 deletions(-) create mode 100644 frontend/src/api/sz/index.ts create mode 100644 frontend/src/modules/EnvironmentalQuality/TwoLayers/EnvironmentalQualityTwoLayers.vue create mode 100644 frontend/src/modules/shuizhijiancegongzuoQK/shuiwenjiancegongzuoEJ.vue diff --git a/frontend/.env.development b/frontend/.env.development index c9ce1af6..3c90805a 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -7,12 +7,12 @@ VITE_APP_TITLE = '水电水利建设项目全过程环境管理信息平台' VITE_APP_PORT = 3000 VITE_APP_BASE_API = '/dev-api' # 本地环境 -# VITE_APP_BASE_URL = 'http://localhost:8093' +VITE_APP_BASE_URL = 'http://localhost:8093' # 测试环境 # VITE_APP_BASE_URL = 'http://172.16.21.142:8093' # VITE_APP_BASE_URL = 'http://172.16.21.142:8096' # 汤伟 -VITE_APP_BASE_URL = 'http://10.84.121.21:8093' +# VITE_APP_BASE_URL = 'http://10.84.121.21:8093' # VITE_APP_BASE_URL = 'http://192.168.1.162:8093' # 测试环境线上 diff --git a/frontend/src/api/sz/index.ts b/frontend/src/api/sz/index.ts new file mode 100644 index 00000000..3433aa41 --- /dev/null +++ b/frontend/src/api/sz/index.ts @@ -0,0 +1,50 @@ +import request from '@/utils/request'; +//水质监测工作开展情况 +export function msstbprptGetKendoList(data: any) { + return request({ + url: '/api/dec-lygk-base-server/base/msstbprpt/GetKendoList', + method: 'post', + data + }); +} +////水温监测工作开展情况弹框 +export function vmsstbprptGetKendoList(data: any) { + return request({ + url: '/wq/vmsstbprpt/GetKendoList', + method: 'post', + data + }); +} +//地表水水质达标率 +export function wqGetKendoListCust(data: any) { + return request({ + url: '/api/wmp-env-server/env/wq/GetKendoListCust', + method: 'post', + data + }); +} + +//环境质量满足度 - 表格数据列表 +export function wqGetKendoList(data: any) { + return request({ + url: '/api/wmp-env-server/env/wq/GetKendoListCust', + method: 'post', + data + }); +} +//沿程水质变化_ 图表数据 +export function qgcGetKendoListCust(data: any) { + return request({ + url: '/api/wmp-env-server/env/wq/along/qgc/GetKendoListCust', + method: 'post', + data + }); +} +//沿程水质变化_ 根据流域获取河段 https://211.99.26.225:12122 +export function wbsbGetKendoList(data: any) { + return request({ + url: '/api/dec-lygk-base-server/base/wbsb/GetKendoList', + method: 'post', + data + }); +} \ No newline at end of file diff --git a/frontend/src/components/MapModal/column.config.ts b/frontend/src/components/MapModal/column.config.ts index 0856aa04..975b9a94 100644 --- a/frontend/src/components/MapModal/column.config.ts +++ b/frontend/src/components/MapModal/column.config.ts @@ -1455,7 +1455,7 @@ const FPPointColumns: Array = [ filed: 'inv', visible: true, type: 'number', - toFixed: 4, + toFixed: 6, url: '', }, { @@ -1629,7 +1629,7 @@ const FBPointColumns: Array = [ filed: 'inv', visible: true, type: 'number', - toFixed: 4, + toFixed: 6, url: '', }, { @@ -1760,7 +1760,7 @@ const VaPointColumns: Array = [ filed: 'inv', visible: true, type: 'number', - toFixed: 4, + toFixed: 6, url: '', }, { @@ -2149,6 +2149,7 @@ const DwPointColumns: Array = [ filed: 'nrmxavwt', visible: true, type: 'number', + toFixed: 1, url: '', }, { @@ -2156,6 +2157,7 @@ const DwPointColumns: Array = [ filed: 'nrmnavwt', visible: true, type: 'number', + toFixed: 1, url: '', }, { @@ -2163,6 +2165,7 @@ const DwPointColumns: Array = [ filed: 'dnavwt', visible: true, type: 'number', + toFixed: 1, url: '', }, { @@ -2170,6 +2173,7 @@ const DwPointColumns: Array = [ filed: 'dnmxavwt', visible: true, type: 'number', + toFixed: 1, url: '', }, { @@ -2177,6 +2181,7 @@ const DwPointColumns: Array = [ filed: 'dnwnavwt', visible: true, type: 'number', + toFixed: 1, url: '', }, { @@ -2200,7 +2205,7 @@ const DwPointColumns: Array = [ filed: 'inv', visible: true, type: 'number', - toFixed: 4, + toFixed: 6, url: '', }, { @@ -2336,6 +2341,7 @@ const DwFivePointColumns: Array = [ filed: 'nrmxavwt', visible: true, type: 'number', + toFixed: 1, url: '', }, { @@ -2343,6 +2349,7 @@ const DwFivePointColumns: Array = [ filed: 'nrmnavwt', visible: true, type: 'number', + toFixed: 1, url: '', }, { @@ -2350,6 +2357,7 @@ const DwFivePointColumns: Array = [ filed: 'dnavwt', visible: true, type: 'number', + toFixed: 1, url: '', }, { @@ -2357,6 +2365,7 @@ const DwFivePointColumns: Array = [ filed: 'dnmxavwt', visible: true, type: 'number', + toFixed: 1, url: '', }, { @@ -2364,6 +2373,7 @@ const DwFivePointColumns: Array = [ filed: 'dnwnavwt', visible: true, type: 'number', + toFixed: 1, url: '', }, @@ -2372,7 +2382,7 @@ const DwFivePointColumns: Array = [ filed: 'inv', visible: true, type: 'number', - toFixed: 4, + toFixed: 6, url: '', }, { @@ -2627,7 +2637,7 @@ const DwOnePointColumns: Array = [ filed: 'nrmxavwt', visible: true, type: 'number', - toFixed: 2, + toFixed: 1, url: '', }, { @@ -2635,7 +2645,7 @@ const DwOnePointColumns: Array = [ filed: 'nrmnavwt', visible: true, type: 'number', - toFixed: 2, + toFixed: 1, url: '', }, { @@ -2643,7 +2653,7 @@ const DwOnePointColumns: Array = [ filed: 'dnavwt', visible: true, type: 'number', - toFixed: 2, + toFixed: 1, url: '', }, { @@ -2651,7 +2661,7 @@ const DwOnePointColumns: Array = [ filed: 'dnmxavwt', visible: true, type: 'number', - toFixed: 2, + toFixed: 1, url: '', }, { @@ -2659,7 +2669,7 @@ const DwOnePointColumns: Array = [ filed: 'dnmnavwt', visible: true, type: 'number', - toFixed: 2, + toFixed: 1, url: '', }, { @@ -2667,7 +2677,7 @@ const DwOnePointColumns: Array = [ filed: 'inv', visible: true, type: 'number', - toFixed: 4, + toFixed: 6, url: '', }, { diff --git a/frontend/src/components/MapModal/components/WaterTemperatureContrast.vue b/frontend/src/components/MapModal/components/WaterTemperatureContrast.vue index 6837ef96..16f4feff 100644 --- a/frontend/src/components/MapModal/components/WaterTemperatureContrast.vue +++ b/frontend/src/components/MapModal/components/WaterTemperatureContrast.vue @@ -392,11 +392,12 @@ const getChartOption = computed(() => { params.forEach((param: any) => { const dataIndex = param.dataIndex; const record = data[dataIndex]; + const value = param.value != null ? param.value : '-'; html += `
- ${param.seriesName}: ${param.value}°C + ${param.seriesName}: ${value}°C
`; @@ -433,7 +434,19 @@ const getChartOption = computed(() => { show: false }, axisLabel: { - interval: xAxisData.length > 7 ? Math.floor((xAxisData.length - 1) / 7) : 0, + interval: (() => { + const dataLen = xAxisData.length; + if (dataLen <= 8) return 0; // 数据少时全部显示 + + // 计算最大允许的间隔,确保首尾都能显示 + // 需要显示的首尾2个 + 中间最多6个 = 总共8个标签 + const maxLabels = 8; + const minInterval = Math.ceil((dataLen - 1) / (maxLabels - 1)); + + // 如果原有计算的间隔更大,使用原有逻辑;否则使用最小间隔 + const calculatedInterval = Math.floor((dataLen - 1) / 7); + return Math.max(calculatedInterval, minInterval); + })(), fontSize: 12, rotate: 0, margin: 10 diff --git a/frontend/src/components/MapModal/setting.config.ts b/frontend/src/components/MapModal/setting.config.ts index 4094836e..a868bd18 100644 --- a/frontend/src/components/MapModal/setting.config.ts +++ b/frontend/src/components/MapModal/setting.config.ts @@ -661,7 +661,7 @@ const WQFBTabs: Array = [ name: '基础信息', key: 'basicInfo', type: 'basic', - url: '/bbi/siteBipc/getSiteBasicInfo' + url: '/api/dec-lygk-base-server/base/msstbprpt/getStcdInfo' }, { name: '监测数据', diff --git a/frontend/src/components/SidePanelItem/index.vue b/frontend/src/components/SidePanelItem/index.vue index 36e07e6d..c23835e2 100644 --- a/frontend/src/components/SidePanelItem/index.vue +++ b/frontend/src/components/SidePanelItem/index.vue @@ -71,7 +71,7 @@ diff --git a/frontend/src/modules/EnvironmentalQuality/index.vue b/frontend/src/modules/EnvironmentalQuality/index.vue index 79d2c83e..d6dff2ec 100644 --- a/frontend/src/modules/EnvironmentalQuality/index.vue +++ b/frontend/src/modules/EnvironmentalQuality/index.vue @@ -1,81 +1,574 @@ diff --git a/frontend/src/modules/waterQuality/index.vue b/frontend/src/modules/waterQuality/index.vue index 8d8e6cbf..3261e932 100644 --- a/frontend/src/modules/waterQuality/index.vue +++ b/frontend/src/modules/waterQuality/index.vue @@ -1,22 +1,37 @@ diff --git a/frontend/src/modules/yanchengshuiwenChangeMod/index.vue b/frontend/src/modules/yanchengshuiwenChangeMod/index.vue index 484415a2..e2152a82 100644 --- a/frontend/src/modules/yanchengshuiwenChangeMod/index.vue +++ b/frontend/src/modules/yanchengshuiwenChangeMod/index.vue @@ -199,9 +199,11 @@ const initChart = () => { formatter: (params: any) => { if (params && params.length > 0) { const data = params[0]; - // 过滤掉 null 值的数据点 - if (data.value !== null && data.value !== undefined) { + // 根据项目规范:空值统一显示为短横线 `-` + if (data.value != null) { return `${currentTime.value}
${data.name}:${data.value}°C`; + } else { + return `${currentTime.value}
${data.name}:-`; } } return ""; @@ -288,6 +290,7 @@ const initChart = () => { smooth: true, symbol: "circle", symbolSize: 6, + connectNulls: true, // 连接空值两侧的线段,避免折线断开 lineStyle: { color: "#6ca4f7", width: 2, @@ -347,8 +350,8 @@ const init = async () => { logic: "and", filters: [ { field: "rvcd", operator: "eq", dataType: "string", value: paramsOne.rvcd }, - { field: "tm", operator: "gte", dataType: "date", value: paramsOne.tm[0] }, - { field: "tm", operator: "lte", dataType: "date", value: paramsOne.tm[1] }, + { field: "tm", operator: "gte", dataType: "date", value: paramsOne.tm[1] }, + { field: "tm", operator: "lte", dataType: "date", value: paramsOne.tm[0] }, ], }, sort: [{ field: "sort", dir: "asc" }], diff --git a/frontend/src/utils/request.ts b/frontend/src/utils/request.ts index 1960cdb4..b3e6d7ad 100644 --- a/frontend/src/utils/request.ts +++ b/frontend/src/utils/request.ts @@ -31,7 +31,7 @@ service.interceptors.request.use( config.headers._sysid = '10EC2E0B-AEA9-4757-83A2-201BA1BC54E9'; config.headers.authorization = - 'bearer a385ef90-a17d-429f-817f-7d961594020c'; + 'bearer 3f010383-deb5-464c-9198-b42af9c5c839'; config.baseURL = '/'; } else { const user = useUserStoreHook(); diff --git a/frontend/src/views/shuiZhiJianCe/shuiHuanJingZhiLiangZhuangKuang.vue b/frontend/src/views/shuiZhiJianCe/shuiHuanJingZhiLiangZhuangKuang.vue index a2840847..33661117 100644 --- a/frontend/src/views/shuiZhiJianCe/shuiHuanJingZhiLiangZhuangKuang.vue +++ b/frontend/src/views/shuiZhiJianCe/shuiHuanJingZhiLiangZhuangKuang.vue @@ -12,9 +12,10 @@ watch( () => JidiSelectEventStore.selectedItem, (newVal) => { console.log(newVal); + // debugger wbsCode.value = newVal.wbsCode; }, - { deep: true } + { deep: true, immediate: true } );