From 4d8124c5c31ab69f57bbc2b4ffaf84f2dc58758a Mon Sep 17 00:00:00 2001
From: 于杰 <1210123631@qq.com>
Date: 星期五, 01 八月 2025 14:41:20 +0800
Subject: [PATCH] 解决前端右键上下移动方向相反的bug

---
 north-glass-erp/northglass-erp/src/views/pp/glassOptimize/page/OptimizationRect.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/glassOptimize/page/OptimizationRect.vue b/north-glass-erp/northglass-erp/src/views/pp/glassOptimize/page/OptimizationRect.vue
index df8057f..58820da 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/glassOptimize/page/OptimizationRect.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/glassOptimize/page/OptimizationRect.vue
@@ -376,7 +376,7 @@
   moveUpAndRotateItem.textContent = '鍚戜笂绉诲姩骞舵棆杞�';
   moveUpAndRotateItem.style.cursor = 'pointer';
   moveUpAndRotateItem.addEventListener('click', () => {
-    moveRectAndRotate(layoutIndex, rectIndex, 'up');
+    moveRectAndRotate(layoutIndex, rectIndex, 'down');
     document.body.removeChild(contextMenu);
   });
 
@@ -384,7 +384,7 @@
   moveDownAndRotateItem.textContent = '鍚戜笅绉诲姩骞舵棆杞�';
   moveDownAndRotateItem.style.cursor = 'pointer';
   moveDownAndRotateItem.addEventListener('click', () => {
-    moveRectAndRotate(layoutIndex, rectIndex, 'down');
+    moveRectAndRotate(layoutIndex, rectIndex, 'up');
     document.body.removeChild(contextMenu);
   });
 
@@ -408,7 +408,7 @@
   moveUpItem.textContent = '鍚戜笂绉诲姩';
   moveUpItem.style.cursor = 'pointer';
   moveUpItem.addEventListener('click', () => {
-    moveRect(layoutIndex, rectIndex, 'up');
+    moveRect(layoutIndex, rectIndex, 'down');
     document.body.removeChild(contextMenu);
   });
 
@@ -416,7 +416,7 @@
   moveDownItem.textContent = '鍚戜笅绉诲姩';
   moveDownItem.style.cursor = 'pointer';
   moveDownItem.addEventListener('click', () => {
-    moveRect(layoutIndex, rectIndex, 'down');
+    moveRect(layoutIndex, rectIndex, 'up');
     document.body.removeChild(contextMenu);
   });
 

--
Gitblit v1.8.0