Commit f993934f by anxiaohe

bug修改

parent 2fe09a28
...@@ -137,7 +137,6 @@ ...@@ -137,7 +137,6 @@
}); });
}); });
function save() { function save() {
debugger
var isValidate = jp.validateForm('#inputForm');//校验表单 var isValidate = jp.validateForm('#inputForm');//校验表单
if(!isValidate){ if(!isValidate){
return false; return false;
...@@ -148,29 +147,29 @@ ...@@ -148,29 +147,29 @@
return; return;
} }
/**处理明细隐藏input元素*/ /**处理明细隐藏input元素*/
// jp.loading(); jp.loading();
// getTableData().forEach(function(item,index){ getTableData().forEach(function(item,index){
// $("#inputForm").append("<div class='inputForm-hide-content'>" + Mustache.render($("#hideTpl").html(),{ $("#inputForm").append("<div class='inputForm-hide-content'>" + Mustache.render($("#hideTpl").html(),{
// row: item, row: item,
// idx: index idx: index
// }) + "</div>") }) + "</div>")
// }) })
// try { try {
// jp.post($("#inputForm").attr('action'),$('#inputForm').serialize(),function(data){ jp.post($("#inputForm").attr('action'),$('#inputForm').serialize(),function(data){
// if(data.success){ if(data.success){
// jp.getParent().refresh(); jp.getParent().refresh();
// var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引 var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
// parent.layer.close(dialogIndex); parent.layer.close(dialogIndex);
// jp.success(data.msg) jp.success(data.msg)
//
// }else{ }else{
// jp.error(data.msg); jp.error(data.msg);
// $(".inputForm-hide-content").remove(); $(".inputForm-hide-content").remove();
// } }
// }) })
// } catch (e) { } catch (e) {
// $(".inputForm-hide-content").remove(); $(".inputForm-hide-content").remove();
// } }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment