mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 10:45:56 +08:00
[SSE] Refactoring pivot settings
This commit is contained in:
@ -73,7 +73,6 @@ define([ 'text!spreadsheeteditor/main/app/template/FieldSettingsDialog.templa
|
||||
this.handler = options.handler;
|
||||
this.props = options.props;
|
||||
this.fieldIndex = options.fieldIndex || 0;
|
||||
this.names = options.names || [];
|
||||
this.type = options.type || 0; // 0 - columns, 1 - rows, 3 - filters
|
||||
|
||||
Common.Views.AdvancedSettingsWindow.prototype.initialize.call(this, this.options);
|
||||
|
||||
@ -787,7 +787,6 @@ define([
|
||||
{
|
||||
props: me._originalProps,
|
||||
field: field,
|
||||
names: me._state.names,
|
||||
api: me.api,
|
||||
handler: function(result, value) {
|
||||
if (result == 'ok' && me.api && value) {
|
||||
@ -805,7 +804,6 @@ define([
|
||||
{
|
||||
props: me._originalProps,
|
||||
fieldIndex: pivotIndex,
|
||||
names: me._state.names,
|
||||
api: me.api,
|
||||
type: me._state.field.type,
|
||||
handler: function(result, value) {
|
||||
|
||||
@ -107,7 +107,6 @@ define([
|
||||
this.handler = options.handler;
|
||||
this.props = options.props;
|
||||
this.field = options.field || 0;
|
||||
this.names = options.names || [];
|
||||
|
||||
Common.Views.AdvancedSettingsWindow.prototype.initialize.call(this, this.options);
|
||||
},
|
||||
@ -227,9 +226,10 @@ define([
|
||||
this.cmbShowAs.setValue(show_as);
|
||||
|
||||
var data = [];
|
||||
this.names.forEach(function(item, index){
|
||||
data.push({value: index, displayValue: item});
|
||||
this.pivot_names.forEach(function (item, index) {
|
||||
data.push({value: index, displayValue: item.asc_getName() || me.cache_names[index].asc_getName()});
|
||||
});
|
||||
|
||||
this.cmbBaseField.setData(data);
|
||||
this.cmbBaseField.setValue(field.asc_getBaseField(), '');
|
||||
this.cmbBaseField.setDisabled(show_as === Asc.c_oAscShowDataAs.Normal || show_as === Asc.c_oAscShowDataAs.PercentOfTotal || show_as === Asc.c_oAscShowDataAs.PercentOfRow ||
|
||||
|
||||
Reference in New Issue
Block a user