|
|
@ -791,15 +791,17 @@ export default { |
|
|
|
}, |
|
|
|
]; |
|
|
|
const getOperators = (schema) => { |
|
|
|
const values = ["equal", "notEqual"]; |
|
|
|
const values = ["equal", "notEqual","biggerThanOrEqual","smallThanOrEqual"]; |
|
|
|
if (schema.type === "string") { |
|
|
|
values.push("like", "notLike"); |
|
|
|
if (schema.input && ["year", "month", "date", "datetime"].includes(schema.input)) { |
|
|
|
values.push("biggerThan", "smallThan", "biggerThanOrEqual", "smallThanOrEqual"); |
|
|
|
//values.push("biggerThan", "smallThan", "biggerThanOrEqual", "smallThanOrEqual");
|
|
|
|
values.push("biggerThan", "smallThan"); |
|
|
|
} |
|
|
|
} else if (schema.type === "boolean") { |
|
|
|
} else { |
|
|
|
values.push("biggerThan", "smallThan", "biggerThanOrEqual", "smallThanOrEqual"); |
|
|
|
//values.push("biggerThan", "smallThan", "biggerThanOrEqual", "smallThanOrEqual");
|
|
|
|
values.push("biggerThan", "smallThan"); |
|
|
|
} |
|
|
|
return operators.filter((o) => values.includes(o.value)); |
|
|
|
}; |
|
|
|