|
@@ -131,6 +131,13 @@ $(document).ready(() => {
|
|
|
$('#compare-set').modal('hide');
|
|
|
Cookies.set(comparePhaseKey, phase1 + ',' + phase2);
|
|
|
},
|
|
|
+ reCalcColVisible() {
|
|
|
+ const type = this.compareType;
|
|
|
+ spreadSetting.cols.forEach(x => {
|
|
|
+ if (!x.bc_type) return;
|
|
|
+ x.visible = x.bc_type === type && x.defaultVisible;
|
|
|
+ });
|
|
|
+ },
|
|
|
curFinalId() {
|
|
|
return this.finalInfo ? this.finalInfo.id : undefined;
|
|
|
},
|
|
@@ -325,13 +332,6 @@ $(document).ready(() => {
|
|
|
const colIndex = spreadSetting.cols.findIndex(x => { return x.field === 'stackedBar'});
|
|
|
SpreadJsObj.reloadColData(compareSheet, colIndex);
|
|
|
},
|
|
|
- reCalcColVisible() {
|
|
|
- const type = this.compareType;
|
|
|
- spreadSetting.cols.forEach(x => {
|
|
|
- if (!x.bc_type) return;
|
|
|
- x.visible = x.bc_type === type && x.defaultVisible;
|
|
|
- });
|
|
|
- },
|
|
|
setCompareType(type) {
|
|
|
this.compareType = type || 'number';
|
|
|
$('[name=showType]').removeClass('active');
|