|
|
@ -50415,8 +50415,9 @@ BI.FormulaEditor = BI.inherit(BI.Single, { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 添加字段 |
|
|
|
* 添加字段 |
|
|
|
* @param fieldId |
|
|
|
* @param fieldId |
|
|
|
|
|
|
|
* @param force, 判断是否强制不标红 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
insertField: function (fieldId) { |
|
|
|
insertField: function (fieldId, force) { |
|
|
|
var value = fieldId; |
|
|
|
var value = fieldId; |
|
|
|
var fieldFormattedName = this.options.paramFormatter(fieldId) || "undefined"; |
|
|
|
var fieldFormattedName = this.options.paramFormatter(fieldId) || "undefined"; |
|
|
|
var from = this.editor.getCursor(); |
|
|
|
var from = this.editor.getCursor(); |
|
|
@ -50427,7 +50428,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, { |
|
|
|
this.editor.replaceSelection("\u200b" + showName + "\u200b"); |
|
|
|
this.editor.replaceSelection("\u200b" + showName + "\u200b"); |
|
|
|
var to = this.editor.getCursor(); |
|
|
|
var to = this.editor.getCursor(); |
|
|
|
var className = "fieldName"; |
|
|
|
var className = "fieldName"; |
|
|
|
if (BI.isNotNull(fieldFormattedName.match(/^<!.*!>$/))) { |
|
|
|
if (BI.isNotNull(fieldFormattedName.match(/^<!.*!>$/)) && !force) { |
|
|
|
className = "error-field"; |
|
|
|
className = "error-field"; |
|
|
|
} |
|
|
|
} |
|
|
|
this.editor.markText(from, to, {className: className, atomic: true, startStyle: "start", endStyle: "end", value: value}); |
|
|
|
this.editor.markText(from, to, {className: className, atomic: true, startStyle: "start", endStyle: "end", value: value}); |
|
|
@ -90331,7 +90332,7 @@ BI.DownListPopup = BI.inherit(BI.Pane, { |
|
|
|
}], |
|
|
|
}], |
|
|
|
cls: "bi-down-list-spliter-container cursor-pointer", |
|
|
|
cls: "bi-down-list-spliter-container cursor-pointer", |
|
|
|
lgap: 10, |
|
|
|
lgap: 10, |
|
|
|
rgap: 10 |
|
|
|
rgap: 0 |
|
|
|
}); |
|
|
|
}); |
|
|
|
result.push(spliter_container); |
|
|
|
result.push(spliter_container); |
|
|
|
} |
|
|
|
} |
|
|
@ -95074,7 +95075,7 @@ BI.MultiLayerDownListPopup = BI.inherit(BI.Pane, { |
|
|
|
}], |
|
|
|
}], |
|
|
|
cls: "bi-down-list-spliter-container cursor-pointer", |
|
|
|
cls: "bi-down-list-spliter-container cursor-pointer", |
|
|
|
lgap: 10, |
|
|
|
lgap: 10, |
|
|
|
rgap: 10 |
|
|
|
rgap: 0 |
|
|
|
}); |
|
|
|
}); |
|
|
|
result.push(spliter_container); |
|
|
|
result.push(spliter_container); |
|
|
|
} |
|
|
|
} |
|
|
|