|
|
@ -26,6 +26,8 @@ |
|
|
|
var initParams = Pool.data.getInitParams(); |
|
|
|
var initParams = Pool.data.getInitParams(); |
|
|
|
var align = Pool.data.getAlign(); |
|
|
|
var align = Pool.data.getAlign(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var insert_param; |
|
|
|
|
|
|
|
|
|
|
|
var getDimensionIds = function (params) { |
|
|
|
var getDimensionIds = function (params) { |
|
|
|
var result = []; |
|
|
|
var result = []; |
|
|
|
var paramGroup = params.split("|"); |
|
|
|
var paramGroup = params.split("|"); |
|
|
@ -88,7 +90,13 @@ |
|
|
|
{type: "bi.rich_editor_color_chooser"}, |
|
|
|
{type: "bi.rich_editor_color_chooser"}, |
|
|
|
{type: "bi.rich_editor_align_left_button"}, |
|
|
|
{type: "bi.rich_editor_align_left_button"}, |
|
|
|
{type: "bi.rich_editor_align_center_button"}, |
|
|
|
{type: "bi.rich_editor_align_center_button"}, |
|
|
|
{type: "bi.rich_editor_align_right_button"} |
|
|
|
{type: "bi.rich_editor_align_right_button"}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
type: "bi.design.chart.common.editor.insert_param", |
|
|
|
|
|
|
|
ref: function (_ref) { |
|
|
|
|
|
|
|
insert_param = _ref; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
ref: function (_ref) { |
|
|
|
ref: function (_ref) { |
|
|
@ -119,27 +127,11 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Pool.addField = function () { |
|
|
|
Pool.addField = function () { |
|
|
|
var editorService = BI.Services.getService("bi.service.design.chart.common.editor"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var content = Pool.data.getContent(); |
|
|
|
|
|
|
|
var isAuto = Pool.data.isAuto(); |
|
|
|
|
|
|
|
var params = Pool.data.getParams(); |
|
|
|
|
|
|
|
var addition = Pool.data.getAddition(); |
|
|
|
var addition = Pool.data.getAddition(); |
|
|
|
|
|
|
|
|
|
|
|
if (addition) { |
|
|
|
if (addition && insert_param) { |
|
|
|
// todo 暂时先处理成在content后加一行 |
|
|
|
insert_param.selectedParam(addition); |
|
|
|
content += '<p style="text-align:' + align + ';">' + editorService.getEditorParamImage(addition) + '<br></p>'; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
rich_editor.editor.bindToolbar(rich_editor.bar); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rich_editor.setValue({ |
|
|
|
|
|
|
|
content: content, |
|
|
|
|
|
|
|
isAuto: isAuto, |
|
|
|
|
|
|
|
dimensionIds: getDimensionIds(params) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rich_editor.setFocus(); |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Pool.update = function () { |
|
|
|
Pool.update = function () { |
|
|
|