Commit 324b47f190eab3750b562f04df3cbeb11e4bf1d9

Authored by 邱嘉伟
1 parent 56ec9904

fix: 最小最大值与后端对接改成数字类型

@@ -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('该节点含有子节点,无法更改类型,请重试!');