| | |
| | | bashow: false, |
| | | itemSelectFlag: false, |
| | | dataOne: [{ |
| | | title: '治安巡查', |
| | | title: '治安防范巡逻', |
| | | img: '/static/workbench/task2.png', |
| | | url: '../grabOrdersZAXC/grabOrders?detailData=0', |
| | | cout: 0 |
| | | }, { |
| | | title: '治安义务宣传', |
| | | title: '治安防范宣传', |
| | | img: '/static/workbench/task1.png', |
| | | url: '../grabOrdersZAYWXC/grabOrders?detailData=0', |
| | | cout: 0 |
| | |
| | | var identity = |
| | | /(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/; |
| | | |
| | | if (value.length <= 11) { |
| | | if (phone.test(value)) { |
| | | this.form.phone = value; |
| | | return true |
| | | } else { |
| | | return callback(new Error('手机号格式不正确')); |
| | | } |
| | | // if (value.length <= 11) { |
| | | // if (phone.test(value)) { |
| | | // this.form.phone = value; |
| | | // return true |
| | | // } else { |
| | | // return callback(new Error('手机号格式不正确')); |
| | | // } |
| | | // } |
| | | |
| | | if (identity.test(value)) { |
| | | this.form.carId = value; |
| | | return true |
| | | } else { |
| | | return callback(new Error('身份证号格式不正确')); |
| | | } |
| | | |
| | | if (value.length > 11) { |
| | | if (identity.test(value)) { |
| | | this.form.carId = value; |
| | | return true |
| | | } else { |
| | | return callback(new Error('身份证号格式不正确')); |
| | | } |
| | | } |
| | | // if (value.length > 11) { |
| | | |
| | | // } |
| | | |
| | | }; |
| | | |
| | |
| | | img: 'man-add-fill', |
| | | froms: 'user', |
| | | requireds: true, |
| | | placeholder: '请输入身份证号或手机号' |
| | | placeholder: '请输入身份证号' |
| | | }, |
| | | { |
| | | title: '密码', |
| | |
| | | return |
| | | } |
| | | var that = this; |
| | | debugger |
| | | |
| | | //判断是否必填警号和工作地点 |
| | | if(that.form.role == "民警"){ |
| | | that.rules.signals[0].required = true; |