{
axios.get(Environment.apiContextPath('/api/re/model/parameter/listParemterHintsByParameterId/' + parameter.id)).then((response) => {
const names = [];
if (response.data?.parentParameterNames && response.data?.parentParameterNames.length > 0) {
for (const item of response.data?.parentParameterNames) {
names.push({ label: item, type: 'variable', apply: '${' + item + '}' });
}
}
if (response.data?.parameterNames && response.data?.parameterNames.length > 0) {
for (const item of response.data?.parameterNames) {
names.push({ label: item, type: 'variable', apply: '${' + item + '}' });
}
}
autoCompletionOptionsRef = names;
});
axios.get(Environment.apiContextPath('/api/re/model/parameter/listParemtersByParameterId/' + parameter.id)).then((response) => {
const parameters = [];
if (response.data) {
for (const parameter of response.data) {
if ('IN_OPTION' === parameter.type) {
parameters.push({ label: parameter.name, value: parameter.code });
}
}
}
optionOptionsRef = parameters;
});
if ('NUMBER_RANGE' === row.type) {
const fields = gridRef.getEditorForm().getFields();
console.log(fields);
numberRangeGridRef.setLocalData(Tools.json2Object(row.numberRange));
}
}
"
>