From 56d93f6bcd953f91ce99eb4a52c0ce80414715e6 Mon Sep 17 00:00:00 2001 From: weikai <123456> Date: Tue, 1 Dec 2020 15:53:01 +0800 Subject: [PATCH 01/17] =?UTF-8?q?=E3=80=90=E5=AE=89=E5=AE=81pc=E7=AB=AF=20?= =?UTF-8?q?=E5=85=9A=E5=91=98=E7=AE=A1=E7=90=86=E3=80=91-=E3=80=90?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=A0=87=E7=AD=BE=20-=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E6=A0=87=E7=AD=BE=E3=80=91=E9=AD=8F=E5=87=AF?= =?UTF-8?q?=202020-12-01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/user/tag-property.vue | 139 ++++++++++++++++++++++++ src/views/modules/user/usertag.vue | 33 +++++- 2 files changed, 170 insertions(+), 2 deletions(-) create mode 100644 src/views/modules/user/tag-property.vue diff --git a/src/views/modules/user/tag-property.vue b/src/views/modules/user/tag-property.vue new file mode 100644 index 0000000..e22a068 --- /dev/null +++ b/src/views/modules/user/tag-property.vue @@ -0,0 +1,139 @@ + + + + \ No newline at end of file diff --git a/src/views/modules/user/usertag.vue b/src/views/modules/user/usertag.vue index c1de2f7..3a13543 100644 --- a/src/views/modules/user/usertag.vue +++ b/src/views/modules/user/usertag.vue @@ -26,6 +26,7 @@ @@ -42,6 +43,8 @@ + + @@ -49,6 +52,7 @@ From d1682561663e096e2ca328eab5fb39d697328830 Mon Sep 17 00:00:00 2001 From: weikai <123456> Date: Tue, 1 Dec 2020 18:38:14 +0800 Subject: [PATCH 02/17] =?UTF-8?q?=E3=80=90=E5=AE=89=E5=AE=81pc=E7=AB=AF=20?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86=E3=80=91-=E3=80=90?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=A0=87=E7=AD=BE=20-=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E6=A0=87=E7=AD=BE=E3=80=91=E9=AD=8F=E5=87=AF?= =?UTF-8?q?=202020-12-01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/hasAuthenticationpartymembers.vue | 44 +++- src/views/modules/user/party-review.vue | 9 - src/views/modules/user/party-user-tag.vue | 222 ++++++++++++++++++ 3 files changed, 254 insertions(+), 21 deletions(-) create mode 100644 src/views/modules/user/party-user-tag.vue diff --git a/src/views/modules/user/hasAuthenticationpartymembers.vue b/src/views/modules/user/hasAuthenticationpartymembers.vue index 7106cd5..9a6a99f 100644 --- a/src/views/modules/user/hasAuthenticationpartymembers.vue +++ b/src/views/modules/user/hasAuthenticationpartymembers.vue @@ -12,17 +12,6 @@ clearable> -
+ + + + + diff --git a/src/views/modules/user/party-review.vue b/src/views/modules/user/party-review.vue index 5015e20..126eff3 100644 --- a/src/views/modules/user/party-review.vue +++ b/src/views/modules/user/party-review.vue @@ -55,15 +55,6 @@ 选“否”该用户会认证为居民,并加入已认证居民列表

