|
@@ -169,7 +169,7 @@ const formRules: { [key: string]: FieldRule[] } = {
|
|
|
message: '请输入止损价格',
|
|
message: '请输入止损价格',
|
|
|
validator: () => {
|
|
validator: () => {
|
|
|
if (formData.SLFlag) {
|
|
if (formData.SLFlag) {
|
|
|
- const value = Number(formData.SLFlag)
|
|
|
|
|
|
|
+ const value = Number(formData.SLPrice)
|
|
|
const isInvalid = props.selectedRow.buyorsell === BuyOrSell.Buy ? value > pricePoints.value.stopLoss : value < pricePoints.value.stopLoss
|
|
const isInvalid = props.selectedRow.buyorsell === BuyOrSell.Buy ? value > pricePoints.value.stopLoss : value < pricePoints.value.stopLoss
|
|
|
return isInvalid ? '价格不在有效范围内' : true
|
|
return isInvalid ? '价格不在有效范围内' : true
|
|
|
}
|
|
}
|