|
|
@ -41,19 +41,24 @@ |
|
|
|
var isAuto = Pool.data.isAuto(); |
|
|
|
var isAuto = Pool.data.isAuto(); |
|
|
|
var params = Pool.data.getParams(); |
|
|
|
var params = Pool.data.getParams(); |
|
|
|
|
|
|
|
|
|
|
|
var dimensionIds = []; |
|
|
|
var getDimensionIds = function (params) { |
|
|
|
|
|
|
|
var result = []; |
|
|
|
|
|
|
|
var paramGroup = params.split("-"); |
|
|
|
|
|
|
|
|
|
|
|
var paramGroup = params.split("-"); |
|
|
|
for (var i = 0, len = paramGroup.length; i < len; i++) { |
|
|
|
|
|
|
|
var [key, value] = paramGroup[i].split(":"); |
|
|
|
|
|
|
|
var param = {}; |
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0, len = paramGroup.length; i < len; i++) { |
|
|
|
param[key] = value; |
|
|
|
var [key, value] = paramGroup[i].split(":"); |
|
|
|
|
|
|
|
var param = {}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
param[key] = value; |
|
|
|
result.push(param); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dimensionIds.push(param); |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var dimensionIds = getDimensionIds(params); |
|
|
|
|
|
|
|
|
|
|
|
var rich_editor = BI.createWidget({ |
|
|
|
var rich_editor = BI.createWidget({ |
|
|
|
type: "bi.design.chart.common.editor", |
|
|
|
type: "bi.design.chart.common.editor", |
|
|
|
element: "body", |
|
|
|
element: "body", |
|
|
@ -86,8 +91,12 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
Pool.dispatch = function(){ |
|
|
|
Pool.dispatch = function () { |
|
|
|
rich_editor.setValue({content: Pool.data.getContent(), isAuto: Pool.data.isAuto()}); |
|
|
|
rich_editor.setValue({ |
|
|
|
|
|
|
|
content: Pool.data.getContent(), |
|
|
|
|
|
|
|
isAuto: Pool.data.isAuto(), |
|
|
|
|
|
|
|
dimensionIds: getDimensionIds(Pool.data.getParams()) |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Pool.update = function () { |
|
|
|
Pool.update = function () { |
|
|
|