- - - - - - + + + + + + + + + + + + + {{dataForm.allDeptNames}} + + + + + + + + + + + + + + + \ No newline at end of file From 29c001df4595e846ca300fc50d807925dfd7ebc5 Mon Sep 17 00:00:00 2001 From: weikai <123456> Date: Tue, 1 Dec 2020 19:01:40 +0800 Subject: [PATCH 03/17] =?UTF-8?q?=E3=80=90=E5=AE=89=E5=AE=81pc=E7=AB=AF=20?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86=E3=80=91-=E3=80=90?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=A0=87=E7=AD=BE=20-=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E6=A0=87=E7=AD=BE=E3=80=91=E9=AD=8F=E5=87=AF?= =?UTF-8?q?=202020-12-01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/user/party-user-tag.vue | 1 - .../modules/user/pass-authentication.vue | 20 +- src/views/modules/user/user-tag1.vue | 181 ++++++++++++++++++ 3 files changed, 200 insertions(+), 2 deletions(-) create mode 100644 src/views/modules/user/user-tag1.vue diff --git a/src/views/modules/user/party-user-tag.vue b/src/views/modules/user/party-user-tag.vue index feb3600..454cde5 100644 --- a/src/views/modules/user/party-user-tag.vue +++ b/src/views/modules/user/party-user-tag.vue @@ -154,7 +154,6 @@ export default { }, // 确定 dataFormSubmitHandle: debounce(function () { - debugger this.$refs['dataForm'].validate((valid) => { if (!valid) { return false diff --git a/src/views/modules/user/pass-authentication.vue b/src/views/modules/user/pass-authentication.vue index 52e9e42..aa54856 100644 --- a/src/views/modules/user/pass-authentication.vue +++ b/src/views/modules/user/pass-authentication.vue @@ -133,6 +133,9 @@ 管理支部 + 身份标签管理 查看 @@ -156,6 +159,10 @@ + + @@ -164,6 +171,7 @@ import mixinViewModule from '@/mixins/view-module' import AddOrUpdate from './user-add-or-update' import UserDetail from './user-detail' +import UserTag from './user-tag1' import UserGrid from './user-grid' export default { mixins: [mixinViewModule], @@ -208,6 +216,7 @@ export default { deptIdList: [], options: [], userDetailVisible: false, + userDetailVisible1: false, userGridVisible: false, streetOptions: [], communityOptions: [], @@ -386,11 +395,20 @@ export default { e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') this.dataForm.mobile = e.target.value }, + partyReview(userId){ + this.userDetailVisible1 = true + this.$nextTick(() => { + this.$refs.userDetail.dataForm.id = userId + this.$refs.userDetail.init() + }) + } }, components: { AddOrUpdate, UserDetail, - UserGrid + UserGrid, + UserTag } + } diff --git a/src/views/modules/user/user-tag1.vue b/src/views/modules/user/user-tag1.vue new file mode 100644 index 0000000..47409f2 --- /dev/null +++ b/src/views/modules/user/user-tag1.vue @@ -0,0 +1,181 @@ + + + From c0bf6dfac01f09846438257016e23e7eeed80d06 Mon Sep 17 00:00:00 2001 From: weikai <123456> Date: Wed, 2 Dec 2020 16:01:59 +0800 Subject: [PATCH 04/17] =?UTF-8?q?=E3=80=90=E5=AE=89=E5=AE=81pc=E7=AB=AF=20?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86=E3=80=91-=E3=80=90?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=A0=87=E7=AD=BE=20-=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E6=A0=87=E7=AD=BE=E3=80=91=E9=AD=8F=E5=87=AF?= =?UTF-8?q?=202020-12-01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/hasAuthenticationpartymembers.vue | 3 ++- src/views/modules/user/party-user-tag.vue | 10 ++++---- .../modules/user/pass-authentication.vue | 12 +++++----- src/views/modules/user/user-tag1.vue | 23 ++++--------------- 4 files changed, 17 insertions(+), 31 deletions(-) diff --git a/src/views/modules/user/hasAuthenticationpartymembers.vue b/src/views/modules/user/hasAuthenticationpartymembers.vue index 9a6a99f..4ad3185 100644 --- a/src/views/modules/user/hasAuthenticationpartymembers.vue +++ b/src/views/modules/user/hasAuthenticationpartymembers.vue @@ -134,7 +134,7 @@ @@ -402,6 +402,7 @@ export default { } }, partyReview (userId) { + debugger this.partyReviewVisible = true this.$nextTick(() => { this.$refs.partyReview.dataForm.id = userId diff --git a/src/views/modules/user/party-user-tag.vue b/src/views/modules/user/party-user-tag.vue index 454cde5..eb87d90 100644 --- a/src/views/modules/user/party-user-tag.vue +++ b/src/views/modules/user/party-user-tag.vue @@ -32,7 +32,7 @@ {{dataForm.allDeptNames}} - + { + this.$http.get(`/app-user/user/${this.dataForm.id}`).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } @@ -142,8 +142,6 @@ export default { this.dataForm.partyFlag = '1' // 默认是党员 this.dataForm.tagIds = [] this.dataForm.partyFlag = '' - this.dataForm.tagIds = '' - this.dataForm.partyTagIds = [] }).catch(() => { }) this.$http.get(`/app-user/usergrid/listUserGrid/${this.dataForm.id}`).then(({ data: res }) => { if (res.code !== 0) { @@ -161,7 +159,7 @@ export default { this.isAble = true let postData = { userId: this.dataForm.id, - tagIds: this.dataForm.tagIdsNew + tagIds: this.dataForm.partyTagIds } this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/usertagrelation/addTag/', postData).then(({ data: res }) => { this.isAble = false diff --git a/src/views/modules/user/pass-authentication.vue b/src/views/modules/user/pass-authentication.vue index aa54856..d9357e0 100644 --- a/src/views/modules/user/pass-authentication.vue +++ b/src/views/modules/user/pass-authentication.vue @@ -160,8 +160,8 @@ ref="userGrid" @refreshDataList="getDataList"> - @@ -216,7 +216,7 @@ export default { deptIdList: [], options: [], userDetailVisible: false, - userDetailVisible1: false, + tagVisble: false, userGridVisible: false, streetOptions: [], communityOptions: [], @@ -396,10 +396,10 @@ export default { this.dataForm.mobile = e.target.value }, partyReview(userId){ - this.userDetailVisible1 = true + this.tagVisble = true this.$nextTick(() => { - this.$refs.userDetail.dataForm.id = userId - this.$refs.userDetail.init() + this.$refs.userTag.dataForm.id = userId + this.$refs.userTag.init() }) } }, diff --git a/src/views/modules/user/user-tag1.vue b/src/views/modules/user/user-tag1.vue index 47409f2..59c50d1 100644 --- a/src/views/modules/user/user-tag1.vue +++ b/src/views/modules/user/user-tag1.vue @@ -39,22 +39,8 @@ prop="remark"> {{dataForm.remark}} - - - - - - - - - - - + @@ -82,8 +69,8 @@ export default { partyFlag: '', cadreFlag: '', state: '', - tagIds: [], - remark: '' + remark: '', + partyTagIds:[], }, partyFlagOptions: [{ id: '0', name: '不是' }, { id: '1', name: '是' }], cadreOptions: [{ cadreFlag: '1', cadreTitle: '是' }, { cadreFlag: '0', cadreTitle: '否' }], @@ -156,7 +143,7 @@ export default { this.isAble = true let postData = { userId: this.dataForm.id, - tagIds: this.dataForm.tagIdsNew + tagIds: this.dataForm.partyTagIds } this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/usertagrelation/addTag/', postData).then(({ data: res }) => { this.isAble = false From 6386b868b0f17f06fc56d74db46528ed69473896 Mon Sep 17 00:00:00 2001 From: weikai <123456> Date: Wed, 2 Dec 2020 18:39:17 +0800 Subject: [PATCH 05/17] =?UTF-8?q?=E3=80=90=E5=AE=89=E5=AE=81pc=E7=AB=AF=20?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86=E3=80=91-=E3=80=90?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=A0=87=E7=AD=BE=20-=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E6=A0=87=E7=AD=BE=E5=B1=9E=E6=80=A7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E3=80=91=E9=AD=8F=E5=87=AF=202020-12-01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/tagproperty-add-or-update.vue | 145 ++++++++++++++++++ src/views/modules/user/tagproperty.vue | 75 +++++++++ 2 files changed, 220 insertions(+) create mode 100644 src/views/modules/user/tagproperty-add-or-update.vue create mode 100644 src/views/modules/user/tagproperty.vue diff --git a/src/views/modules/user/tagproperty-add-or-update.vue b/src/views/modules/user/tagproperty-add-or-update.vue new file mode 100644 index 0000000..3784d44 --- /dev/null +++ b/src/views/modules/user/tagproperty-add-or-update.vue @@ -0,0 +1,145 @@ + + + diff --git a/src/views/modules/user/tagproperty.vue b/src/views/modules/user/tagproperty.vue new file mode 100644 index 0000000..972c1ec --- /dev/null +++ b/src/views/modules/user/tagproperty.vue @@ -0,0 +1,75 @@ + + + From 45ea1a31b3c1db8f9aa821565e524e92de207fc1 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 3 Dec 2020 13:39:44 +0800 Subject: [PATCH 06/17] =?UTF-8?q?=E3=80=90=E6=A0=87=E7=AD=BE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E3=80=91=E5=B1=9E=E6=80=A7=E9=85=8D=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2-=E7=8E=8B=E5=85=AC=E5=B3=B0-2020-12-03?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/user/tag-property.vue | 139 +++++++++--------------- src/views/modules/user/usertag.vue | 14 +-- 2 files changed, 59 insertions(+), 94 deletions(-) diff --git a/src/views/modules/user/tag-property.vue b/src/views/modules/user/tag-property.vue index e22a068..060da17 100644 --- a/src/views/modules/user/tag-property.vue +++ b/src/views/modules/user/tag-property.vue @@ -3,56 +3,22 @@ title="选择标签属性" :close-on-click-modal="false" :close-on-press-escape="false" - width="80%" + width="600px" height="90%">
- - - - - - {{ $t('query') }} + + + + + + + + - - - - - - - - - - {{"确定"}} + {{"确定"}}
@@ -61,69 +27,70 @@ @@ -136,4 +103,4 @@ export default { .el-button--success{ margin-top: 0px!important; } - \ No newline at end of file + diff --git a/src/views/modules/user/usertag.vue b/src/views/modules/user/usertag.vue index 3a13543..4a21591 100644 --- a/src/views/modules/user/usertag.vue +++ b/src/views/modules/user/usertag.vue @@ -26,7 +26,7 @@ @@ -52,7 +52,7 @@ From 73dc1816a212b2b0f9a52b7f66082e3e62ca25e8 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 3 Dec 2020 14:12:56 +0800 Subject: [PATCH 07/17] =?UTF-8?q?=E3=80=90=E6=A0=87=E7=AD=BE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E3=80=91=E5=B1=9E=E6=80=A7=E9=85=8D=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2-=E7=8E=8B=E5=85=AC=E5=B3=B0-2020-12-03?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/user/tag-property.vue | 15 +++++++++++++-- src/views/modules/user/usertag.vue | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/views/modules/user/tag-property.vue b/src/views/modules/user/tag-property.vue index 060da17..1822bc1 100644 --- a/src/views/modules/user/tag-property.vue +++ b/src/views/modules/user/tag-property.vue @@ -18,7 +18,7 @@
- {{"确定"}} + {{"确定"}} @@ -45,13 +45,15 @@ export default { tagid: '', tagPropertyid: '' }, - paramNameArr: [] + paramNameArr: [], + isAble: false } }, methods: { // 获取数据列表 init (tagId, propertyId, relationId) { this.visible = true + this.isAble = false this.$nextTick(() => { // 调用获取标签属性下拉信息接口 this.getParamListInfo() @@ -76,8 +78,17 @@ export default { }, // 表单提交 dataFormSubmitHandle: debounce(function () { + if (this.dataForm.tagPropertyid === '' || this.dataForm.tagPropertyid === null) { + this.$message({ + message: '请选择标签属性!', + type: 'warning' + }) + return false + } + this.isAble = true this.$http[!this.dataForm.id ? 'post' : 'put']('/app-user/tagproperty/', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { + this.isAble = false return this.$message.error(res.msg) } this.$message({ diff --git a/src/views/modules/user/usertag.vue b/src/views/modules/user/usertag.vue index 4a21591..b49e432 100644 --- a/src/views/modules/user/usertag.vue +++ b/src/views/modules/user/usertag.vue @@ -24,6 +24,7 @@ +