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