diff --git a/src/views/modules/user/hasAuthenticationpartymembers.vue b/src/views/modules/user/hasAuthenticationpartymembers.vue index 7106cd5..b29c41e 100644 --- a/src/views/modules/user/hasAuthenticationpartymembers.vue +++ b/src/views/modules/user/hasAuthenticationpartymembers.vue @@ -12,17 +12,6 @@ clearable> - {{ $t('export') }} + + 批量打身份标签 + + {{scope.$index+1}} @@ -137,6 +131,17 @@ align="center" min-width="350" show-overflow-tooltip> + + + 身份标签管理 + + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/user/pass-authentication-dialog.vue b/src/views/modules/user/pass-authentication-dialog.vue new file mode 100644 index 0000000..0cdc7b1 --- /dev/null +++ b/src/views/modules/user/pass-authentication-dialog.vue @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + {{"确定"}} + + + + + + + + diff --git a/src/views/modules/user/pass-authentication.vue b/src/views/modules/user/pass-authentication.vue index 52e9e42..4bde1d0 100644 --- a/src/views/modules/user/pass-authentication.vue +++ b/src/views/modules/user/pass-authentication.vue @@ -86,13 +86,18 @@ type="success" @click="exportHandle()">{{ $t('export') }} + + 批量打身份标签 + + {{scope.$index+1}} @@ -133,6 +138,9 @@ 管理支部 + 身份标签管理 查看 @@ -156,6 +164,13 @@ + + + + + @@ -164,7 +179,9 @@ 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' +import PassAuthenticationDialog from './pass-authentication-dialog' export default { mixins: [mixinViewModule], data () { @@ -189,6 +206,7 @@ export default { partyFlag: '0', // 是否是党员(0-否,1-是) state: '3' }, + tableSelected: [], pickerBeginDateBefore: { disabledDate: (time) => { let beginDateVal = this.dataForm.endTime @@ -208,7 +226,9 @@ export default { deptIdList: [], options: [], userDetailVisible: false, + tagVisble: false, userGridVisible: false, + dialogVisible: false, streetOptions: [], communityOptions: [], gridOptions: [], @@ -285,6 +305,26 @@ export default { this.dataForm.startTime = startDate this.dataForm.endTime = endDate }, + handleSelectionChange (val) { + this.tableSelected = val + }, + setTagHandle () { + if (this.tableSelected.length === 0) { + this.$message({ + message: '请选择居民!', + type: 'warning' + }) + return false + } + this.dialogVisible = true + this.$nextTick(() => { + var paramArr = [] + for (var i = 0; i < this.tableSelected.length; i++) { + paramArr[i] = this.tableSelected[i].id + } + this.$refs.passAuthenticationDialog.init(paramArr) + }) + }, getStreetList () { this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { if (res.code !== 0) { @@ -386,11 +426,21 @@ export default { e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') this.dataForm.mobile = e.target.value }, + partyReview(userId){ + this.tagVisble = true + this.$nextTick(() => { + this.$refs.userTag.dataForm.id = userId + this.$refs.userTag.init() + }) + } }, components: { AddOrUpdate, UserDetail, - UserGrid + UserGrid, + UserTag, + PassAuthenticationDialog } + } diff --git a/src/views/modules/user/tag-property.vue b/src/views/modules/user/tag-property.vue new file mode 100644 index 0000000..72cc41e --- /dev/null +++ b/src/views/modules/user/tag-property.vue @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + {{"确定"}} + + + + + + + + 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $t('cancel') }} + {{ $t('confirm') }} + + + + + diff --git a/src/views/modules/user/tagproperty.vue b/src/views/modules/user/tagproperty.vue new file mode 100644 index 0000000..28a5fbc --- /dev/null +++ b/src/views/modules/user/tagproperty.vue @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + {{ $t('query') }} + + + {{ $t('add') }} + + + + + + {{scope.$index+1}} + + + + + + + + + + + + + + {{ $t('update') }} + {{ $t('delete') }} + + + + + + + + + + + + diff --git a/src/views/modules/user/tagpropertyDetail.vue b/src/views/modules/user/tagpropertyDetail.vue new file mode 100644 index 0000000..6ce1498 --- /dev/null +++ b/src/views/modules/user/tagpropertyDetail.vue @@ -0,0 +1,251 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{"返回"}} + {{ $t('confirm') }} + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/user/tagpropertyRoute.vue b/src/views/modules/user/tagpropertyRoute.vue new file mode 100644 index 0000000..a8f24c5 --- /dev/null +++ b/src/views/modules/user/tagpropertyRoute.vue @@ -0,0 +1,32 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/user/user-tag1.vue b/src/views/modules/user/user-tag1.vue new file mode 100644 index 0000000..85d18fc --- /dev/null +++ b/src/views/modules/user/user-tag1.vue @@ -0,0 +1,171 @@ + + + + + {{dataForm.realName}} + + + {{dataForm.mobile}} + + + {{dataForm.identityNo}} + + + {{dataForm.address}} + + + 否 + 是 + + + 是 + 否 + + + {{dataForm.remark}} + + + + + + + + + + {{ $t('cancel') }} + {{ $t('confirm') }} + + + + + diff --git a/src/views/modules/user/usertag.vue b/src/views/modules/user/usertag.vue index c1de2f7..66d20ea 100644 --- a/src/views/modules/user/usertag.vue +++ b/src/views/modules/user/usertag.vue @@ -22,26 +22,29 @@ label="序号" align="center"> - + + 配置属性 {{ $t('update') }} {{ $t('delete') }} + :current-page="page" + :page-sizes="[10, 20, 50, 100]" + :page-size="limit" + :total="total" + layout="total, sizes, prev, pager, next, jumper" + @size-change="pageSizeChangeHandle" + @current-change="pageCurrentChangeHandle"> + + @@ -49,6 +52,7 @@