Browse Source

fix(swc): 修正员工编号字段超链接点击事件判断逻辑

- 修改字段名判断条件,去除点号分隔符
- 替换视图刷新方法,避免重复调用旧接口
turborao 1 day ago
parent
commit
3cd01fd9e9

+ 3 - 3
code/swc/nckd-jxccl-swc/src/main/java/nckd/jxccl/swc/init/plugin/form/PendingSalaryAdjListPlugin.java

@@ -47,7 +47,7 @@ public class PendingSalaryAdjListPlugin extends AbstractListPlugin implements Pl
     @Override
     public void billListHyperLinkClick(HyperLinkClickArgs args) {
         String fieldName = args.getHyperLinkClickEvent().getFieldName();
-        if ("nckd_employeefield.empnumber".equals(fieldName)) {
+        if ("nckd_employeefield_empnumber".equals(fieldName)) {
             HyperLinkClickEvent linkClick = args.getHyperLinkClickEvent();
             BillList billList = (BillList)linkClick.getSource();
             ListSelectedRow selectedRow = billList.getCurrentSelectedRowInfo();
@@ -146,8 +146,8 @@ public class PendingSalaryAdjListPlugin extends AbstractListPlugin implements Pl
             Object[] update = SaveServiceHelper.save(billDyns);
             this.getView().showSuccessNotification(update.length + "条,操作成功", 3000);
         }
-
-        this.getView().invokeOperation("refresh");
+        this.getView().updateView();
+        //this.getView().invokeOperation("refresh");
 
     }