|
@@ -219,7 +219,7 @@ $(document).ready(() => {
|
|
|
SpreadJsObj.reloadColData(compareSheet, colIndex);
|
|
|
},
|
|
|
setCompareType(type) {
|
|
|
- this.compareType = type;
|
|
|
+ this.compareType = type || 'number';
|
|
|
$('[name=showType]').removeClass('active');
|
|
|
$(`[tag=${type}]`).addClass('active');
|
|
|
if (this.compareType === 'grid') {
|
|
@@ -231,14 +231,14 @@ $(document).ready(() => {
|
|
|
if (!x.bc_type) return;
|
|
|
x.visible = x.bc_type === type;
|
|
|
});
|
|
|
- setLocalCache(compareTypeKey, type);
|
|
|
+ setLocalCache(compareTypeKey, this.compareType);
|
|
|
},
|
|
|
setStackedBarCover(cover){
|
|
|
this.stackedBarCover = cover || '1';
|
|
|
const colIndex = spreadSetting.cols.findIndex(x => { return x.field === 'stackedBar'});
|
|
|
spreadSetting.cols[colIndex].stackedBarCover = parseInt(cover);
|
|
|
SpreadJsObj.reloadColData(compareSheet, colIndex);
|
|
|
- setLocalCache(stackedBarCoverKey, cover);
|
|
|
+ setLocalCache(stackedBarCoverKey, this.stackedBarCover);
|
|
|
}
|
|
|
};
|
|
|
compareObj.loadCacheData();
|
|
@@ -283,7 +283,6 @@ $(document).ready(() => {
|
|
|
} else {
|
|
|
compareObj.loadBudgetData(result);
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
|
|
|
$.subMenu({
|