Skip to content

Commit e3c5c2a

Browse files
committed
【fix】修复Web打印MapGrid模板里,摘要信息和时间填空值不生效的问题 review by xiongjj
1 parent a606ec0 commit e3c5c2a

File tree

4 files changed

+208
-2
lines changed

4 files changed

+208
-2
lines changed

src/common/iServer/WebPrintingService.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,15 @@ export class WebPrintingService extends CommonServiceBase {
192192
} else if (layoutOptions.copyright === void 0) {
193193
params.layoutOptions.copyright = null;
194194
}
195-
if (!hasSummaryText || !layoutOptions.summaryText) {
195+
if (!hasSummaryText) {
196196
delete params.layoutOptions.summaryText;
197+
} else if (layoutOptions.summaryText === void 0) {
198+
params.layoutOptions.summaryText = null;
197199
}
198-
if (!hasTime || !layoutOptions.time) {
200+
if (!hasTime) {
199201
delete params.layoutOptions.time;
202+
} else if (layoutOptions.time === void 0) {
203+
params.layoutOptions.time = null;
200204
}
201205
if (!hasLittleMap || !layoutOptions.littleMapOptions) {
202206
delete params.layoutOptions.littleMapOptions;

test/common/iServer/WebPrintingServiceSpec.js

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)