Browse Source

修改板板按行数进行位置改变

liling 1 month ago
parent
commit
7e378a3559
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/pages/components/In02.vue

+ 3 - 3
src/pages/components/In02.vue

@@ -714,7 +714,7 @@ export default {
                                 "textFontSize": 16,
                                 "textAlign": "center",
                                 "contentPadding": [2,2,2,2],
-                                "nodeOffset": (item.device*1%2)==0 ? [-120,-340] : [-140,-160],
+                                "nodeOffset": (devIten.rowno*1%2)==0 ? [-120,-340] : [-140,-160],
                                 "textColor": parseInt("0xffffffff")
                             };      
                             options.imgSize = [160, 80];                      
@@ -730,7 +730,7 @@ export default {
                                     "textFontSize": 16,
                                     "contentPadding": [2,2,2,2],
                                     "textAlign": "center",
-                                    "nodeOffset": (item.device*1%2)==0 ? [-120,-340] : [-140,-160],
+                                    "nodeOffset": (devIten.rowno*1%2)==0 ? [-120,-340] : [-140,-160],
                                     "textColor": parseInt("0xffffffff")
                                 }; 
                                 options.imgSize = [160, 80];
@@ -744,7 +744,7 @@ export default {
                                     "textFontSize": 16,
                                     "contentPadding": [2,2,2,2],
                                     "textAlign": "center",
-                                    "nodeOffset": (item.device*1%2)==0 ? [-120,-340] : [-140,-160],
+                                    "nodeOffset": (devIten.rowno*1%2)==0 ? [-120,-340] : [-140,-160],
                                     "textColor": parseInt("0xffffffff")
                                 };
                                 options.imgSize = [160, 80];