Showing
1 changed file
with
11 additions
and
1 deletions
@@ -235,7 +235,17 @@ export const QxParameterSetting: React.FC<ParameterSettingProps> = (props) => { | @@ -235,7 +235,17 @@ export const QxParameterSetting: React.FC<ParameterSettingProps> = (props) => { | ||
235 | const { qxProps } = data; | 235 | const { qxProps } = data; |
236 | value = moment(value).format(formatEnum[qxProps?.format] || 'YYYY-MM-DD'); | 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 | if (code == 'type') { | 249 | if (code == 'type') { |
240 | if (data.child && data.child.length > 0) { | 250 | if (data.child && data.child.length > 0) { |
241 | message.error('该节点含有子节点,无法更改类型,请重试!'); | 251 | message.error('该节点含有子节点,无法更改类型,请重试!'); |