Showing
1 changed file
with
11 additions
and
1 deletions
... | ... | @@ -235,7 +235,17 @@ export const QxParameterSetting: React.FC<ParameterSettingProps> = (props) => { |
235 | 235 | const { qxProps } = data; |
236 | 236 | value = moment(value).format(formatEnum[qxProps?.format] || 'YYYY-MM-DD'); |
237 | 237 | } |
238 | - | |
238 | + else if (code == 'qxProps-min' || code == 'qxProps-max') { | |
239 | + if (value) { | |
240 | + value = Number(value) | |
241 | + if (isNaN(value)) { | |
242 | + value = null | |
243 | + } | |
244 | + } else { | |
245 | + value = null | |
246 | + } | |
247 | + console.log('value', value); | |
248 | + } | |
239 | 249 | if (code == 'type') { |
240 | 250 | if (data.child && data.child.length > 0) { |
241 | 251 | message.error('该节点含有子节点,无法更改类型,请重试!'); | ... | ... |