Commit ad793e76 authored by Luochenglong's avatar Luochenglong

修复双击保存多条数据BUG add by luochenglong

parent b304e57f
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
var ds = $('cloumn_para_ds'); var ds = $('cloumn_para_ds');
var records=ds.getAll(); var records=ds.getAll();
var paras = []; var paras = [];
/*var detail_masks = Ext.getBody();*/ var detail_masks = Ext.getBody();
var base_archive_id='${/parameter/@record_id}'; var base_archive_id='${/parameter/@record_id}';
console.log(base_archive_id); console.log(base_archive_id);
for(var n=0;n<records.length;n++){ for(var n=0;n<records.length;n++){
...@@ -75,19 +75,21 @@ ...@@ -75,19 +75,21 @@
} }
console.log(paras); console.log(paras);
if (ds.validate()) { if (ds.validate()) {
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
Leaf.request({ Leaf.request({
url: $('cloumn_code_save_link').getUrl(), url: $('cloumn_code_save_link').getUrl(),
para: paras, para: paras,
success: function(res) { success: function(res) {
Leaf.showMessage('提示','保存成功',function(){ Leaf.showMessage('提示','保存成功',function(){
ds.query(); ds.query();
Leaf.Masker.unmask(detail_mask);
}); });
}, },
failure: function() { failure: function() {
Leaf.Masker.unmask(detail_mask);
}, },
error: function() { error: function() {
Leaf.Masker.unmask(detail_mask);
}, },
scope: this scope: this
}); });
......
...@@ -47,12 +47,14 @@ ...@@ -47,12 +47,14 @@
paras.push(records[n].data); paras.push(records[n].data);
} }
if (ds.validate()) { if (ds.validate()) {
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
Leaf.request({ Leaf.request({
url: $('elec_file_save_link').getUrl(), url: $('elec_file_save_link').getUrl(),
para: paras, para: paras,
success: function(res) { success: function(res) {
Leaf.showMessage('提示','保存成功',function(){ Leaf.showMessage('提示','保存成功',function(){
ds.query(); ds.query();
Leaf.Masker.unmask(detail_mask);
}); });
}, },
failure: function() { failure: function() {
......
...@@ -71,12 +71,14 @@ ...@@ -71,12 +71,14 @@
paras.push(records[n].data); paras.push(records[n].data);
} }
if (ds.validate()) { if (ds.validate()) {
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
Leaf.request({ Leaf.request({
url: $('je_template_save_link').getUrl(), url: $('je_template_save_link').getUrl(),
para: paras, para: paras,
success: function(res) { success: function(res) {
Leaf.showMessage('提示','保存成功',function(){ Leaf.showMessage('提示','保存成功',function(){
ds.query(); ds.query();
Leaf.Masker.unmask(detail_mask);
}); });
}, },
failure: function() { failure: function() {
......
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