diff --git a/src/views/modules/user/user-add-or-update.vue b/src/views/modules/user/user-add-or-update.vue index 3e6755f1..b92cd4e5 100644 --- a/src/views/modules/user/user-add-or-update.vue +++ b/src/views/modules/user/user-add-or-update.vue @@ -20,18 +20,20 @@ prop="identityNo"> {{dataForm.identityNo}} - - - - - + + {{dataForm.address}} + + + + 是 + 否 + - + + prop="state"> - 是 - 是 + 否 - - - + + + + + + + + + + {{ $t('cancel') }} @@ -96,44 +104,22 @@ export default { id: '', partyFlag: '', cadreFlag: '', - pass: '', - street: '', - community: '', - grid: '', + state: '', tagIds: [], - registTime: '', remark: '' }, - partyFlagOptions: [{ id: '0', name: '不是' }, { id: '1', name: '是' }], cadreOptions: [{ cadreFlag: '1', cadreTitle: '是' }, { cadreFlag: '0', cadreTitle: '否' }], - tagOptions: [] + tagOptions: [], + userGridList: [] } }, computed: { dataRule () { return { - nickname: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - mobile: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - realName: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - identityNo: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - address: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], partyFlag: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], - gridId: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - pass: [ + state: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], remark: [ @@ -171,9 +157,14 @@ export default { ...this.dataForm, ...res.data } - console.log(this.dataForm) this.dataForm.tagIds = [] }).catch(() => { }) + this.$http.get(`/app-user/usergrid/listUserGrid/${this.dataForm.id}`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.userGridList = res.data + }).catch(() => { }) }, // 审核 dataFormSubmitHandle: debounce(function () { @@ -181,12 +172,19 @@ export default { if (!valid) { return false } - this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/user/audit/', this.dataForm).then(({ data: res }) => { + let postData = { + tagIds: this.dataForm.tagIds, + id: this.dataForm.id, + state: this.dataForm.state, + partyFlag: this.dataForm.partyFlag, + cadreFlag: this.dataForm.cadreFlag + } + this.$http[!this.dataForm.id ? 'post' : 'post']('/app-user/user/audit/', postData).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } // 审核通过之后触发发短信 - this.registerResult(this.dataForm.id) + // this.registerResult(this.dataForm.id) this.$message({ message: this.$t('prompt.success'), type: 'success', diff --git a/src/views/modules/user/user-detail.vue b/src/views/modules/user/user-detail.vue new file mode 100644 index 00000000..07c94adb --- /dev/null +++ b/src/views/modules/user/user-detail.vue @@ -0,0 +1,160 @@ + + + + + {{dataForm.realName}} + + + {{dataForm.mobile}} + + + {{dataForm.identityNo}} + + + {{dataForm.address}} + + + 否 + 是 + + + + 是 + 否 + + + {{dataForm.remark}} + + + + + + + + + + + + + + + + + {{ $t('confirm') }} + + + + + diff --git a/src/views/modules/user/user.vue b/src/views/modules/user/user.vue index 042b5af7..21b3c656 100644 --- a/src/views/modules/user/user.vue +++ b/src/views/modules/user/user.vue @@ -1,323 +1,155 @@ - - - - 待审核用户 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 注册时间 - - - - {{ $t('query') }} - - - {{ $t('export') }} - - - - - - - - {{scope.$index+1}} - - - - - - - - - - - - - - 审核 - - - - - - - - - 已审核用户 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 注册时间 - - - - {{ $t('query') }} - - - {{ $t('export') }} - - - - - - - - {{scope.$index+1}} - - - - - - - - - - - - - - - - - - - 未通过用户 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 注册时间 - - - - {{ $t('query') }} - - - {{ $t('export') }} - - - - - - - - {{scope.$index+1}} - - - - - - - - - - - - - - - - - - - - + + + + 待审核用户 + + + + + + + + + + + + + + + + + + + + + + 注册时间 + + {{ $t('query') }} + + {{ $t('export') }} + + + + + + {{scope.$index+1}} + + + + + + + 审核 + + + + + + + 审核通过 + + + + + + + + + + + + + + + + + + + + + + + + + + + 注册时间 + + {{ $t('query') }} + {{ $t('export') }} + + + + + {{scope.$index+1}} + + + + + + + + 查看 + + + + + + + 审核未通过 + + + + + + + + + + + + + + + + + + + + + + 注册时间 + + {{ $t('query') }} + + {{ $t('export') }} + + + + + + {{scope.$index+1}} + + + + + + + 查看 + + + + + + + + + + @@ -325,6 +157,7 @@