|
|
@@ -378,17 +378,12 @@ Ext.define('saas.view.core.form.FormPanel', {
|
|
|
});
|
|
|
|
|
|
store.removeAll();
|
|
|
- if (detailData.length > 0) {
|
|
|
|
|
|
- for(let j = 0; j < detailData.length; j++) {
|
|
|
- let d = detailData[j];
|
|
|
- let o = {};
|
|
|
- o[detnoColumn] = j + 1;
|
|
|
- let r = store.add(o)[0];
|
|
|
- for(let k in d) {
|
|
|
- r.set(k, d[k]);
|
|
|
- }
|
|
|
- }
|
|
|
+ if (detailData.length > 0) {
|
|
|
+ store.loadData(detailData.map(function(d, i) {
|
|
|
+ d[detnoColumn] = i + 1;
|
|
|
+ return d;
|
|
|
+ }));
|
|
|
}
|
|
|
|
|
|
me.isValid();
|