From a2649cd1a73bb6cb7d922da31106a223c6ab8259 Mon Sep 17 00:00:00 2001 From: water_xu Date: Thu, 15 Aug 2024 10:01:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E4=BF=A1=E6=81=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20-=20=E4=B8=AD=E5=BF=83=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../centercorpinfouser/components/detail.vue | 757 ++++++++++++++++++ .../components/indexList.vue | 280 +++++++ .../components/index_view.vue | 281 +++++++ .../corpInfo/centercorpinfouser/index.vue | 37 + src/views/system/group/user/index.vue | 15 +- 5 files changed, 1359 insertions(+), 11 deletions(-) create mode 100644 src/views/corpInfo/centercorpinfouser/components/detail.vue create mode 100644 src/views/corpInfo/centercorpinfouser/components/indexList.vue create mode 100644 src/views/corpInfo/centercorpinfouser/components/index_view.vue create mode 100644 src/views/corpInfo/centercorpinfouser/index.vue 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) => {