diff --git a/src/views/corpInfo/centercorpinfouser/components/detail.vue b/src/views/corpInfo/centercorpinfouser/components/detail.vue new file mode 100644 index 0000000..b567e75 --- /dev/null +++ b/src/views/corpInfo/centercorpinfouser/components/detail.vue @@ -0,0 +1,757 @@ + + + + + + diff --git a/src/views/corpInfo/centercorpinfouser/components/indexList.vue b/src/views/corpInfo/centercorpinfouser/components/indexList.vue new file mode 100644 index 0000000..f1fb5e3 --- /dev/null +++ b/src/views/corpInfo/centercorpinfouser/components/indexList.vue @@ -0,0 +1,280 @@ + + + diff --git a/src/views/corpInfo/centercorpinfouser/components/index_view.vue b/src/views/corpInfo/centercorpinfouser/components/index_view.vue new file mode 100644 index 0000000..8615590 --- /dev/null +++ b/src/views/corpInfo/centercorpinfouser/components/index_view.vue @@ -0,0 +1,281 @@ + + + diff --git a/src/views/corpInfo/centercorpinfouser/index.vue b/src/views/corpInfo/centercorpinfouser/index.vue new file mode 100644 index 0000000..e9a16c0 --- /dev/null +++ b/src/views/corpInfo/centercorpinfouser/index.vue @@ -0,0 +1,37 @@ + + diff --git a/src/views/system/group/user/index.vue b/src/views/system/group/user/index.vue index 5390f70..62fcc94 100644 --- a/src/views/system/group/user/index.vue +++ b/src/views/system/group/user/index.vue @@ -275,14 +275,7 @@ export default { ROLE_ID: [ { required: true, message: '角色不能为空', trigger: 'blur' } ], - USERNAME: [ - { required: true, message: '用户名不能为空', trigger: 'blur' }, - { - pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/, - message: '用户名需使用手机号码格式' - }, - { validator: hasUser, trigger: 'blur' } - ], + NAME: [ { required: true, message: '姓名不能为空', trigger: 'blur' }, { min: 2, max: 30, message: '长度在 2 到 30 个字符', trigger: 'blur' } @@ -482,9 +475,9 @@ export default { }) }, goCheck() { - if (this.pd.USER_ID_CARD && this.pd.USERNAME) { + if (this.pd.USER_ID_CARD && this.pd.PHONE) { const phoneJudge = /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[0-9])\d{8}$/ - const phoneResult = phoneJudge.test(this.pd.USERNAME) + const phoneResult = phoneJudge.test(this.pd.PHONE) const cardJudge = /^[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]$/ const cardResult = cardJudge.test(this.pd.USER_ID_CARD) if (phoneResult && cardResult) { @@ -493,7 +486,7 @@ export default { 'user/goCheck', { CARD_NO: this.pd.USER_ID_CARD, - USERNAME: this.pd.USERNAME, + USERNAME: this.pd.PHONE, USER_ID: this.pd.USER_ID || '' } ).then((data) => {