Browse Source

fix(template): 修复模板编辑中的行移动功能

- 移除对getChangeableRowIndexs方法的调用
- 直接使用选中的行索引进行上下移动操作
- 保持moveUpEntry和moveDownEntry方法的原有逻辑
Tyx 18 hours ago
parent
commit
875edf545b

+ 4 - 4
code/swc/nckd-jxccl-swc/src/main/java/nckd/jxccl/swc/hsas/formplugin/web/outdata/basedata/OutImpTemplateEdit.java

@@ -78,16 +78,16 @@ public class OutImpTemplateEdit extends AbstractFormPlugin implements Plugin {
                 if (selectRowIndexs.length == 0) {
                     this.getView().showTipNotification(ResManager.loadKDString("请选中一行再进行操作。", "MigrationTemplateEdit_3", "swc-hsas-formplugin", new Object[0]));
                 } else {
-                    rowIndexs = this.getChangeableRowIndexs(selectRowIndexs);
-                    this.moveUpEntry(rowIndexs);
+                    //rowIndexs = this.getChangeableRowIndexs(selectRowIndexs);
+                    this.moveUpEntry(selectRowIndexs);
                 }
                 break;
             case "donothing_movedown":
                 if (selectRowIndexs.length == 0) {
                     this.getView().showTipNotification(ResManager.loadKDString("请选中一行再进行操作。", "MigrationTemplateEdit_3", "swc-hsas-formplugin", new Object[0]));
                 } else {
-                    rowIndexs = this.getChangeableRowIndexs(selectRowIndexs);
-                    this.moveDownEntry(rowIndexs);
+                    //rowIndexs = this.getChangeableRowIndexs(selectRowIndexs);
+                    this.moveDownEntry(selectRowIndexs);
                 }
                 break;
             case "save":