{
emit('rowClick', evt, row, index);
}
"
@before-request-data="
() => {
emit('beforeRequestData');
}
"
@after-editor-open="
(row) => {
const type = gridRef.getEditorForm().getFieldValue('type');
if (type === 'INDICATOR') {
axios.get(Environment.apiContextPath('/api/re/lib/isc/getLibInformationWrapper')).then((response) => {
IndicatorManager.setWrapper(response.data);
libCodeOptionsRef = IndicatorManager.getLibMap();
libVersionOptionsRef = IndicatorManager.getLibVersionMap(row.libCode);
indicatorCodeOptionsRef = IndicatorManager.getIndicatorMap(row.libCode, row.libVersion);
});
}
const valueType = gridRef.getEditorForm().getFieldValue('valueType');
if (valueType) {
if (
valueType !== 'java.lang.Boolean' &&
valueType !== 'java.lang.Long' &&
valueType !== 'java.lang.Float' &&
valueType !== 'Float' &&
valueType !== 'java.math.BigDecimal' &&
valueType !== 'java.lang.String' &&
valueType !== 'java.util.Date' &&
valueType !== 'io.sc.engine.rule.core.classes.ResourceAbstract' &&
valueType !== 'io.sc.engine.rule.core.classes.RuleResult' &&
valueType !== 'io.sc.engine.rule.core.classes.SingleRuleResult' &&
!valueType.startsWith('List') &&
!valueType.startsWith('Map') &&
ValueTypeMap[valueType]
) {
axios.get(Environment.apiContextPath('/api/re/dictionary/getVersionsByCode?code=' + valueType)).then((response) => {
const versions = response.data;
const options = [];
for (const version of versions) {
options.push({ label: version.key, value: version.value });
}
valueTypeVersionOptionsRef = options;
});
}
}
}
"
>