|
@@ -28,12 +28,13 @@ let calculationTreeOprObj = {
|
|
|
},
|
|
|
buildRunType: function() {
|
|
|
let et = $("#exprRunType");
|
|
|
- et.append("<option value='" + JV.RUN_TYPE_BEFORE_PAGING + "'>预运行</option>");
|
|
|
- et.append("<option value='" + JV.RUN_TYPE_BEFORE_OUTPUT + "'>实时运行</option>");
|
|
|
- et.append("<option value='" + JV.RUN_TYPE_BEFORE_ANALYZING + "'>数据分析前运行</option>");
|
|
|
- et.append("<option value='" + JV.RUN_TYPE_BEFORE_COMBINE + "'>合并单元格前事件</option>");
|
|
|
- et.append("<option value='" + JV.RUN_TYPE_AFTER_COMBINE + "'>合并单元格后事件</option>");
|
|
|
- et.append("<option value='" + JV.RUN_TYPE_BEFORE_GROUP_TEXT_OUT + "'>分组text输出前事件</option>");
|
|
|
+ et.append(`<option value="${JV.RUN_TYPE_BEFORE_PAGING}">默认运行</option>`);
|
|
|
+ et.append(`<option value="${JV.RUN_TYPE_BEFORE_OUTPUT}">每页实时运行</option>`);
|
|
|
+ et.append(`<option value="${JV.RUN_TYPE_BEFORE_ANALYZING}">数据分析前运行</option>`);
|
|
|
+ et.append(`<option value="${JV.RUN_TYPE_BEFORE_COMBINE}">合并单元格前事件</option>`);
|
|
|
+ et.append(`<option value="${JV.RUN_TYPE_AFTER_COMBINE}">合并单元格后事件</option>`);
|
|
|
+ et.append(`<option value="${JV.RUN_TYPE_BEFORE_GROUP_TEXT_OUT}">分组text输出前事件</option>`);
|
|
|
+ et.append(`<option value="${JV.RUN_TYPE_RESET_CROSS_COLUMNS}">重设交叉表列数</option>`);
|
|
|
},
|
|
|
buildTreeData: function (rptTpl) {
|
|
|
let me = this, rst = {"Name": "计算式", items: []};
|
|
@@ -103,8 +104,14 @@ let calculationTreeOprObj = {
|
|
|
$("#exprRunType")[0].selectedIndex = 2;
|
|
|
} else if (treeNode[JV.PROP_RUN_TYPE] === JV.RUN_TYPE_BEFORE_COMBINE) {
|
|
|
$("#exprRunType")[0].selectedIndex = 3;
|
|
|
- } else {
|
|
|
+ } else if (treeNode[JV.PROP_RUN_TYPE] === JV.RUN_TYPE_AFTER_COMBINE) {
|
|
|
$("#exprRunType")[0].selectedIndex = 4;
|
|
|
+ } else if (treeNode[JV.PROP_RUN_TYPE] === JV.RUN_TYPE_BEFORE_GROUP_TEXT_OUT) {
|
|
|
+ $("#exprRunType")[0].selectedIndex = 5;
|
|
|
+ } else if (treeNode[JV.PROP_RUN_TYPE] === JV.RUN_TYPE_RESET_CROSS_COLUMNS) {
|
|
|
+ $("#exprRunType")[0].selectedIndex = 6;
|
|
|
+ } else {
|
|
|
+ $("#exprRunType")[0].selectedIndex = 2;
|
|
|
}
|
|
|
$("#exprFormat")[0].value = (treeNode["format"])?treeNode["format"]:"";
|
|
|
$("#exprContent")[0].value = treeNode[JV.PROP_EXPRESSION];
|