条件式比較バグ修正
This commit is contained in:
@@ -327,7 +327,12 @@ export class ConditionTree {
|
||||
return object;
|
||||
}
|
||||
if(object.objectType==='field'){
|
||||
return context.record[object.code].value;
|
||||
const fieldValue = context.record[object.code];
|
||||
if(fieldValue.type==='NUMBER'){
|
||||
return Number(fieldValue.value);
|
||||
}else{
|
||||
return fieldValue.value;
|
||||
}
|
||||
}else if(object.objectType==='var'){
|
||||
return context.variables[object.varName].value;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import { actionAddins } from "../actions";
|
||||
import '../actions/must-input';
|
||||
import '../actions/auto-numbering';
|
||||
import '../actions/field-shown';
|
||||
import '../actions/error-show';
|
||||
import { ActionFlow,IActionFlow, IActionResult,IContext } from "./ActionTypes";
|
||||
|
||||
export class ActionProcess{
|
||||
|
||||
Reference in New Issue
Block a user