|
@@ -15,10 +15,10 @@ export function handleForm() {
|
|
|
};
|
|
};
|
|
|
const rules = {
|
|
const rules = {
|
|
|
price: [
|
|
price: [
|
|
|
- { require, trigger: 'blur', type: 'number', validator: v_num },
|
|
|
|
|
|
|
+ { require: true, trigger: 'blur', type: 'number', validator: v_num },
|
|
|
],
|
|
],
|
|
|
num: [
|
|
num: [
|
|
|
- { require, message: '请输入挂牌数量', trigger: 'blur', type: 'number' },
|
|
|
|
|
|
|
+ { require: true, message: '请输入挂牌数量', trigger: 'blur', type: 'number' },
|
|
|
{ message: '挂牌数量小于1', min: 1, type: 'number' }
|
|
{ message: '挂牌数量小于1', min: 1, type: 'number' }
|
|
|
],
|
|
],
|
|
|
}
|
|
}
|