合并的 方法:
spread.removeSheet(0);
for (var i = 0; i < result.list.length; i++) {
console.log(result.list.JsonData);
var jsonStr = result.list.JsonData;
var temp = new GC.Spread.Sheets.Workbook(document.getElementById("ss1"));
temp.fromJSON(JSON.parse(jsonStr));
// 重命名样式表
temp.getNamedStyles().forEach(function (namedStyle) {
namedStyle.name = namedStyle.name;
spread.addNamedStyle(namedStyle);
});
var sheetCount = temp.getSheetCount();
for (let j = 0; j < sheetCount; j++) {
let sheet = temp.getSheet(j);
let sheetJSON = JSON.stringify(sheet.toJSON());
spread.suspendPaint();
var newSheet = new GC.Spread.Sheets.Worksheet("sheet" + i + "_");
spread.addSheet(spread.getSheetCount(), newSheet);
newSheet.fromJSON(JSON.parse(sheetJSON));
newSheet.name("施工阶段日报" + i + "_" + result.list.ReportTime);
spread.resumePaint();