谢谢 问题解决了
- let designerBindingPathSchema = this.designer.getData("treeNodeFromJson") || this.designer.getData("updatedTreeNode") || this.designer.getData("oldTreeNodeFromJson");
- let designer = GC.Spread.Sheets.findControl("gc-designer-container");
- let spread = this.designer.getWorkbook();
- let jsonOptions = {
- ignoreFormula: this.import_noFormula,
- ignoreStyle: this.import_noStyle,
- frozenColumnsAsRowHeaders: this.import_rowHeaders,
- frozenRowsAsColumnHeaders: this.import_columnHeaders,
- doNotRecalculateAfterLoad: this.import_donotrecalculateafterload
- };
- let serializationOption = {
- ignoreFormula: this.noFormula,
- ignoreStyle: this.noStyle,
- rowHeadersAsFrozenColumns: this.SaveCustomRowHeaders,
- columnHeadersAsFrozenRows: this.SaveCustomColumnHeaders
- };
- //ToJson
- let jsonStr = JSON.stringify(spread.toJSON(serializationOption));
- console.info("ssjson:"+jsonStr)
复制代码 |