From 02f4f6ecd8ede09def8c0f29e32daefd3c46ef49 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Mon, 19 Jan 2026 11:19:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B2=E7=BA=BF=E5=9B=BE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BC=98=E5=8C=96=EF=BC=8C=E6=94=BE=E5=A4=A7=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=E6=98=BE=E7=A4=BA=E4=BC=98=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/chartFullscreen.config.ts | 1 + src/components/other/chartFullscreen.vue | 391 ++++++++++-------- src/components/other/index.vue | 11 +- src/pages/main/home.vue | 1 + src/utils/request.ts | 4 +- 5 files changed, 223 insertions(+), 185 deletions(-) diff --git a/src/components/other/chartFullscreen.config.ts b/src/components/other/chartFullscreen.config.ts index c8bc19c..ad3a21e 100644 --- a/src/components/other/chartFullscreen.config.ts +++ b/src/components/other/chartFullscreen.config.ts @@ -2,4 +2,5 @@ export default definePageConfig({ navigationBarTitleText: '曲线图', navigationStyle: 'custom', enablePullDownRefresh: false, + pageOrientation: 'landscape', }) diff --git a/src/components/other/chartFullscreen.vue b/src/components/other/chartFullscreen.vue index 34d89d0..6232778 100644 --- a/src/components/other/chartFullscreen.vue +++ b/src/components/other/chartFullscreen.vue @@ -1,5 +1,5 @@ - diff --git a/src/components/other/index.vue b/src/components/other/index.vue index 9fab6a9..1d4b48d 100644 --- a/src/components/other/index.vue +++ b/src/components/other/index.vue @@ -726,6 +726,11 @@ const props = defineProps({ required: true, default: 1, }, + // 公告弹窗是否打开 + noticeOpen: { + type: Boolean, + default: false, + }, }); const pondDeviceRes = ref(); const emit = defineEmits(["getPondInfo", "getRes", "render", "addDevice"]); @@ -1419,7 +1424,7 @@ function createCharts(x, series, ids) { animation: true, background: "#FFFFFF", color: ["#17B4B2", "#5470c6", "#fac858"], - padding: [15, 30, 35, 45], + padding: [15, 50, 35, 15], enableScroll: false, boundaryGap: "justify", update: true, @@ -1437,9 +1442,9 @@ function createCharts(x, series, ids) { itemCount: 0, scrollShow: false, scrollAlign: "left", - labelCount: 7, + labelCount: 6, rotateLabel: true, - rotateAngle: 30, + rotateAngle: 45, marginTop: 10, }, yAxis: { diff --git a/src/pages/main/home.vue b/src/pages/main/home.vue index bd80b1b..a36706a 100644 --- a/src/pages/main/home.vue +++ b/src/pages/main/home.vue @@ -307,6 +307,7 @@ @addDevice="addDevice" ref="pondChildInfo" type="1" + :noticeOpen="noticeOpen" /> diff --git a/src/utils/request.ts b/src/utils/request.ts index 09ec942..bdd62dc 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -12,8 +12,8 @@ const getBaseUrl = () => { BASE_URL = 'http://127.0.0.1:8080' // 本地调试后端地址 } else { // BASE_URL = 'https://api.yuceyun.cn' //填写你的请求域名 - // BASE_URL = 'https://www.qdintc.com/fishery-api' // 测试环境 - BASE_URL = 'http://127.0.0.1:8080' // 本地调试后端地址 + BASE_URL = 'https://www.qdintc.com/fishery-api' // 测试环境 + // BASE_URL = 'http://127.0.0.1:8080' // 本地调试后端地址 // BASE_URL = 'http://47.102.210.182:6678' //测试环境 } return BASE_URL