40f23ca0 by yangwei

办公电话格式校验

1 parent 803746f1
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
96 ], 96 ],
97 telephone: [ 97 telephone: [
98 { 98 {
99 pattern: /^((d{3,4})|d{3,4}-|s)?d{7,14}$/, 99 pattern: /\d{3}-\d{8}|\d{4}-\d{7}/,
100 message: "办公电话格式有误", 100 message: "办公电话格式有误",
101 trigger: "blur", 101 trigger: "blur",
102 }, 102 },
......