From b7597e8f8a07eded30a85b6523ac5e5b556db98b Mon Sep 17 00:00:00 2001 From: bb_pan Date: Mon, 26 Jan 2026 19:41:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/RightToolbar/index.vue | 9 +- src/layout/components/Navbar.vue | 195 +- .../EquipmentLedger/components/equ-store.vue | 4 +- .../EquipmentRetireApply/audit-detail.vue | 2 +- src/views/EquipmentRetireApply/detail.vue | 2 +- .../order/sharedOutList.vue | 2 +- src/views/business/apply/addApply.vue | 2 +- src/views/business/audit/addAudit.vue | 2 +- src/views/business/outbound/details.vue | 4 +- src/views/business/warehouse/auditDetails.vue | 4 +- src/views/business/warehouse/details.vue | 2 +- .../equipmentRepair/repairApply/addRepair.vue | 2 +- .../repairAudit/repairApprovalDetail.vue | 2 +- .../home/components/ProvincialCompany.vue | 6 +- src/views/home/components/provincial/Top2.vue | 2 +- src/views/index-1218.vue | 2927 ----------------- src/views/index.vue | 42 +- .../wsScreen/components/center/index-ah.vue | 2 +- .../wsScreen/components/center/index.vue | 2 +- .../components/center/index-ah.vue | 2 +- .../components/center/index.vue | 2 +- .../stockManagement/entryApply/apply.vue | 2 +- .../entryApply/components/EquipmentAdd.vue | 12 +- .../stockManagement/entryApply/index.vue | 4 +- .../stockManagement/inventoryAudit/index.vue | 2 +- src/views/system/menu/index.vue | 2 +- 26 files changed, 115 insertions(+), 3124 deletions(-) delete mode 100644 src/views/index-1218.vue diff --git a/src/components/RightToolbar/index.vue b/src/components/RightToolbar/index.vue index bacb1632..368ffda1 100644 --- a/src/components/RightToolbar/index.vue +++ b/src/components/RightToolbar/index.vue @@ -60,7 +60,7 @@ export default { props: { columns: { type: Array, - required: true, + default: () => [], }, gutter: { type: Number, @@ -94,9 +94,10 @@ export default { immediate: true, deep: true, handler(val) { - // 复用你原来 transfer 逻辑的“本地副本”思想 - this.innerColumns = val.map((c) => ({ ...c })) - this.backupColumns = val.map((c) => ({ ...c })) + const safeCols = Array.isArray(val) ? val : [] + + this.innerColumns = safeCols.map((c) => ({ ...c })) + this.backupColumns = safeCols.map((c) => ({ ...c })) }, }, }, diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 827fd731..763a72a3 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -2,7 +2,12 @@