xinyb
2022-06-27 6884df548ed805aa08ff95236c377b96c7fe4545
调整存在相同id取值时候问题
2个文件已修改
5 ■■■■■ 已修改文件
WebRoot/js/panel.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebRoot/public/template/topPanInv.txt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebRoot/js/panel.js
@@ -627,7 +627,8 @@
                            } else {
                                value = getDoc(key, '.value');
                                if (typeof value == 'undefined') {//上面的取值如果出现两个相同的key但不相同的标签时候就会导致获取失败,用JQ方法在获取一次 xin 2022-6-1 09:35:23
                                    value=$("#"+key).val();
                                    // value = $("#" + key).val();
                                    value = $doc(key).val();
                                }
                            }
                            break;
WebRoot/public/template/topPanInv.txt
@@ -85,7 +85,7 @@
       out.print("\r\n        if(getDoc('formid',\"\")!=null && "+setBool+"){");
       out.print("\r\n               if(getDoc('formid',\".value\")==\"\"){");
       out.print("\r\n                  setDoc('formid',\".value='"+formId+"'\");");
       out.print("\r\n               } \r\n               if($('input[id=formid]')!=null && $('input[id=formid]').val()==\"\"){");
       out.print("\r\n               } \r\n               if($('input[id=formid]').val()!=null && $('input[id=formid]').val()==\"\"){");
       out.print("\r\n                  $('input[id=formid]').val("+formId+")");
       out.print("\r\n               }");
       out.print("\r\n        }");