From 68d834aec9d4efb12cebb66db1d574b100c16788 Mon Sep 17 00:00:00 2001 From: ko1234 Date: Thu, 19 Jun 2025 15:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AA=9E=E8=A8=80=E5=8C=85?= =?UTF-8?q?=E3=80=81=E5=82=B3=E5=85=A5=E5=8F=83=E6=95=B8=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E3=80=81=E6=AC=84=E4=BD=8D=E5=BF=85=E5=A1=AB=E7=AD=89bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customUI/FileSystemCollapse.vue | 3 +- src/components/customUI/Input.vue | 2 +- src/components/customUI/InputNumber.vue | 2 +- src/components/customUI/Modal.vue | 2 +- src/components/customUI/RadioGroup.vue | 2 +- src/components/customUI/SearchSelect.vue | 2 +- src/components/customUI/Select.vue | 4 +- src/components/customUI/Textarea.vue | 2 +- src/components/navbar/Navbar.vue | 25 ++++++++-- src/config/cn.json | 3 +- src/config/tw.json | 3 +- src/config/us.json | 3 +- src/router/index.js | 9 ---- .../components/AssetMainListAddModal.vue | 5 +- .../components/AssetSubListAddModal.vue | 7 ++- .../AssetManagement/components/AssetTable.vue | 47 +++++++++++++------ .../components/AssetTableAddModal.vue | 3 +- .../AssetTableModalLeftInfoDept.vue | 2 +- .../AssetTableModalLeftInfoGraph.vue | 2 +- .../components/AssetTableModalLeftInfoIoT.vue | 2 +- .../AssetTableModalLeftInfoMQTT.vue | 2 +- .../accountManagement/AccountManagement.vue | 6 +-- .../components/AccountModal.vue | 2 +- .../components/AccountPasswordModal.vue | 4 +- .../components/RoleAuthModal.vue | 2 +- src/views/alert/AlertManagement.vue | 6 +-- .../components/AlertQuery/AlertTableModal.vue | 4 +- .../AlertSetting/AlertNotifyTableAddModal.vue | 5 +- .../AlertOutliersTableAddModal.vue | 3 +- .../components/AlertSetting/AlertSetting.vue | 30 +++++++----- src/views/dashboard/Dashboard.vue | 2 +- .../components/DashboardElecRank.vue | 2 +- .../components/DashboardSysProgressModal.vue | 14 +++++- .../energyManagement/EnergyManagement.vue | 8 ++-- .../EnergyChart/CarbonEmissionModal.vue | 13 +++-- .../EnergyChart/ElecConsumption.vue | 23 +++++++-- .../EnergyChart/ImmediateDemandModal.vue | 2 +- .../EnergyHistoryTable/EnergyDataTable.vue | 2 +- .../graphManagement/components/GraphModal.vue | 2 +- .../history/components/HistorySidebar.vue | 2 +- .../components/OperationSearchType.vue | 2 +- .../components/OperationTableModal.vue | 2 +- src/views/setting/SettingManagement.vue | 18 +++---- .../setting/components/BuildingModal.vue | 2 +- src/views/setting/components/DeptModal.vue | 2 +- .../components/ElecPriceManagement.vue | 6 +-- .../setting/components/ElecTypeModal.vue | 2 +- src/views/setting/components/FloorsModal.vue | 2 +- .../setting/components/MQTTListAddModal.vue | 9 +++- src/views/setting/components/VendorModal.vue | 2 +- src/views/system/components/SystemCard.vue | 4 +- .../components/SystemInfoModalContent.vue | 16 +++---- 52 files changed, 195 insertions(+), 136 deletions(-) diff --git a/src/components/customUI/FileSystemCollapse.vue b/src/components/customUI/FileSystemCollapse.vue index 7b058b0..ae41078 100644 --- a/src/components/customUI/FileSystemCollapse.vue +++ b/src/components/customUI/FileSystemCollapse.vue @@ -64,10 +64,11 @@ watch( twMerge( 'flex-col text-xl', cls, - openChildren.includes(dataParentKey) || open ? 'flex' : 'hidden' + openChildren.includes(d.key) || open ? 'flex' : 'hidden' ) " v-for="d in data" + :key="d.key" :data-parent="d.key" :open="open" > diff --git a/src/components/customUI/Input.vue b/src/components/customUI/Input.vue index 5930c2a..bbaf4c5 100644 --- a/src/components/customUI/Input.vue +++ b/src/components/customUI/Input.vue @@ -9,7 +9,7 @@ const props = defineProps({ type: String, default: "", }, - value: String, + value: Object, isTopLabelExist: { type: Boolean, default: true, diff --git a/src/components/customUI/InputNumber.vue b/src/components/customUI/InputNumber.vue index 4bc9ea4..39cf804 100644 --- a/src/components/customUI/InputNumber.vue +++ b/src/components/customUI/InputNumber.vue @@ -9,7 +9,7 @@ const props = defineProps({ type: String, default: "", }, - value: String, + value: Object, isTopLabelExist: { type: Boolean, default: true, diff --git a/src/components/customUI/Modal.vue b/src/components/customUI/Modal.vue index 7e7e77a..ed875ab 100644 --- a/src/components/customUI/Modal.vue +++ b/src/components/customUI/Modal.vue @@ -51,7 +51,7 @@ onMounted(() => { : 'focus-visible:outline-none backdrop:bg-transparent', )" :style="modalStyle" v-draggable="draggable">
diff --git a/src/components/customUI/RadioGroup.vue b/src/components/customUI/RadioGroup.vue index f0ed74a..1e949af 100644 --- a/src/components/customUI/RadioGroup.vue +++ b/src/components/customUI/RadioGroup.vue @@ -4,7 +4,7 @@ import { twMerge } from "tailwind-merge"; const props = defineProps({ name: String, - value: String, + value: Object, items: Array, isLabelExist: { type: Boolean, diff --git a/src/components/customUI/SearchSelect.vue b/src/components/customUI/SearchSelect.vue index ae493eb..17fa2ac 100644 --- a/src/components/customUI/SearchSelect.vue +++ b/src/components/customUI/SearchSelect.vue @@ -18,7 +18,7 @@ const props = defineProps({ Attribute: String, onChange: Function, selectClass: String, - value: String || Number, + value: Object, isTopLabelExist: { type: Boolean, default: true, diff --git a/src/components/customUI/Select.vue b/src/components/customUI/Select.vue index 41166bc..1396843 100644 --- a/src/components/customUI/Select.vue +++ b/src/components/customUI/Select.vue @@ -18,7 +18,7 @@ const props = defineProps({ Attribute: String, onChange: Function, selectClass: String, - value: String || Number, + value: Object, isTopLabelExist: { type: Boolean, default: true, @@ -70,9 +70,7 @@ const props = defineProps({ :class="twMerge(disabled ? `text-white` : 'text-dark')" :value="option.value || option.key || option" > - {{ option[Attribute] || option }} -
diff --git a/src/components/customUI/Textarea.vue b/src/components/customUI/Textarea.vue index e14f010..02f6c0c 100644 --- a/src/components/customUI/Textarea.vue +++ b/src/components/customUI/Textarea.vue @@ -3,7 +3,7 @@ import { defineProps } from "vue"; const props = defineProps({ name: String, - value: String, + value: Object, placeholder: String, }); diff --git a/src/components/navbar/Navbar.vue b/src/components/navbar/Navbar.vue index 480984f..6610ac3 100644 --- a/src/components/navbar/Navbar.vue +++ b/src/components/navbar/Navbar.vue @@ -1,5 +1,6 @@