Commit ad793e76 authored by Luochenglong's avatar Luochenglong

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

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