{
emit('rowClick', args);
}
"
@before-request-data="
(args) => {
emit('beforeRequestData');
}
"
@after-editor-open="
(args) => {
const type = args.grid.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 = args.grid.getEditorForm().getFieldValue('valueType');
if (valueType) {
if (!ValueTypeUtil.isBase(valueType) && ValueTypeMap[valueType]) {
axios.get(Environment.apiContextPath('/api/re/dictionary/getVersionsByCode?code=' + valueType)).then((response) => {
const versions = response.data;
const options = [];
versions.forEach((version) => {
options.push({ label: version.key, value: version.value });
});
valueTypeVersionOptionsRef = options;
});
}
}
}
"
>