From 9207b374197efc7c2a559c8efdde7689bdcec0e3 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 24 Jun 2024 13:46:06 +0200 Subject: [PATCH 1/8] refactor: refs #7014 refactor Main.vue --- src/components/common/VnSectionMain.vue | 17 +++++++++++++++++ src/pages/Account/AccountMain.vue | 14 ++------------ src/pages/Claim/ClaimMain.vue | 14 ++------------ src/pages/Customer/CustomerMain.vue | 14 ++------------ src/pages/Entry/EntryMain.vue | 15 ++------------- src/pages/InvoiceIn/InvoiceInMain.vue | 14 ++------------ src/pages/InvoiceOut/InvoiceOutMain.vue | 14 ++------------ src/pages/Item/ItemMain.vue | 15 ++------------- src/pages/Monitor/MonitorMain.vue | 15 ++------------- src/pages/Order/OrderMain.vue | 14 ++------------ src/pages/Route/RouteMain.vue | 11 ++--------- src/pages/Shelving/ShelvingMain.vue | 14 ++------------ src/pages/Supplier/SupplierMain.vue | 14 ++------------ src/pages/Ticket/TicketMain.vue | 14 ++------------ src/pages/Travel/TravelMain.vue | 14 ++------------ src/pages/Wagon/WagonMain.vue | 14 ++------------ src/pages/Worker/WorkerMain.vue | 14 ++------------ src/pages/Zone/ZoneMain.vue | 13 ++----------- 18 files changed, 51 insertions(+), 203 deletions(-) create mode 100644 src/components/common/VnSectionMain.vue diff --git a/src/components/common/VnSectionMain.vue b/src/components/common/VnSectionMain.vue new file mode 100644 index 000000000..f0dc2e500 --- /dev/null +++ b/src/components/common/VnSectionMain.vue @@ -0,0 +1,17 @@ + + + diff --git a/src/pages/Account/AccountMain.vue b/src/pages/Account/AccountMain.vue index f0dc2e500..c6a38a77a 100644 --- a/src/pages/Account/AccountMain.vue +++ b/src/pages/Account/AccountMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Claim/ClaimMain.vue b/src/pages/Claim/ClaimMain.vue index f0dc2e500..c6a38a77a 100644 --- a/src/pages/Claim/ClaimMain.vue +++ b/src/pages/Claim/ClaimMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Customer/CustomerMain.vue b/src/pages/Customer/CustomerMain.vue index f0dc2e500..c6a38a77a 100644 --- a/src/pages/Customer/CustomerMain.vue +++ b/src/pages/Customer/CustomerMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Entry/EntryMain.vue b/src/pages/Entry/EntryMain.vue index c1f2a31db..c6a38a77a 100644 --- a/src/pages/Entry/EntryMain.vue +++ b/src/pages/Entry/EntryMain.vue @@ -1,18 +1,7 @@ diff --git a/src/pages/InvoiceIn/InvoiceInMain.vue b/src/pages/InvoiceIn/InvoiceInMain.vue index 66ce78f23..c6a38a77a 100644 --- a/src/pages/InvoiceIn/InvoiceInMain.vue +++ b/src/pages/InvoiceIn/InvoiceInMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/InvoiceOut/InvoiceOutMain.vue b/src/pages/InvoiceOut/InvoiceOutMain.vue index 66ce78f23..c6a38a77a 100644 --- a/src/pages/InvoiceOut/InvoiceOutMain.vue +++ b/src/pages/InvoiceOut/InvoiceOutMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Item/ItemMain.vue b/src/pages/Item/ItemMain.vue index c1f2a31db..c6a38a77a 100644 --- a/src/pages/Item/ItemMain.vue +++ b/src/pages/Item/ItemMain.vue @@ -1,18 +1,7 @@ diff --git a/src/pages/Monitor/MonitorMain.vue b/src/pages/Monitor/MonitorMain.vue index c1f2a31db..c6a38a77a 100644 --- a/src/pages/Monitor/MonitorMain.vue +++ b/src/pages/Monitor/MonitorMain.vue @@ -1,18 +1,7 @@ diff --git a/src/pages/Order/OrderMain.vue b/src/pages/Order/OrderMain.vue index 66ce78f23..c6a38a77a 100644 --- a/src/pages/Order/OrderMain.vue +++ b/src/pages/Order/OrderMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Route/RouteMain.vue b/src/pages/Route/RouteMain.vue index bbf19068e..e3d1ecf38 100644 --- a/src/pages/Route/RouteMain.vue +++ b/src/pages/Route/RouteMain.vue @@ -1,6 +1,6 @@ diff --git a/src/pages/Shelving/ShelvingMain.vue b/src/pages/Shelving/ShelvingMain.vue index 66ce78f23..c6a38a77a 100644 --- a/src/pages/Shelving/ShelvingMain.vue +++ b/src/pages/Shelving/ShelvingMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Supplier/SupplierMain.vue b/src/pages/Supplier/SupplierMain.vue index 66ce78f23..c6a38a77a 100644 --- a/src/pages/Supplier/SupplierMain.vue +++ b/src/pages/Supplier/SupplierMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Ticket/TicketMain.vue b/src/pages/Ticket/TicketMain.vue index f0dc2e500..c6a38a77a 100644 --- a/src/pages/Ticket/TicketMain.vue +++ b/src/pages/Ticket/TicketMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Travel/TravelMain.vue b/src/pages/Travel/TravelMain.vue index 66ce78f23..c6a38a77a 100644 --- a/src/pages/Travel/TravelMain.vue +++ b/src/pages/Travel/TravelMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Wagon/WagonMain.vue b/src/pages/Wagon/WagonMain.vue index 66ce78f23..c6a38a77a 100644 --- a/src/pages/Wagon/WagonMain.vue +++ b/src/pages/Wagon/WagonMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Worker/WorkerMain.vue b/src/pages/Worker/WorkerMain.vue index 66ce78f23..c6a38a77a 100644 --- a/src/pages/Worker/WorkerMain.vue +++ b/src/pages/Worker/WorkerMain.vue @@ -1,17 +1,7 @@ diff --git a/src/pages/Zone/ZoneMain.vue b/src/pages/Zone/ZoneMain.vue index 68ff9a5d1..b6f3fb74e 100644 --- a/src/pages/Zone/ZoneMain.vue +++ b/src/pages/Zone/ZoneMain.vue @@ -1,11 +1,9 @@ - - diff --git a/src/pages/Claim/ClaimMain.vue b/src/pages/Claim/ClaimMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Claim/ClaimMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Customer/CustomerMain.vue b/src/pages/Customer/CustomerMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Customer/CustomerMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Entry/EntryMain.vue b/src/pages/Entry/EntryMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Entry/EntryMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/InvoiceIn/InvoiceInMain.vue b/src/pages/InvoiceIn/InvoiceInMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/InvoiceIn/InvoiceInMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/InvoiceOut/InvoiceOutMain.vue b/src/pages/InvoiceOut/InvoiceOutMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/InvoiceOut/InvoiceOutMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Item/ItemMain.vue b/src/pages/Item/ItemMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Item/ItemMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Monitor/MonitorMain.vue b/src/pages/Monitor/MonitorMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Monitor/MonitorMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Order/OrderMain.vue b/src/pages/Order/OrderMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Order/OrderMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Shelving/ShelvingMain.vue b/src/pages/Shelving/ShelvingMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Shelving/ShelvingMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Supplier/SupplierMain.vue b/src/pages/Supplier/SupplierMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Supplier/SupplierMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Ticket/TicketMain.vue b/src/pages/Ticket/TicketMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Ticket/TicketMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Travel/TravelMain.vue b/src/pages/Travel/TravelMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Travel/TravelMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Wagon/WagonMain.vue b/src/pages/Wagon/WagonMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Wagon/WagonMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/pages/Worker/WorkerMain.vue b/src/pages/Worker/WorkerMain.vue deleted file mode 100644 index c6a38a77a..000000000 --- a/src/pages/Worker/WorkerMain.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/router/modules/Supplier.js b/src/router/modules/Supplier.js index da45aad2f..b711066b2 100644 --- a/src/router/modules/Supplier.js +++ b/src/router/modules/Supplier.js @@ -29,7 +29,7 @@ export default { { path: '', name: 'SupplierMain', - component: () => import('src/pages/Supplier/SupplierMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'SupplierList' }, children: [ { diff --git a/src/router/modules/account.js b/src/router/modules/account.js index 6f3f8c25b..3faa00fbc 100644 --- a/src/router/modules/account.js +++ b/src/router/modules/account.js @@ -34,7 +34,7 @@ export default { { path: '', name: 'AccountMain', - component: () => import('src/pages/Account/AccountMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'AccountList' }, children: [ { diff --git a/src/router/modules/claim.js b/src/router/modules/claim.js index 65c714418..cced9e24d 100644 --- a/src/router/modules/claim.js +++ b/src/router/modules/claim.js @@ -26,7 +26,7 @@ export default { { name: 'ClaimMain', path: '', - component: () => import('src/pages/Claim/ClaimMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'ClaimList' }, children: [ { diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js index 3aece0dfe..2e4f24d94 100644 --- a/src/router/modules/customer.js +++ b/src/router/modules/customer.js @@ -38,7 +38,7 @@ export default { { path: '', name: 'CustomerMain', - component: () => import('src/pages/Customer/CustomerMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'CustomerList' }, children: [ { diff --git a/src/router/modules/entry.js b/src/router/modules/entry.js index 67fc41824..a5d4fc229 100644 --- a/src/router/modules/entry.js +++ b/src/router/modules/entry.js @@ -18,7 +18,7 @@ export default { { path: '', name: 'EntryMain', - component: () => import('src/pages/Entry/EntryMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'EntryList' }, children: [ { diff --git a/src/router/modules/invoiceIn.js b/src/router/modules/invoiceIn.js index 75d0612aa..cd8f7de9c 100644 --- a/src/router/modules/invoiceIn.js +++ b/src/router/modules/invoiceIn.js @@ -25,7 +25,7 @@ export default { { path: '', name: 'InvoiceInMain', - component: () => import('src/pages/InvoiceIn/InvoiceInMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'InvoiceInList' }, children: [ { diff --git a/src/router/modules/invoiceOut.js b/src/router/modules/invoiceOut.js index 7c05b82e6..f3c916281 100644 --- a/src/router/modules/invoiceOut.js +++ b/src/router/modules/invoiceOut.js @@ -18,7 +18,7 @@ export default { { path: '', name: 'InvoiceOutMain', - component: () => import('src/pages/InvoiceOut/InvoiceOutMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'InvoiceOutList' }, children: [ { diff --git a/src/router/modules/item.js b/src/router/modules/item.js index 6e8659747..732997318 100644 --- a/src/router/modules/item.js +++ b/src/router/modules/item.js @@ -35,7 +35,7 @@ export default { { path: '', name: 'ItemMain', - component: () => import('src/pages/Item/ItemMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'ItemList' }, children: [ { diff --git a/src/router/modules/monitor.js b/src/router/modules/monitor.js index 6c388a474..f0db8d3f3 100644 --- a/src/router/modules/monitor.js +++ b/src/router/modules/monitor.js @@ -18,7 +18,7 @@ export default { { path: '', name: 'MonitorMain', - component: () => import('src/pages/Monitor/MonitorMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'MonitorList' }, children: [ { diff --git a/src/router/modules/order.js b/src/router/modules/order.js index eb5424e75..15bc98757 100644 --- a/src/router/modules/order.js +++ b/src/router/modules/order.js @@ -18,7 +18,7 @@ export default { { path: '', name: 'OrderMain', - component: () => import('src/pages/Order/OrderMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'OrderList' }, children: [ { diff --git a/src/router/modules/route.js b/src/router/modules/route.js index 8e08d7222..862ec538b 100644 --- a/src/router/modules/route.js +++ b/src/router/modules/route.js @@ -18,7 +18,7 @@ export default { { path: '/route', name: 'RouteMain', - component: () => import('src/pages/Route/RouteMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'RouteList' }, children: [ { diff --git a/src/router/modules/shelving.js b/src/router/modules/shelving.js index d20ce40f4..70145dfb4 100644 --- a/src/router/modules/shelving.js +++ b/src/router/modules/shelving.js @@ -18,7 +18,7 @@ export default { { path: '', name: 'ShelvingMain', - component: () => import('src/pages/Shelving/ShelvingMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'ShelvingList' }, children: [ { diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 71b926308..a08f16206 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -18,7 +18,7 @@ export default { { name: 'TicketMain', path: '', - component: () => import('src/pages/Ticket/TicketMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'TicketList' }, children: [ { diff --git a/src/router/modules/travel.js b/src/router/modules/travel.js index e1a08e9de..627692be8 100644 --- a/src/router/modules/travel.js +++ b/src/router/modules/travel.js @@ -18,7 +18,7 @@ export default { { path: '', name: 'TravelMain', - component: () => import('src/pages/Travel/TravelMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'TravelList' }, children: [ { diff --git a/src/router/modules/wagon.js b/src/router/modules/wagon.js index 6f9a4c819..681e9b6a6 100644 --- a/src/router/modules/wagon.js +++ b/src/router/modules/wagon.js @@ -18,7 +18,7 @@ export default { { path: '/wagon', name: 'WagonMain', - component: () => import('src/pages/Wagon/WagonMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'WagonList' }, children: [ { diff --git a/src/router/modules/worker.js b/src/router/modules/worker.js index 927d11802..36ee55d8e 100644 --- a/src/router/modules/worker.js +++ b/src/router/modules/worker.js @@ -29,7 +29,7 @@ export default { { path: '', name: 'WorkerMain', - component: () => import('src/pages/Worker/WorkerMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'WorkerList' }, children: [ { diff --git a/src/router/modules/zone.js b/src/router/modules/zone.js index fd6fa959b..889b47464 100644 --- a/src/router/modules/zone.js +++ b/src/router/modules/zone.js @@ -29,7 +29,7 @@ export default { { path: '/zone', name: 'ZoneMain', - component: () => import('src/pages/Zone/ZoneMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'ZoneList' }, children: [ { From f596a9b5f74c830b02146a6272e74a89f9cc3434 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 26 Jun 2024 07:26:35 +0200 Subject: [PATCH 3/8] fix: refs #7014 fix wagon module --- src/router/modules/wagon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/modules/wagon.js b/src/router/modules/wagon.js index 681e9b6a6..d3d14a888 100644 --- a/src/router/modules/wagon.js +++ b/src/router/modules/wagon.js @@ -62,7 +62,7 @@ export default { { path: '/wagon/type', name: 'WagonTypeMain', - component: () => import('src/pages/Wagon/WagonMain.vue'), + component: () => import('src/components/common/VnSectionMain.vue'), redirect: { name: 'WagonTypeList' }, children: [ { From 33ad8fcb9d3e7114367ca9bb4a7e7faec4e8e924 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 23 Jul 2024 09:12:00 +0200 Subject: [PATCH 4/8] refactor: refs #7014 improved route.js & deleted RouteMain --- src/components/common/VnSectionMain.vue | 8 ++++++++ src/pages/Route/RouteMain.vue | 12 ------------ src/router/modules/route.js | 3 +++ 3 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 src/pages/Route/RouteMain.vue diff --git a/src/components/common/VnSectionMain.vue b/src/components/common/VnSectionMain.vue index f0dc2e500..0c1641ce1 100644 --- a/src/components/common/VnSectionMain.vue +++ b/src/components/common/VnSectionMain.vue @@ -1,8 +1,16 @@