|
@@ -345,6 +345,7 @@ $(document).ready(() => {
|
|
|
};
|
|
|
compareObj.loadCacheData();
|
|
|
compareObj.initCompare();
|
|
|
+ customizeTreeSetting(spreadSetting, customColDisplay());
|
|
|
SpreadJsObj.initSheet(compareSheet, spreadSetting);
|
|
|
|
|
|
function compareCode(str1, str2, symbol = '-') {
|
|
@@ -589,5 +590,11 @@ $(document).ready(() => {
|
|
|
$('#compare-hint').html(compareObj.getCompareHint());
|
|
|
compareObj.reCalculateCompareData();
|
|
|
$('#compare-set').modal('hide');
|
|
|
- })
|
|
|
+ });
|
|
|
+ $('#export-excel').click(function() {
|
|
|
+ const excelSetting = JSON.parse(JSON.stringify(compareSheet.zh_setting));
|
|
|
+ const gridIndex = excelSetting.cols.findIndex(x => { return x.field === 'stackedBar'});
|
|
|
+ if (gridIndex >= 0) excelSetting.cols.splice(gridIndex, 1);
|
|
|
+ SpreadExcelObj.exportSimpleXlsxSheet(excelSetting, compareSheet.zh_tree.nodes, $('.sidebar-title').attr('data-original-title') + "-造价对比.xlsx");
|
|
|
+ });
|
|
|
});
|