|
@@ -189,17 +189,19 @@ const rptCustomObj = (function () {
|
|
|
for (const bc of grSpreadSetting.baseCols) {
|
|
|
grSpreadSetting.cols.push(bc);
|
|
|
}
|
|
|
- for (const s of gsSetting.special) {
|
|
|
- for (const ec of grSpreadSetting.extraCols) {
|
|
|
- const c = {};
|
|
|
- c.title = ec.title.replace('%s', s.title);
|
|
|
- c.colSpan = ec.colSpan;
|
|
|
- c.field = ec.field.replace('%s', s.key);
|
|
|
- c.hAlign = ec.hAlign;
|
|
|
- c.width = s.width ? s.width : ec.width;
|
|
|
- c.cellType = ec.cellType;
|
|
|
- c.readOnly = ec.readOnly;
|
|
|
- grSpreadSetting.cols.push(c);
|
|
|
+ if (gsSetting.special) {
|
|
|
+ for (const s of gsSetting.special) {
|
|
|
+ for (const ec of grSpreadSetting.extraCols) {
|
|
|
+ const c = {};
|
|
|
+ c.title = ec.title.replace('%s', s.title);
|
|
|
+ c.colSpan = ec.colSpan;
|
|
|
+ c.field = ec.field.replace('%s', s.key);
|
|
|
+ c.hAlign = ec.hAlign;
|
|
|
+ c.width = s.width ? s.width : ec.width;
|
|
|
+ c.cellType = ec.cellType;
|
|
|
+ c.readOnly = ec.readOnly;
|
|
|
+ grSpreadSetting.cols.push(c);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|