Commit 80590df7 authored by 李苏's avatar 李苏 💬

必填字段优化

parent 8756ceb7
......@@ -87,7 +87,7 @@ service.interceptors.response.use(res => {
type: 'error'
})
return Promise.reject(new Error(msg))
} else if (code !== 200&&code!=1) {
} else if (code !== 200&&code!=='1') {
Notification.error({
title: msg
})
......
......@@ -186,7 +186,31 @@
},
/* form提交时的规则,具体规则参考官网*/
rules: {
fxd: [
{ required: true}
],
fxrq:[
{ required: true}
],
yhdd:[
{ required: true}
],
flid:[
{ required: true}
],
dj:[
{ required: true}
],
bmid:[
{ required: true}
],
nr:[
{ required: true}
],
yqzgsj:[
{ required: true}
]
}
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment