Ver Fonte

公式参数选过后没有返回上次选的状态

cr há 2 dias atrás
pai
commit
117e09feae

+ 3 - 1
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/FormulaOptionServiceImpl.java

@@ -59,7 +59,9 @@ public class FormulaOptionServiceImpl extends ServiceImpl<FormulaOptionMapper, F
                 if (jo.containsKey(wbc.getInitTableName())) {
                     JSONObject tableJson = jo.getJSONObject(wbc.getInitTableName());
                     if (key.contains("__")) {
-                        String cellKey = pkeyId + "@" + key;
+                        //(pkeyId + "@" + key)匹配不上,不知道什么含义,先注释掉
+//                        String cellKey = pkeyId + "@" + key;
+                          String cellKey=key.split("__")[0];
                         if (tableJson.containsKey(cellKey)) {
                             JSONObject excel = tableJson.getJSONObject(cellKey);
                             if (excel.containsKey("TF")) {