From a4fa9c864ca24a7539c7d36527b40db6fe103393 Mon Sep 17 00:00:00 2001 From: ko1234 Date: Wed, 16 Oct 2024 11:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=91=20|=20?= =?UTF-8?q?=E9=A6=96=E9=A0=81=E5=B0=8F=E5=8D=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .env.production | 4 +- src/apis/alert/index.js | 4 +- src/apis/building/index.js | 6 +- src/components/alarm/AlarmDrawer.vue | 4 +- src/components/customUI/Pagination.vue | 8 ++- src/components/customUI/Table.vue | 8 ++- src/components/customUI/Upload.vue | 7 +- src/components/navbar/Navbar.vue | 67 ++++++++++--------- src/components/navbar/NavbarItem.vue | 17 +++-- src/components/navbar/NavbarLang.vue | 4 +- src/config/cn.json | 36 ++++++++++ src/config/tw.json | 36 ++++++++++ src/config/us.json | 36 ++++++++++ src/fontawsomeIconRegister.js | 28 ++++++++ .../components/AssetTableModalRightInfo.vue | 6 +- .../components/AlertSetting/AlertSetting.vue | 11 ++- .../components/DashboardElecChart.vue | 37 +++++----- .../dashboard/components/DashboardSysCard.vue | 56 ++++++---------- .../components/BillingDegreeChart.vue | 4 +- .../components/CarbonEmissionChart.vue | 2 +- .../components/ElecConsumption.vue | 9 +-- .../components/ImmediateDemandChart.vue | 4 +- .../components/IntervalBillChart.vue | 2 +- .../components/MonthlyElecBillChart.vue | 2 +- .../components/UsageInformation.vue | 44 +++++++----- vite.config.js | 2 +- 27 files changed, 304 insertions(+), 144 deletions(-) diff --git a/.env.development b/.env.development index b5dd21c..de90992 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ -VITE_API_BASEURL = "http://192.168.0.206:8060" -VITE_FILE_API_BASEURL = "http://192.168.0.206:8088" +VITE_API_BASEURL = "https://ibms-cvilux-api.production.mjmtech.com.tw" +VITE_FILE_API_BASEURL = "https://ibms-cvilux.production.mjmtech.com.tw" VITE_FORGE_BASEURL = "http://localhost:5173" \ No newline at end of file diff --git a/.env.production b/.env.production index 013439b..a7e4527 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ -VITE_API_BASEURL = "http://192.168.0.206:8060" -VITE_FILE_API_BASEURL = "http://192.168.0.206:8088" +VITE_API_BASEURL = "https://ibms-cvilux-api.production.mjmtech.com.tw" +VITE_FILE_API_BASEURL = "https://ibms-cvilux.production.mjmtech.com.tw" VITE_FORGE_BASEURL = "http://202.39.218.221:8080/file/netzero" \ No newline at end of file diff --git a/src/apis/alert/index.js b/src/apis/alert/index.js index 0eb637b..e30d42b 100644 --- a/src/apis/alert/index.js +++ b/src/apis/alert/index.js @@ -79,8 +79,8 @@ export const getAlarmMemberList = async () => { }); }; -export const getNoticeList = async () => { - const res = await instance.post(GET_NOTICE_LIST_API, {}); +export const getNoticeList = async (lang) => { + const res = await instance.post(GET_NOTICE_LIST_API, { lang }); return apihandler(res.code, res.data, { msg: res.msg, diff --git a/src/apis/building/index.js b/src/apis/building/index.js index 9576c46..2df8932 100644 --- a/src/apis/building/index.js +++ b/src/apis/building/index.js @@ -16,8 +16,10 @@ export const getBuildings = async () => { }); }; -export const getAuth = async () => { - const res = await instance.post(GET_AUTHPAGE_API); +export const getAuth = async (lang) => { + const res = await instance.post(GET_AUTHPAGE_API, { + lang, + }); return apihandler(res.code, res.data, { msg: res.msg, code: res.code, diff --git a/src/components/alarm/AlarmDrawer.vue b/src/components/alarm/AlarmDrawer.vue index 3ff9fdc..a1993d1 100644 --- a/src/components/alarm/AlarmDrawer.vue +++ b/src/components/alarm/AlarmDrawer.vue @@ -24,13 +24,13 @@ const toggleErrIcon = () => { v-if="!showErr" :icon="['fas', 'comment-dots']" size="2x" - class="text-white menu-icon" + class="text-white w-10 m-auto" /> {{ $t("alarm.title") }} diff --git a/src/components/customUI/Pagination.vue b/src/components/customUI/Pagination.vue index 8418768..e075d4e 100644 --- a/src/components/customUI/Pagination.vue +++ b/src/components/customUI/Pagination.vue @@ -2,6 +2,8 @@ import { defineProps, ref, computed, inject, watch } from "vue"; import { twMerge } from "tailwind-merge"; import { data } from "autoprefixer"; +import { useI18n } from "vue-i18n"; +const { t } = useI18n(); /* ------------------------------------------------------------- > 6 頁 => 會有 input 跳頁,且前三後三顯示 ---------------------------------------------------------------- */ @@ -117,7 +119,7 @@ const pageInput = computed(() => { v-if="totalPage < 6" class="absolute -bottom-8 -translate-x-1/2 text-base text-center" > - 共 {{ dataSource.length }} 筆